cms/app-client/app/templates/components/notice-component.hbs
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 16 Oct 2016 23:19:57 +0530
changeset 339 766af1228b05
parent 338 4a3899b6a7ed
parent 327 13564bb13ccc
child 416 6e6b7363f45f
permissions -rw-r--r--
Merge

<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>{{#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>
</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}}
				{{#if subject.name}}
					{{subject.name}}
				{{else}}
					<span class="action" {{action 'addThemeFilter' subject.url}}>{{component (getLinkType subject.url) url=subject.url}}</span>
				{{/if}}
				<a href="{{subject.url}}" target="_blank" class="fa fa-share-square">Share</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>