mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 15:17:57 +01:00
parent
9afd52108b
commit
c365c6f6e0
@ -173,6 +173,14 @@ angular.module('docs',
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('document.view.content.file', {
|
||||
url: '/file/:fileId',
|
||||
views: {
|
||||
'file': {
|
||||
controller: 'FileView'
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('document.view.permissions', {
|
||||
url: '/permissions',
|
||||
views: {
|
||||
@ -191,14 +199,6 @@ angular.module('docs',
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('document.view.file', {
|
||||
url: '/file/:fileId',
|
||||
views: {
|
||||
'file': {
|
||||
controller: 'FileView'
|
||||
}
|
||||
}
|
||||
})
|
||||
.state('login', {
|
||||
url: '/login',
|
||||
views: {
|
||||
|
@ -38,7 +38,7 @@ angular.module('docs').controller('DocumentViewContent', function ($scope, $stat
|
||||
* Navigate to the selected file.
|
||||
*/
|
||||
$scope.openFile = function (file) {
|
||||
$state.go('document.view.file', { id: $stateParams.id, fileId: file.id })
|
||||
$state.go('document.view.content.file', { id: $stateParams.id, fileId: file.id })
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@
|
||||
<a ng-href="#/document/view/{{ log.target }}">{{ log.message }}</a>
|
||||
</span>
|
||||
<span ng-switch-when="File">
|
||||
<a ng-href="#/document/view/{{ log.message }}/file/{{ log.target }}">Open</a>
|
||||
<a ng-href="#/document/view/{{ log.message }}/content/file/{{ log.target }}">Open</a>
|
||||
</span>
|
||||
<span ng-switch-when="Comment">
|
||||
<a ng-href="#/document/view/{{ log.message }}/comments">See</a>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div ng-file-drop drag-over-class="bg-success" ng-multiple="true" allow-dir="false" ng-model="dropFiles"
|
||||
accept="image/*,application/pdf,application/zip" ng-file-change="fileDropped($files, $event, $rejectedFiles)">
|
||||
<div class="row upload-zone" ui-sortable="fileSortableOptions" ng-model="files">
|
||||
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 text-center" ng-repeat="file in files">
|
||||
<div class="col-xs-6 col-sm-4 col-md-4 col-lg-3 text-center" ng-repeat="file in files">
|
||||
<div class="thumbnail" ng-if="file.id">
|
||||
<a ng-click="openFile(file)">
|
||||
<img class="thumbnail-file" ng-src="../api/file/{{ file.id }}/data?size=thumb" tooltip="{{ file.mimetype }}" tooltip-placement="top" />
|
||||
@ -35,3 +35,5 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ui-view="file"></div>
|
@ -38,6 +38,8 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<ul class="nav nav-tabs">
|
||||
<li ng-class="{ active: $state.current.name == 'document.view.content' }">
|
||||
<a href="#/document/view/{{ document.id }}/content">
|
||||
@ -55,7 +57,10 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div ui-view="tab"></div>
|
||||
<div ui-view="file"></div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
Comments
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user