26 lines
713 B
HTML
26 lines
713 B
HTML
<table class="table table-striped">
|
|
<tr>
|
|
<th>
|
|
<a href="#" @click="sortBy('name')">Nom</a>
|
|
<span v-if="sort_by == 'name'" :class="['glyphicon', { 'glyphicon-chevron-up': order_desc , 'glyphicon-chevron-down': !order_desc}]"></span>
|
|
</th>
|
|
<th>Livre(s)</th>
|
|
<th>Auteur(s)</th>
|
|
</tr>
|
|
<tr v-for="serie in series">
|
|
{{ range . }}
|
|
<td>
|
|
<span class="glyphicon glyphicon-list"></span>
|
|
<a href="/series/{{ .Id }}">{{ .Name }}</a>
|
|
</td>
|
|
<td>{{ .Count }}</td>
|
|
<td>
|
|
{{ range .Authors }}
|
|
<span class="glyphicon glyphicon-user"></span>
|
|
<a href="/authors/{{ .Id }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
</td>
|
|
{{ end }}
|
|
</tr>
|
|
</table>
|