rtfd/readthedocs.org — pull request #195 by abrookins (2012-04-03 17:53:38+00:00)
Title: Issue 164 ajax build status

Hey rtfd folks,

I took a crack at issue #164 (AJAXy build status).

This patch adds JavaScript on the build detail and build list page that polls the API for updates on any in-progress (unfinished) builds, then updates the display with the builds' current data.

On the list page, this means changing the displayed state value ("Building", etc.), until finished, and then replacing it with the outcome ("Passed" or "Failed").

On the build details page, any changeable details of the build are updated during the polling process: state, outcome, error output, etc.

I haven't included any tests because I didn't see a JavaScript test suite. Let me know if I missed that somewhere in the repo.

Best,
Andrew