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