cms/app-client/app/templates/components/notice-component.hbs
author Chloe Laisne <chloe.laisne@gmail.com>
Sat, 15 Oct 2016 16:15:07 +0530
changeset 336 f076ddd29e13
parent 335 9247384cb264
child 338 4a3899b6a7ed
permissions -rw-r--r--
Playlist scroll to show playing track in view always

<h2>Notice</h2>
<h3>{{ item.title }}</h3>
<table>
<tr>
	<td class="title">Editeur{{#if (if-operator item.publishers.length '>' 1)}}s{{/if}}</td>
	<td>
		<ul>
		{{#each item.publishers as |publisher|}}
			<li>{{ publisher }}</li>
		{{/each}}
		</ul>
	</td>
</tr>
<tr>
	<td class="title">Langue</td>
	<td>{{ doc-language url=item.language class="language"}}</td>
</tr>
<tr>
	<td class="title">Sujet{{#if (if-operator item.computedSubjects.length '>' 1)}}s{{/if}}</td>
	<td>
		<ul>
		{{#each subjects as |subject|}}
			<li>
			{{#if subject.url}}
				<a href="{{subject.url}}" target="_blank">
					{{#if subject.name}}{{subject.name}}{{else}}{{component (getLinkType subject.url) url=subject.url}}{{/if}}
				</a>
			{{else}}
				{{subject.name}}
			{{/if}}
			</li>
		{{/each}}
		</ul>
	</td>
</tr>
<tr>
	<td class="title">Enregistré en</td>
	<td>{{ short-date item.issued }}</td>
</tr>
<tr>
	<td class="title">Participant{{#if (if-operator participants.length '>' 1)}}s{{/if}}</td>
	<td>
		<ul>
		{{#each participants as |participant|}}
			<li>{{ participant.name }} ({{ participant.role }})</li>
		{{/each}}
		</ul>
	</td>
</tr>
<tr>
	<td class="title">Lieu</td>
	<td>{{ location }}</td>
</tr>
<tr>
	<td class="title">Durée</td>
	<td>{{to-minutes item.duration}}</td>
</tr>
</table>