Display last reconfigured time from zuul/status

* it could be useful to determine when zuul conf reloaded
* it requires I03c5a5734f2127ef40be9ec512c983b136508be7 to display time

Change-Id: I29709b9ee91d0096a3263e1ffbc8efd4374f2453
This commit is contained in:
Sergey Lukjanov 2013-12-24 03:40:22 +04:00 committed by Gerrit Code Review
parent c2a0baa10a
commit dad5dfcaa1
2 changed files with 8 additions and 0 deletions

View File

@ -345,6 +345,10 @@ $("#graph-container").append($(new Image()).addClass('graph').graphite({
Zuul version:
<span id="zuul-version"></span>
</p>
<p>
Last reconfigured:
<span id="last-reconfigured-span"></span>
</p>
</div>
<script type="text/javascript">footer();</script>

View File

@ -386,6 +386,10 @@ function update_zuul_info(data) {
if ('zuul_version' in data) {
$('#zuul-version').text(data['zuul_version']);
}
if ('last_reconfigured' in data) {
var last_reconfigured = new Date(data['last_reconfigured']);
$('#last-reconfigured-span').text(last_reconfigured.toString());
}
}
function update() {