frontend: add hint on special SE page
This commit is contained in:
parent
23b6b2b005
commit
05a795ad49
@ -29,6 +29,18 @@
|
|||||||
<a ng-href="tags/{{tag}}" class="badge badge-pill badge-secondary mr-2 mb-2" ng-repeat="tag in themes[current_theme].exercices[current_exercice].tags">#{{ tag }}</a>
|
<a ng-href="tags/{{tag}}" class="badge badge-pill badge-secondary mr-2 mb-2" ng-repeat="tag in themes[current_theme].exercices[current_exercice].tags">#{{ tag }}</a>
|
||||||
<p class="lead text-justify" ng-bind-html="my.exercices[current_exercice].statement"></p>
|
<p class="lead text-justify" ng-bind-html="my.exercices[current_exercice].statement"></p>
|
||||||
<div class="alert alert-{{my.exercices[current_exercice].issuekind}}" ng-if="my.exercices[current_exercice].issue" ng-bind-html="my.exercices[current_exercice].issue"></div>
|
<div class="alert alert-{{my.exercices[current_exercice].issuekind}}" ng-if="my.exercices[current_exercice].issue" ng-bind-html="my.exercices[current_exercice].issue"></div>
|
||||||
|
<div ng-if="(my.exercices[current_exercice] && my.exercices[current_exercice].hints.length)">
|
||||||
|
<p class="text-danger" ng-if="hinterror" ng-bind="hinterror"></p>
|
||||||
|
<p ng-repeat="hint in my.exercices[current_exercice].hints">
|
||||||
|
<span class="glyphicon glyphicon-lamp" aria-hidden="true"></span>
|
||||||
|
<strong ng-bind="hint.title"></strong>
|
||||||
|
<span ng-if="!hint.file && hint.content && !hint.hidden" ng-bind-html="hint.content"></span>
|
||||||
|
<a ng-href="{{ hint.file }}" ng-if="hint.file">b2sum : <samp class="cksum" title="Somme de contrôle BLAKE2b : {{ hint.content }}">{{ hint.content }}</samp></a>
|
||||||
|
<span ng-if="!hint.file && ((!hint.content && hint.hidden === undefined) || hint.hidden === true)">Débloquer cet indice vous fera perdre <ng-pluralize count="hint.cost * settings.hintCurrentCoefficient" when="{'one': '{} point', 'other': '{} points'}"></ng-pluralize>.</span>
|
||||||
|
<button type="button" ng-click="hsubmit(hint)" class="btn btn-sm btn-info" ng-if="!(hint.content || hint.file)" ng-class="{disabled: hint.submitted}"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Débloquer</button>
|
||||||
|
<button type="button" ng-click="hint.hidden = false;" class="btn btn-sm btn-info" ng-if="!hint.file && hint.hidden"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Afficher</button>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
<hr class="my-3">
|
<hr class="my-3">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
Loading…
Reference in New Issue
Block a user