1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add version number of sidebar footer

This commit is contained in:
Nick O'Leary 2016-01-07 16:42:10 +00:00
parent dbaacc411a
commit 0b4c652ce7
3 changed files with 12 additions and 6 deletions

View File

@ -104,6 +104,7 @@ RED.settings = (function () {
RED.settings.remove("auth-tokens");
}
console.log("Node-RED: " + data.version);
$('#node-red-version').text("v"+data.version);
done();
},
error: function(jqXHR,textStatus,errorThrown) {

View File

@ -111,3 +111,8 @@ pre code {
background-color: transparent;
border: 0;
}
#node-red-version {
font-size: 0.8em;
color: #ddd;
}

View File

@ -68,7 +68,7 @@
<div id="sidebar">
<ul id="sidebar-tabs"></ul>
<div id="sidebar-content"></div>
<div id="sidebar-footer"></div>
<div id="sidebar-footer"><span id="node-red-version"></span></div>
</div>
<div id="sidebar-separator"></div>