anchor.diff:            td(ng-if="PIF.attached")
               span.label.label-success Connected
               span.pull-right.btn-group.quick-buttons
  -              a(tooltip="Disconnect this interface", xo-click="disconnectPIF(PIF.id)")
  +              a(tooltip="Disconnect this interface", xo-click="disconnectPIF(PIF.id)", ng-if = 'canAdmin()')
                   i.fa.fa-unlink.fa-lg
             td(ng-if="!PIF.attached")
               span.label.label-default Disconnected
               span.pull-right.btn-group.quick-buttons
  -              a(tooltip="Connect this interface", xo-click="connectPIF(PIF.id)")
  +              a(tooltip="Connect this interface", xo-click="connectPIF(PIF.id)", ng-if = 'canAdmin()')
                   i.fa.fa-link.fa-lg
  -              a(tooltip="Remove this interface", xo-click="removePIF(PIF.id)")
  +              a(tooltip="Remove this interface", xo-click="removePIF(PIF.id)", ng-if = 'canAdmin()')
                   i.fa.fa-trash-o.fa-lg
         .text-right
  -        button.btn(type="button", ng-class = '{"btn-success": creatingNetwork, "btn-primary": !creatingNetwork}', ng-click="creatingNetwork = !creatingNetwork")
  +        button.btn(type="button", ng-class = '{"btn-success": creatingNetwork, "btn-primary": !creatingNetwork}', ng-click="creatingNetwork = !creatingNetwork", ng-hide = '!canAdmin()', ng-disabled = '!canAdmin()')
             i.fa.fa-plus(ng-if = '!creatingNetwork')
             i.fa.fa-minus(ng-if = 'creatingNetwork')
             |  Create Network
         br
         form.form-inline.text-right#createNetworkForm(ng-if = 'creatingNetwork', name = 'createNetworkForm', ng-submit = 'createNetwork(newNetworkName, newNetworkDescription, newNetworkPIF, newNetworkMTU, newNetworkVlan)')
  -        fieldset(ng-attr-disabled = '{{ createNetworkWaiting ? true : undefined }}')
  +        fieldset(ng-disabled = 'createNetworkWaiting || !canAdmin()')
             .form-group
               label(for = 'newNetworkPIF') Interface&nbsp;
               select.form-control(ng-model = 'newNetworkPIF', ng-change = 'updateMTU(newNetworkPIF)', ng-options='(PIF | resolve).device for PIF in host.$PIFs')
  
positive.code:           td {{message.time*1e3 | date:"medium"}}
            td
              | {{message.name}}
              span.pull-right.btn-group.quick-buttons
                a(xo-click="deleteLog(message.id)")
                  i.fa.fa-trash-o.fa-lg(tooltip="Remove this log entry")
        .center(ng-if = '(host.messages | count) > 5 || currentLogPage > 1')
  
negative.code:           td
              span(ng-if="isPoolPatchApplied(patch)")
                span.label.label-success Applied
              span(ng-if="!isPoolPatchApplied(patch)")
                span(ng-click="installPatch(host.id, patch.uuid)", tooltip="Click to apply the patch on this host", ng-if = 'canAdmin()')
                  span.label.label-warning Not applied
                span.label.label-warning(ng-if = '!canAdmin()') Not applied
        .center(ng-if = '(poolPatches | count) > 5 || currentPatchPage > 1')
          pagination(boundary-links="true", total-items="poolPatches | count", ng-model="$parent.currentPatchPage", items-per-page="5", max-size="5", class="pagination-sm", previous-text="<", next-text=">", first-text="<<", last-text=">>")
  
  