server/qa/static/views/theme.html

26 lines
790 B
HTML

<h2>{{theme.name}} <small class="text-muted">{{theme.authors | stripHTML}}</small></h2>
<div class="container" ng-bind-html="theme.intro"></div>
<div ng-if="theme.id" ng-controller="ExercicesListController">
<h3>
Défis ({{ exercices.length }})
</h3>
<p><input type="search" class="form-control form-control-sm" placeholder="Search" ng-model="query" autofocus></p>
<table class="table table-hover table-bordered table-striped table-sm">
<thead class="thead-dark">
<tr>
<th ng-repeat="field in fields">
{{ field }}
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="exercice in exercices | filter: query" ng-click="show(exercice.id)">
<td ng-repeat="field in fields" ng-bind-html="exercice[field]"></td>
</tr>
</tbody>
</table>
</div>