mirror of
https://github.com/sismics/docs.git
synced 2025-12-20 13:11:41 +00:00
Document sharing (client), better state handling for file view
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<img ng-show="file.mimetype == 'image/png' || file.mimetype == 'image/jpeg' || file.mimetype == 'image/gif'" ng-src="api/file/{{ id }}/data" />
|
||||
<img ng-if="$stateParams.fileId && (file.mimetype == 'image/png' || file.mimetype == 'image/jpeg' || file.mimetype == 'image/gif')" ng-src="api/file/{{ $stateParams.fileId }}/data" />
|
||||
|
||||
<div class="text-center" ng-show="file.mimetype == 'application/pdf'">
|
||||
<img ng-src="api/file/{{ id }}/data?thumbnail=true" />
|
||||
<div class="text-center" ng-if="$stateParams.fileId && file.mimetype == 'application/pdf'">
|
||||
<img ng-src="api/file/{{ $stateParams.fileId }}/data?thumbnail=true" />
|
||||
</div>
|
||||
|
||||
4
docs-web/src/main/webapp/partial/share/403.html
Normal file
4
docs-web/src/main/webapp/partial/share/403.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="hero-unit">
|
||||
<h1>Not authorized</h1>
|
||||
<p>The document you are trying to view is not shared anymore</p>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<div class="hero-unit">
|
||||
<h1>Sismics Docs</h1>
|
||||
<p>Ask a shared document link to access it</p>
|
||||
</div>
|
||||
@@ -1 +1,24 @@
|
||||
Shared document
|
||||
<div class="row-fluid">
|
||||
<div class="well span12">
|
||||
<div class="page-header">
|
||||
<h1>{{ document.title }} <small>{{ document.create_date | date: 'yyyy-MM-dd' }}</small></h1>
|
||||
<ul class="inline">
|
||||
<li ng-repeat="tag in document.tags"><span class="label label-info" ng-style="{ 'background': tag.color }">{{ tag.name }}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p ng-bind-html="document.description | newline"></p>
|
||||
|
||||
<ul class="thumbnails thumbnails-file" ui-sortable="fileSortableOptions" ng-model="files" ng-show="files.length > 0">
|
||||
<li class="span2 text-center thumbnail-container" ng-repeat="file in files">
|
||||
<div class="thumbnail">
|
||||
<a ng-click="openFile(file)">
|
||||
<img class="thumbnail-file" ng-src="api/file/{{ file.id }}/data?thumbnail=true&share={{ $stateParams.shareId }}" tooltip="{{ file.mimetype }}" tooltip-placement="top" />
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div ui-view="file"></div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user