cms/app-client/app/templates/components/notice-component.hbs
author Chloe Laisne <chloe.laisne@gmail.com>
Fri, 14 Oct 2016 19:58:09 +0200
changeset 335 9247384cb264
parent 270 6ddc52965fb8
child 338 4a3899b6a7ed
permissions -rw-r--r--
Remove close button from notice

<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>