<div class="text-center">
  <div class="btn-group pull-left">
    <button type="button" class="btn btn-default" ng-click="closeFile()">
      <span class="glyphicon glyphicon-remove"></span>
    </button>
  </div>

  <div class="btn-group">
    <button type="button" class="btn btn-default" ng-click="previousFile()">Previous</button>
    <button type="button" class="btn btn-default" ng-click="nextFile()">Next</button>
  </div>
  
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="printFile()">
      <span class="glyphicon glyphicon-print"></span>
    </button>
    <button type="button" class="btn btn-default" ng-click="openFile()">
      <span class="glyphicon glyphicon-download-alt"></span>
    </button>
  </div>
</div>


<div class="text-center" ng-if="$stateParams.fileId">
  <img ng-src="../api/file/{{ $stateParams.fileId }}/data?size=web"
       ng-init="error = false"
       img-error="error = true"
       ng-show="!error" />
  <p class="well-lg" ng-show="error">
    <span class="glyphicon glyphicon-warning-sign"></span>
    File not found
  </p>
</div>
