cms/app-client/app/templates/components/notice-component.hbs
author ymh <ymh.work@gmail.com>
Sat, 03 Dec 2016 02:43:57 +0100
changeset 463 5c43f17f87b5
parent 447 38d5789e30d0
child 488 0161e028afb7
permissions -rw-r--r--
add a checkbox in player to control transcript autoscroll
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
416
6e6b7363f45f Simplify notice component and add permalink
ymh <ymh.work@gmail.com>
parents: 339
diff changeset
     1
<h2>{{ item.title }}</h2>
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 445
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>
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 445
diff changeset
    16
    <td>{{#each item.languages as |lang index|}}{{if index ", "}}{{ component (getLinkType lang) url=lang class="language" onClick=(action 'addLanguageFilter' lang)}}{{/each}}</td>
433
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>
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 445
diff changeset
    22
        {{#each item.subjects as |subject|}}
433
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    23
        <li>
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 445
diff changeset
    24
          {{component (getLinkType subject) url=subject onClick=(action "addThemeFilter" subject)}}
433
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    25
        </li>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    26
        {{/each}}
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    27
      </ul>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    28
    </td>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    29
  </tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    30
  <tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    31
    <td class="title">Enregistré en</td>
445
b1e5ad6b2a29 Display created date instead of issued
ymh <ymh.work@gmail.com>
parents: 433
diff changeset
    32
    <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
    33
  </tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    34
  <tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    35
    <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
    36
    <td>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    37
      <ul>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    38
        {{#each participants as |participant|}}
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 445
diff changeset
    39
        <li>{{component (getLinkType participant.identifier) url=participant.identifier }} ({{#each participant.role as |r index| }}{{if index ", "}}{{r}}{{/each}})</li>
433
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    40
        {{/each}}
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    41
      </ul>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    42
    </td>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    43
  </tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    44
  <tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    45
    <td class="title">Lieu</td>
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 445
diff changeset
    46
    <td>{{ notice-location-component geoInfo=item.geoInfo }}</td>
433
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    47
  </tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    48
  <tr>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    49
    <td class="title">Durée</td>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    50
    <td>{{to-minutes item.duration}}</td>
65e357e5eecb correct document permalinks in notice and share buttons
ymh <ymh.work@gmail.com>
parents: 416
diff changeset
    51
  </tr>
217
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
    52
</table>