admin: New page to list tags

This commit is contained in:
nemunaire 2022-05-24 21:25:27 +02:00
commit 80917ae436
5 changed files with 84 additions and 0 deletions

View file

@ -1,6 +1,12 @@
<div class="d-flex justify-content-between">
<h2>Exercices</h2>
<div class="align-self-center">
<a
href="tags"
class="btn btn-sm btn-dark"
>
<span class="glyphicon glyphicon-th" aria-hidden="true"></span> Tags
</a>
<a
href="files"
class="btn btn-sm btn-info"

View file

@ -0,0 +1,34 @@
<div class="d-flex justify-content-between">
<h2>Tags</h2>
</div>
<table class="table table-hover table-bordered table-striped table-sm">
<thead class="thead-dark">
<tr>
<th>
Tag
</th>
<th>
Nb
</th>
<th>
Exercices
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(tag, exercices) in tags">
<td>
{{ tag }}
</td>
<td>
{{ exercices.length }}
</td>
<td ng-repeat="e in exercices">
<a ng-href="exercices/{{ e.id }}">
{{ e.title }}
</a>
</td>
</tr>
</tbody>
</table>