Skip to content

Commit

Permalink
display pseudo pools for patching them too
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlambert committed Oct 1, 2014
1 parent c484298 commit f0de051
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions app/modules/home/view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,17 @@ div(ng-if="pools.length")
//- Contains a pool and all its children (hosts).
.grid.pool-block(ng-repeat="pool in pools | orderBy:natural('name_label') track by pool.UUID")
//- Pseudo pool if it is not a named pool.
.grid-cell.grid--gutters.pool-cell(ng-if="!pool.name_label")
p.center(style="margin-top: 2em;") No pool connected
//- .grid-cell.grid--gutters.pool-cell(ng-if="!pool.name_label")
//- p.center(style="margin-top: 2em;") No pool connected
//- Contains information about the pool if it is a named pool.
.grid-cell.grid--gutters.pool-cell(ng-if="pool.name_label")
.grid-cell.grid--gutters.pool-cell
//- Header (name + dropdown menu).
.dropdown.dropdown-pool
a.pool-name(ui-sref="pools_view({id: pool.UUID})")
| {{pool.name_label}}
span(ng-if="pool.name_label")
| {{pool.name_label}}
span.text-muted(ng-if="!pool.name_label")
| {{(pool.master | resolve).name_label}}
a.dropdown-toggle
|  
i.fa.fa-caret-down.big-caret
Expand Down Expand Up @@ -175,7 +178,7 @@ div(ng-if="pools.length")
p.center.small-caps SRs:
table.table.table-hover.table-condensed
tr(ng-repeat="SR in pool.SRs | resolve | orderBy:natural('name_label') track by SR.UUID", xo-sref="SRs_view({id: SR.UUID})")
td.col-md-6.sr-name.no-border(ng-class="{'default-sr': SR.ref === pool.default_SR}")
td.col-md-6.sr-name.no-border(ng-class="{'default-sr': SR.ref === pool.default_SR}", title="{{SR.name_label}}")
i.xo-icon-sr
| {{SR.name_label}}
td.col-md-6.right.no-border
Expand Down
2 changes: 1 addition & 1 deletion app/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ div.host-cell:hover .substats {
}
}

.host-name, .pool-name {
.host-name, .pool-name, .sr-name {
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
Expand Down

0 comments on commit f0de051

Please sign in to comment.