2016-01-16 21:40:59 +00:00
< ul class = "nav nav-tabs nav-justified" >
< 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.exercices[k].solved)" class = "badge" > {{ exercice.gain }}< / span > < / a > < / li >
< / 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-16 21:40:59 +00:00
< div style = "margin-top: 15px" class = "well" ng-show = "(my.exercices[current_exercice])" >
< p > {{ my.exercices[current_exercice].statement }}< / p >
< p ng-show = "(my.exercices[current_exercice].hint)" > {{ my.exercices[current_exercice].hint }}< / p >
< 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)" >
< strong > Your solution has been submitted.< / strong > {{ message }}
< / div >
< div class = "panel panel-danger" ng-show = "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 >
< form class = "form-inline" ng-submit = "ssubmit()" >
2016-01-16 21:40:59 +00:00
< div class = "form-group" >
2016-01-21 00:38:43 +00:00
< input type = "text" class = "form-control" placeholder = "Votre solution" id = "solution" name = "solution" onchange = "sready()" >
2016-01-16 21:40:59 +00:00
< / div >
2016-01-21 00:38:43 +00:00
< button type = "submit" class = "btn btn-success disabled" id = "sbmt" > Soumettre< / button >
2016-01-16 21:40:59 +00:00
< / form >
< / div >
< / div >
< div class = "panel panel-success" ng-show = "(my.exercices[current_exercice].solved)" >
< 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 >