admin: New page to list forge link per theme and exercice
This commit is contained in:
parent
b713eba2a5
commit
7d775fe26d
5 changed files with 98 additions and 0 deletions
14
admin/static/views/exercices-forgelink.html
Normal file
14
admin/static/views/exercices-forgelink.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<h1>Accès rapide aux exercices</h1>
|
||||
|
||||
<div ng-repeat="theme in forge_links">
|
||||
<h2>
|
||||
<a ng-href="{{ theme.forge_link }}" target="_blank">
|
||||
{{ theme.name }}
|
||||
</a> : {{ theme.path }}
|
||||
</h2>
|
||||
<ul>
|
||||
<li ng-repeat="exercice in theme.exercices">
|
||||
<a ng-href="{{ exercice.forge_link }}" target="_blank">{{ exercice.name }}</a> : <span class="text-monospace">{{ exercice.path }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
Thèmes
|
||||
<button type="button" ng-click="show('new')" class="float-right btn btn-sm btn-primary ml-2"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Ajouter un thème</button>
|
||||
<button type="button" ng-click="sync()" ng-class="{'disabled': inSync}" class="float-right btn btn-sm btn-secondary ml-2"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Synchroniser</button>
|
||||
<a href="forge-links" class="float-right btn btn-sm btn-dark ml-2"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> Liens d'accès à la forge</a>
|
||||
</h2>
|
||||
|
||||
<p><input type="search" class="form-control" placeholder="Search" ng-model="query" ng-keypress="validateSearch($event)" autofocus></p>
|
||||
|
|
|
|||
Reference in a new issue