go-bouquins/templates/index_authors.html

19 lines
491 B
HTML
Raw Normal View History

2017-07-31 18:14:38 +00:00
<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>