mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Show jump list to other space documents
Closes #219 Jump to documents within space when viewing a document.
This commit is contained in:
parent
bc9dab72f2
commit
c65eb97948
26 changed files with 341 additions and 235 deletions
|
@ -13,6 +13,7 @@ import { inject as service } from '@ember/service';
|
|||
import Controller from '@ember/controller';
|
||||
|
||||
export default Controller.extend({
|
||||
router: service(),
|
||||
documentService: service('document'),
|
||||
|
||||
actions: {
|
||||
|
@ -56,6 +57,6 @@ export default Controller.extend({
|
|||
this.set('attachments', files);
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<Layout::MasterNavigation />
|
||||
<Layout::MasterToolbar>
|
||||
<div class="zone-1">
|
||||
{{#link-to "document.index" model.folder.id model.folder.slug model.document.id model.document.slug}}
|
||||
{{ui/ui-button themed=true uppercase=false icon=constants.Icon.ArrowLeft label=model.document.name}}
|
||||
{{/link-to}}
|
||||
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||
{{ui/ui-toolbar-button themed=true uppercase=false
|
||||
icon=constants.Icon.ArrowLeft label=model.document.name onClick=(action "onCancel")}}
|
||||
{{/ui/ui-toolbar}}
|
||||
</div>
|
||||
<div class="zone-2" />
|
||||
<div class="zone-3" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue