ui: add checks for sessions and a double line list

This commit is contained in:
Jack Pearkes 2014-06-09 11:12:41 -04:00
parent 9c07ea5adc
commit 3efe6201b5
2 changed files with 21 additions and 1 deletions

View File

@ -498,12 +498,17 @@
{{errorMessage}} {{errorMessage}}
{{#each session in sessions }} {{#each session in sessions }}
<div class="list-group-item list-condensed"> <div class="list-group-item list-condensed double-line">
<div class="bg-light-gray list-bar-horizontal"></div> <div class="bg-light-gray list-bar-horizontal"></div>
<div class="name"> <div class="name">
{{session.ID}} {{session.ID}}
<button {{ action "invalidateSession" session.ID }} {{ bind-attr class=":btn :btn-danger :pull-right :btn-list isLoading:btn-warning" }}>Invalidate</button> <button {{ action "invalidateSession" session.ID }} {{ bind-attr class=":btn :btn-danger :pull-right :btn-list isLoading:btn-warning" }}>Invalidate</button>
</div> </div>
<ul class="list-inline sub">
{{#each check in session.Checks}}
<li class="bold">{{check}}</li>
{{/each}}
</ul>
</div> </div>
{{/each}} {{/each}}

View File

@ -51,6 +51,11 @@
margin-top: 4px; margin-top: 4px;
height: 40px; height: 40px;
&.double-line {
height: 50px;
}
font-weight: 700; font-weight: 700;
.name { .name {
@ -64,6 +69,16 @@
color: $gray-light; color: $gray-light;
} }
} }
ul.sub {
li {
padding: 0;
}
margin: 0;
font-size: 12px;
color: $gray-light;
}
} }
.list-bar-horizontal { .list-bar-horizontal {