diff --git a/routes.js b/routes.js index 45f05954..efd330b0 100644 --- a/routes.js +++ b/routes.js @@ -8,4 +8,7 @@ module.exports = function(app) { app.get("/settings", function(req, res) { res.render("settings"); }); + app.get("/nodeDetails", function(req, res) { + res.render("nodeDetails"); + }); }; \ No newline at end of file diff --git a/static/head.html b/static/head.html index 7ce98e7d..7c1c12ae 100644 --- a/static/head.html +++ b/static/head.html @@ -2,3 +2,4 @@ + \ No newline at end of file diff --git a/static/nodeDetails.css b/static/nodeDetails.css new file mode 100644 index 00000000..2916ae75 --- /dev/null +++ b/static/nodeDetails.css @@ -0,0 +1,59 @@ +*{ + color: #FFF; +} + +#header .subbar h6 { + display:inline; + font-weight:normal; + color: #BBB +} +#header { + background-color: #222; + color: #DDD; + font-family: 'Roboto', sans-serif; + padding-left:16px; +} +#displayBody { + margin-left: 16px; +} +a { + color: #FF7200; + text-decoration: none; +} +a:hover { + color: #FFF; +} +#hero { + background-color: #444; + height:400px; +} + +#header h1 { + margin-left: 10px; + display:inline-block; +} +#header .subbar h6 { + margin-right: 16px; +} +#onlineIndicator { + background-color:red; + height:20px; + width:20px; + display:inline-block; + border-radius:16px; +} +ul { + width:300px; + list-style:none; + max-height:100px; + margin:0; + overflow:auto; + padding:0; + text-indent:10px; +} +li{ + line-height:25px; +} +li:nth-child(even){ + background:#ccc; +} \ No newline at end of file diff --git a/static/nodeDetails.ejs b/static/nodeDetails.ejs new file mode 100644 index 00000000..32ce63eb --- /dev/null +++ b/static/nodeDetails.ejs @@ -0,0 +1,21 @@ + +
+ <%- include("head.html") %> + + + + + + <%- include("sidebar.html") %> +Last seen: "+slave.time+"
" + HTML += "