Browse Source

Basic styles for node page

pm2
Luke Childs 9 years ago
parent
commit
87d4705570
  1. 27
      assets/style.css
  2. 13
      views/node.html

27
assets/style.css

@ -139,6 +139,33 @@ td:first-child {
.pagination .divider { .pagination .divider {
display: none; display: none;
} }
/* Node page */
.node-title {
float: left;
}
.status {
float: right;
padding: 1em;
background: rgba(255, 255, 255, 0.1);
font-size: 14px;
font-family: "Source Code Pro", Consolas, monospace;
}
.status h3 {
display: inline;
}
.status h3:after {
content: ':';
}
dl {
padding: 1em;
background: rgba(255, 255, 255, 0.1);
font-family: "Source Code Pro", Consolas, monospace;
}
/* Footer */ /* Footer */
footer { footer {
margin-top: 2em; margin-top: 2em;

13
views/node.html

@ -5,12 +5,15 @@
{% if error %} {% if error %}
<h2>{{ 'Invalid node' if error.statusCode == 400 else error.statusMessage }}</h2> <h2>{{ 'Invalid node' if error.statusCode == 400 else error.statusMessage }}</h2>
{% else %} {% else %}
<h2>{{ node.type | title }}: {{ node | name }}</h2>
<section class="status"> <div class="clearfix">
<h3>Status</h3> <h2 class="node-title">{{ node.type | title }}: {{ node | name }}</h2>
{{ node | status }}
</section> <section class="status">
<h3>Status</h3>
{{ node | status }}
</section>
</div>
<section class="details"> <section class="details">
<h3>Details</h3> <h3>Details</h3>

Loading…
Cancel
Save