anchor.diff:            dd
               span(editable-text="VM.name_description", e-name="name_description", e-form="vmSettings")
                 | {{VM.name_description}}
  -          dt(ng-if="VM.power_state === 'Running' || VM.power_state === 'Paused'") Running on
  -          dt(ng-if="VM.power_state == 'Halted' || VM.power_state === 'Suspended'") Resident on
  +          dt(ng-if="(VM.power_state === 'Running' || VM.power_state === 'Paused') && canOperate()") Running on
  +          dt(ng-if="(VM.power_state == 'Halted' || VM.power_state === 'Suspended') && canOperate()") Resident on
             dd(ng-repeat="container in [VM.$container] | resolve")
               span(ng-if = 'container.type === "host" && canView(container.id)')
                 a(xo-sref="hosts_view({id: container.id})")
  
positive.code:             //- button.btn(tooltip="Export the VM", style="width: 90%", type="button", xo-click="exportOnlyMetadataVM(VM.id)")
              //-   i.fa.fa-download.fa-2x.fa-fw
            .grid-cell.btn-group(style="margin-bottom: 0.5em")
              button.btn(tooltip="VM Console", type="button", style="width: 90%", xo-sref="consoles_view({id: VM.id})", ng-if = 'canOperate()')
                i.xo-icon-console.fa-2x.fa-fw
  //- Docker Panel (if Docker VM)
  .grid-sm(ng-if="VM.docker")
  
negative.code:           td.oneliner {{message.time*1e3 | date:"medium"}}
            td.oneliner
              | {{message.name}}
              span.pull-right.btn-group.quick-buttons(ng-if="canAdmin()")
                a(xo-click="deleteLog(message.id)")
                  i.fa.fa-trash-o.fa-lg(tooltip="Remove this log entry")
        .center(ng-if = '(VM.messages | count) > 5 || currentLogPage > 1')
          pagination(boundary-links="true", total-items="VM.messages | count", ng-model="$parent.currentLogPage", items-per-page="5", max-size="5", class="pagination-sm", previous-text="<", next-text=">", first-text="<<", last-text=">>")
  .grid-sm(ng-if="canAdmin()")
    .panel.panel-default
      .panel-heading.panel-title
        i.fa.fa-plug
  