show port numbers on dashboard

This commit is contained in:
Luke Pulverenti 2013-05-18 14:58:03 -04:00
parent c73b7385b4
commit 56a28632c7
2 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,7 @@
<p>
Version <span id="appVersionNumber"></span>
</p>
<p id="ports"></p>
<p id="pUpToDate" style="display: none;">
<img src="css/images/checkmarkgreen.png" style="height: 20px; margin-right: 3px; position: relative; top: 4px;" />
Media Browser Server is up to date

View File

@ -115,7 +115,7 @@
getClientType: function (connection) {
var clientLowered = connection.Client.toLowerCase();
if (clientLowered == "dashboard") {
return "<img src='css/images/clients/html5.png' alt='Dashboard' title='Dashboard' />";
@ -277,6 +277,14 @@
$('#appVersionNumber', page).html(dashboardInfo.SystemInfo.Version);
var port = ApiClient.serverPortNumber();
if (port == dashboardInfo.SystemInfo.WebSocketPortNumber) {
$('#ports', page).html('Running on port <b>' + port + '</b>');
} else {
$('#ports', page).html('Running on ports <b>' + port + '</b> and <b>' + dashboardInfo.SystemInfo.WebSocketPortNumber + '</b>');
}
if (dashboardInfo.RunningTasks.filter(function (task) {
return task.Id == dashboardInfo.ApplicationUpdateTaskId;