2013-06-25 01:41:59 +02:00
|
|
|
window.ApiRoot = '/api';
|
|
|
|
|
2013-06-21 02:06:56 +02:00
|
|
|
var statusText = $.ajax({
|
2013-06-22 08:24:24 +02:00
|
|
|
type : 'GET',
|
2013-06-25 01:41:59 +02:00
|
|
|
url : window.ApiRoot + '/system/status',
|
2013-06-21 03:43:58 +02:00
|
|
|
async: false
|
2013-06-21 02:06:56 +02:00
|
|
|
}).responseText;
|
|
|
|
|
|
|
|
window.ServerStatus = JSON.parse(statusText);
|
2013-07-10 07:11:57 +02:00
|
|
|
|
2013-08-10 22:13:31 +02:00
|
|
|
var footerText = window.ServerStatus.version;
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
if (window.ServerStatus.branch != 'master') {
|
2013-08-11 01:46:27 +02:00
|
|
|
footerText += '</br>' + window.ServerStatus.branch;
|
2013-08-10 22:13:31 +02:00
|
|
|
}
|
|
|
|
$('#footer-region .version').html(footerText);
|
|
|
|
});
|
|
|
|
|