mirror of
https://github.com/documize/community.git
synced 2025-08-08 15:05:28 +02:00
Fixes and cleanup
This commit is contained in:
parent
f41517872b
commit
8597dc3dca
5 changed files with 170 additions and 169 deletions
|
@ -16,6 +16,7 @@ import TooltipMixin from '../../mixins/tooltip';
|
||||||
export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
||||||
documentService: Ember.inject.service('document'),
|
documentService: Ember.inject.service('document'),
|
||||||
sectionService: Ember.inject.service('section'),
|
sectionService: Ember.inject.service('section'),
|
||||||
|
appMeta: Ember.inject.service(),
|
||||||
/* Parameters */
|
/* Parameters */
|
||||||
document: null,
|
document: null,
|
||||||
// pages: [],
|
// pages: [],
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
{{#each attachments key="id" as |a index|}}
|
{{#each attachments key="id" as |a index|}}
|
||||||
<li class="item">
|
<li class="item">
|
||||||
<img class="icon" src="assets/img/attachments/{{document/file-icon a.extension}}" />
|
<img class="icon" src="assets/img/attachments/{{document/file-icon a.extension}}" />
|
||||||
<a href="{{ session.appMeta.apiUrl }}api/public/attachments/{{ session.appMeta.orgId }}/{{ a.job }}/{{ a.fileId }}">
|
<a href="{{ appMeta.apiUrl }}api/public/attachments/{{ appMeta.orgId }}/{{ a.job }}/{{ a.fileId }}">
|
||||||
<span class="file">{{ a.filename }}</span>
|
<span class="file">{{ a.filename }}</span>
|
||||||
</a>
|
</a>
|
||||||
{{#if isEditor}}
|
{{#if isEditor}}
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#link-to 'application' class='title'}}
|
{{#link-to 'application' class='title'}}
|
||||||
<div class="header-button" title=session.appMeta.title>
|
<div class="header-button" title=appMeta.title>
|
||||||
<i class="material-icons">apps</i>
|
<i class="material-icons">apps</i>
|
||||||
</div>
|
</div>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#link-to 'application' class='title'}}
|
{{#link-to 'application' class='title'}}
|
||||||
{{session.appMeta.title}}
|
{{appMeta.title}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue