go-bouquins/templates/index_authors.html
2017-07-31 20:14:38 +02:00

19 lines
491 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>
</tr>
{{ range . }}
<tr>
<td>
<span class="glyphicon glyphicon-user"></span>
<a href="/authors/{{ .Id }}">{{ .Name }}</a>
</td>
<td>{{ .Count }}</td>
</tr>
{{ end }}
</table>