Skip to content

Commit

Permalink
add patch list in host view. Fix #156
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlambert committed Nov 24, 2014
1 parent 47a5d39 commit 9f361e4
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions app/modules/host/view.jade
Expand Up @@ -277,8 +277,29 @@
span.pull-right.btn-group.quick-buttons
a(xo-click="deleteLog(message.UUID)")
i.fa.fa-trash-o.fa-lg(tooltip="Remove this log entry")
.btn-form(ng-show="hostLogs.$visible")
p.center
button.btn.btn-default(type="button", ng-disabled="hostLogs.$waiting", ng-click="hostLogs.$cancel()")
i.fa.fa-times
| Cancel

.grid
//- Patches panel
.grid-cell.flat-panel
p.flat-panel-title
i.fa.fa-file-code-o(style="color: #e25440;")
| Patches
p.center(ng-if="!host.patches.length") No patches
table.table.table-hover(ng-if="host.patches.length")
th Applied on
th Name
th Description
th Status
tr(ng-repeat="patch in host.patches | resolve | orderBy:'-time'")
td {{patch.time*1e3 | date:"medium"}}
td {{(patch.pool_patch | resolve).name_label}}
td {{(patch.pool_patch | resolve).name_description}}
//- TODO: allow patch application and removal
td
span(ng-if="patch.applied")
span.label.label-success Applied
span(ng-if="!patch.applied")
span.label.label-error Not applied
//- span.pull-right.btn-group.quick-buttons
//- a(xo-click="deletePatch(patch.UUID)")
//- i.fa.fa-trash-o.fa-lg(tooltip="Remove this patch")

0 comments on commit 9f361e4

Please sign in to comment.