mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
branch is now part of status api and shows up in the footer if not on master.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user