branch is now part of status api and shows up in the footer if not on master.

This commit is contained in:
kay.one 2013-08-10 13:13:31 -07:00
parent 505c154fb6
commit d4706dd8f5
3 changed files with 16 additions and 3 deletions

View file

@ -8,4 +8,12 @@ var statusText = $.ajax({
window.ServerStatus = JSON.parse(statusText);
$('#footer-region .version').html(window.ServerStatus.version);
var footerText = window.ServerStatus.version;
$(document).ready(function () {
if (window.ServerStatus.branch != 'master') {
footerText = '</br>' + window.ServerStatus.branch;
}
$('#footer-region .version').html(footerText);
});