2016-01-16 21:40:59 +00:00
< ul class = "nav nav-tabs nav-justified" >
2016-01-23 11:29:19 +00:00
< li ng-repeat = "(k,exercice) in themes[current_theme].exercices" ng-class = "{active: k == current_exercice, disabled: !my.exercices[k]}" > < a ng-show = "(!my.exercices[k])" > {{ exercice.title }}< / a > < a href = "/{{ current_theme }}/{{ k }}" ng-show = "(my.exercices[k])" > {{ exercice.title }} < span ng-show = "(my.team_id && my.exercices[k].solved)" class = "badge" > {{ exercice.gain }}< / span > < / a > < / li >
2016-01-16 21:40:59 +00:00
< / ul >
2016-01-21 00:38:43 +00:00
< div class = "alert alert-warning" style = "margin-top:15px;" ng-show = "!(my.exercices[current_exercice])" >
Vous n'avez pas encore accès à cet exercice.
< / div >
2016-01-23 11:29:19 +00:00
< div style = "margin-top: 15px" class = "well well-lg" ng-show = "(my.exercices[current_exercice])" >
< p ng-bind-html = "my.exercices[current_exercice].statement" > < / p >
< blockquote ng-show = "(my.exercices[current_exercice].hint)" ng-bind-html = "my.exercices[current_exercice].hint" > < / blockquote >
< hr ng-show = "!(my.exercices[current_exercice].hint)" >
2016-01-16 21:40:59 +00:00
< ul >
< li > < strong > Gain :< / strong > {{ themes[current_theme].exercices[current_exercice].gain }} points< / li >
< li > < strong > Résolu par :< / strong > {{ themes[current_theme].exercices[current_exercice].solved }} équipes jusqu'à présent< / li >
< / ul >
< / div >
< div class = "panel panel-info" ng-show = "(my.exercices[current_exercice] && my.exercices[current_exercice].files.length)" >
< div class = "panel-heading" >
< div class = "panel-title" > Téléchargements< / div >
< / div >
< table class = "table table-striped table-hover" >
< thead >
< tr >
< th > < / th >
< th > Nom< / th >
< th > Taille< / th >
< th > SHA-1< / th >
< / tr >
< / thead >
< tbody >
< tr ng-repeat = "file in my.exercices[current_exercice].files" >
< td > < a href = "{{ file.path }}" target = "_self" > < span class = "glyphicon glyphicon-download" aria-hidden = "true" > < / span > < / a > < / td >
< td > {{ file.name }}< / td >
< td > {{ file.size }}< / td >
< td > < code > {{ file.checksum }}< / code > < / td >
< / tr >
< / tbody >
< / table >
< / div >
2016-01-21 00:38:43 +00:00
< div class = "alert alert-info" ng-class = "messageClass" ng-show = "my.exercices[current_exercice] && !(my.exercices[current_exercice].solved) && (my.exercices[current_exercice].submitted)" >
2016-01-23 11:29:19 +00:00
< strong > Votre tentative a bien été transmise.< / strong > {{ message }}
2016-01-21 00:38:43 +00:00
< / div >
2016-01-23 11:29:19 +00:00
< div class = "panel panel-danger" ng-show = "my.team_id && my.exercices[current_exercice] && !(my.exercices[current_exercice].solved) && !(my.exercices[current_exercice].submitted)" >
2016-01-16 21:40:59 +00:00
< div class = "panel-heading" >
< div class = "panel-title" > Soumettre une solution< / div >
< / div >
< div class = "panel-body" >
2016-01-21 00:38:43 +00:00
< p ng-show = "(my.exercices[current_exercice].solved_number)" > Dernière solution envoyée à {{ my.exercices[current_exercice].solved_time }}.< / p >
2016-01-23 11:29:19 +00:00
< form ng-controller = "SubmissionController" ng-submit = "ssubmit()" >
< div class = "form-group" ng-repeat = "key in flags" >
< label for = "sol_{{ key.id }}" > {{ key.name }}< / label >
< input type = "text" class = "form-control" id = "sol_{{ key.id }}" name = "sol_{{ index }}" ng-model = "key.value" >
2016-01-16 21:40:59 +00:00
< / div >
2016-01-23 11:29:19 +00:00
< button type = "submit" class = "btn btn-success" id = "sbmt" > Soumettre< / button >
2016-01-16 21:40:59 +00:00
< / form >
< / div >
< / div >
2016-01-23 11:29:19 +00:00
< div class = "panel panel-success" ng-show = "(my.team_id && my.exercices[current_exercice].solved)" >
2016-01-16 21:40:59 +00:00
< div class = "panel-heading" >
< div class = "panel-title" > Challenge réussi !< / div >
< / div >
< div class = "panel-body" >
Vous êtes la {{ my.exercices[current_exercice].solved_number }}< sup > e< / sup > équipe à avoir résolu ce challenge à {{ my.exercices[current_exercice].solved_time }}. Vous avez marqué {{ themes[current_theme].exercices[current_exercice].gain }} points !
< / div >
< / div >
2016-01-23 11:29:19 +00:00
< div class = "panel panel-success" ng-show = "(!my.team_id)" >
< div class = "panel-heading" >
< div class = "panel-title" > Clefs du challenge< / div >
< / div >
< div class = "panel-body" >
< p >
Vérifiez les clefs que vous trouvez en comparant leur SHA-512 :
< / p >
< dl class = "dl-horizontal" ng-repeat = "key in my.exercices[current_exercice].keys" >
< dt > {{ key.slice(128) }}< / dt >
< dd class = "samp" > < code > {{ key.slice(0, 128) }}< / code > < / dd >
< / dl >
< / div >
< / div >