mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
branch is now part of status api and shows up in the footer if not on master.
This commit is contained in:
parent
505c154fb6
commit
d4706dd8f5
3 changed files with 16 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue