author | ymh <ymh.work@gmail.com> |
Thu, 24 Nov 2016 14:39:50 +0100 | |
changeset 445 | b1e5ad6b2a29 |
parent 433 | 65e357e5eecb |
child 447 | 38d5789e30d0 |
permissions | -rw-r--r-- |
416
6e6b7363f45f
Simplify notice component and add permalink
ymh <ymh.work@gmail.com>
parents:
339
diff
changeset
|
1 |
<h2>{{ item.title }}</h2> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
2 |
<h5><a href={{abs-url-for "document" item.id}} class="notice-permalink" target="blank">permalien</a></h5> |
217
989b9c36b849
Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
3 |
<table> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
4 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
5 |
<td class="title">Editeur{{#if (if-operator item.publishers.length '>' 1)}}s{{/if}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
6 |
<td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
7 |
<ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
8 |
{{#each item.publishers as |publisher|}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
9 |
<li>{{ publisher }}</li> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
10 |
{{/each}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
11 |
</ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
12 |
</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
13 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
14 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
15 |
<td class="title">Langue</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
16 |
<td>{{#each item.languages as |lang index|}}{{if index ", "}}<span class="action" {{action 'addLanguageFilter' lang}}>{{ doc-language url=lang class="language"}}</span><a href="{{lang}}" target="_blank" class="fa fa-share-square">Share</a>{{/each}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
17 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
18 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
19 |
<td class="title">Sujet{{#if (if-operator item.computedSubjects.length '>' 1)}}s{{/if}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
20 |
<td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
21 |
<ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
22 |
{{#each subjects as |subject|}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
23 |
<li> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
24 |
{{#if subject.url}} {{#if subject.name}} {{subject.name}} {{else}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
25 |
<span class="action" {{action 'addThemeFilter' subject.url}}>{{component (getLinkType subject.url) url=subject.url}}</span> {{/if}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
26 |
<a href="{{subject.url}}" target="_blank" class="fa fa-share-square">Share</a> {{else}} {{subject.name}} {{/if}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
27 |
</li> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
28 |
{{/each}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
29 |
</ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
30 |
</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
31 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
32 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
33 |
<td class="title">Enregistré en</td> |
445
b1e5ad6b2a29
Display created date instead of issued
ymh <ymh.work@gmail.com>
parents:
433
diff
changeset
|
34 |
<td>{{ doc-created value=item.created }}</td> |
433
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
35 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
36 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
37 |
<td class="title">Participant{{#if (if-operator participants.length '>' 1)}}s{{/if}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
38 |
<td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
39 |
<ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
40 |
{{#each participants as |participant|}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
41 |
<li>{{ participant.name }} ({{ participant.role }})</li> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
42 |
{{/each}} |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
43 |
</ul> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
44 |
</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
45 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
46 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
47 |
<td class="title">Lieu</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
48 |
<td>{{ location }}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
49 |
</tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
50 |
<tr> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
51 |
<td class="title">Durée</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
52 |
<td>{{to-minutes item.duration}}</td> |
65e357e5eecb
correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents:
416
diff
changeset
|
53 |
</tr> |
217
989b9c36b849
Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
54 |
</table> |