docs/docs-web/src/main/webapp/src/partial/docs/file.view.html

39 lines
1.6 KiB
HTML

<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()">{{ 'file.view.previous' | translate }}</button>
<button type="button" class="btn btn-default" ng-click="nextFile()">{{ 'file.view.next' | translate }}</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" style="position: relative;" 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" />
<a href class="video-overlay" ng-if="file.mimetype.substring(0, 6) == 'video/'"
ng-init="videoPlayer = false" ng-click="videoPlayer = true">
<span class="glyphicon glyphicon-play-circle" ng-if="!videoPlayer"></span>
<video ng-if="videoPlayer" autoplay="autoplay" loop="loop"
controls="controls" ng-src="../api/file/{{ $stateParams.fileId }}/data"></video>
</a>
<p class="well-lg" ng-show="error">
<span class="glyphicon glyphicon-warning-sign"></span>
{{ 'file.view.not_found' | translate }}
</p>
</div>