2016-11-19 15:26:23 +00:00
package main
const indextpl = ` < ! DOCTYPE html >
< html ng - app = "FICApp" >
< head >
< meta charset = "utf-8" >
< title > Challenge Forensic - Administration < / title >
2020-01-17 13:45:34 +00:00
< link href = "{{.urlbase}}css/bootstrap.min.css" type = "text/css" rel = "stylesheet" >
< link href = "{{.urlbase}}css/glyphicon.css" type = "text/css" rel = "stylesheet" media = "screen" >
2017-12-17 15:10:29 +00:00
< style >
2018-11-18 17:48:23 +00:00
. cksum {
2017-12-17 15:10:29 +00:00
overflow - x : hidden ;
text - overflow : ellipsis ;
2018-11-18 17:48:23 +00:00
max - width : 100 % ;
2017-12-17 15:10:29 +00:00
display : inline - block ;
vertical - align : middle ;
2018-11-18 17:48:23 +00:00
word - wrap : normal ;
white - space : nowrap ;
2017-12-17 15:10:29 +00:00
}
2018-12-02 03:52:48 +00:00
. bg - mfound {
2018-12-09 18:26:34 +00:00
background - color : # 7 bcfd0 ! important ;
2018-12-02 03:52:48 +00:00
}
. bg - ffound {
2018-12-09 18:26:34 +00:00
background - color : # 7 bdfc0 ! important ;
}
. bg - wchoices {
background - color : # c07bdf ! important ;
2018-12-02 03:52:48 +00:00
}
2020-01-29 15:01:11 +00:00
. table th . frotated {
border : 0 ;
}
. table th . rotated {
height : 100 px ;
width : 40 px ;
min - width : 40 px ;
max - width : 40 px ;
position : relative ;
vertical - align : bottom ;
padding : 0 ;
font - size : 12 px ;
line - height : 0.9 ;
border : 0 ;
}
th . rotated > div {
position : relative ;
top : 0 px ;
left : - 50 px ;
height : 100 % ;
transform : skew ( 45 deg , 0 deg ) ;
overflow : hidden ;
border : 1 px solid # 000 ;
}
th . rotated div a {
transform : skew ( - 45 deg , 0 deg ) rotate ( 45 deg ) ;
position : absolute ;
bottom : 40 px ;
left : - 35 px ;
display : inline - block ;
width : 110 px ;
text - align : left ;
text - overflow : ellipsis ;
}
2022-05-24 11:32:02 +00:00
. col img {
max - width : 100 % ;
}
2023-06-17 00:07:27 +00:00
. circle - anim {
z - index : 1 ;
border : black 1 px solid ;
border - radius : .5 em ;
margin - top : .4 em ;
margin - left : .5 em ;
height : 1 em ;
width : 1 em ;
transition : transform ease - in .7 s ;
transform : scale ( 1 ) ;
}
. circle - anim . play {
transform : scale ( 250 ) ;
opacity : 0 ;
}
2017-12-17 15:10:29 +00:00
< / style >
2016-11-19 15:26:23 +00:00
< base href = "{{.urlbase}}" >
2021-07-21 21:17:47 +00:00
< script src = "js/d3.v3.min.js" > < / script >
2016-11-19 15:26:23 +00:00
< / head >
2018-01-06 14:14:40 +00:00
< body class = "bg-light text-dark" >
2022-01-21 08:07:27 +00:00
< nav class = "navbar sticky-top navbar-expand-lg navbar-dark text-light" ng - class = "{'bg-dark': settings.wip, 'bg-danger': !settings.wip}" >
2019-02-01 19:50:58 +00:00
< a class = "navbar-brand" href = "." >
< img alt = "FIC" src = "img/fic.png" style = "height: 30px" >
2017-12-14 03:08:43 +00:00
< / a >
< button class = "navbar-toggler" type = "button" data - toggle = "collapse" data - target = "#adminMenu" aria - controls = "adminMenu" aria - expanded = "false" aria - label = "Toggle navigation" >
< span class = "navbar-toggler-icon" > < / span >
< / button >
2016-11-19 15:26:23 +00:00
2017-12-14 03:08:43 +00:00
< div class = "collapse navbar-collapse" id = "adminMenu" >
< ul class = "navbar-nav mr-auto" >
2022-05-26 21:51:34 +00:00
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/teams')}" > < a class = "nav-link" href = "teams" > & Eacute ; quipes < / a > < / li >
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/pki')}" > < a class = "nav-link" href = "pki" > PKI < / a > < / li >
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/themes')}" > < a class = "nav-link" href = "themes" > Thèmes < / a > < / li >
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/exercices')}" > < a class = "nav-link" href = "exercices" > Exercices < / a > < / li >
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/public')}" > < a class = "nav-link" href = "public/0" > Public < / a > < / li >
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/events')}" > < a class = "nav-link" href = "events" > & Eacute ; vénements < / a > < / li >
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/claims')}" > < a class = "nav-link" href = "claims" ng - controller = "ClaimsTinyListController" >
2020-01-20 07:46:13 +00:00
Tâches
2024-03-17 15:05:13 +00:00
< span class = "badge badge-{{ " { { priorities [ myClaimsMaxLevel ] } } " }}" ng - show = "myClaims" title = "Tâches qui me sont assignées" > { { "{{ myClaims }}" } } < / span >
< span class = "badge badge-{{ " { { priorities [ newClaimsMaxLevel ] } } " }}" ng - show = "newClaims" title = "Nouvelles tâches en attente d'attribution" > { { "{{ newClaims }}" } } < / span >
2020-01-20 07:46:13 +00:00
< / a > < / li >
2023-10-23 17:22:19 +00:00
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/sync') || $location.path().startsWith('/repositories')}" >
2022-05-19 19:15:25 +00:00
< a class = "nav-link" href = "sync" ng - show = "settings.wip" >
Synchronisation
< / a >
< / li >
2022-05-26 21:51:34 +00:00
< li class = "nav-item" ng - class = "{'active': $location.path().startsWith('/settings')}" >
2022-01-21 08:07:27 +00:00
< a class = "nav-link" href = "settings" >
Paramètres
< / a >
< / li >
< span class = "d-flex flex-column justify-content-center" ng - show = "!settings.wip" ng - cloak >
< span class = "badge badge-light p-1" >
prod
< / span >
< / span >
2016-11-19 15:26:23 +00:00
< / ul >
< / div >
2017-12-14 03:08:43 +00:00
< span id = "clock" class = "navbar-text" ng - controller = "CountdownController" ng - cloak >
2023-06-17 00:07:27 +00:00
< div style = "position: absolute;" >
< div style = "position: absolute;" id = "circle1" class = "circle-anim border-danger" > < / div >
< div style = "position: absolute;" id = "circle2" class = "circle-anim border-info" > < / div >
< / div >
2023-07-10 10:10:03 +00:00
< button type = "button" class = "mr-2 btn btn-sm" ng - class = "{'btn-info':staticFilesNeedUpdate,'btn-secondary':!staticFilesNeedUpdate}" ng - click = "regenerateStaticFiles()" ng - disabled = "staticRegenerationInProgress" >
< span class = "glyphicon glyphicon-refresh" aria - hidden = "true" title = "Regénérer les fichiers statiques" ng - show = "!staticRegenerationInProgress" > < / span >
< div class = "spinner-border spinner-border-sm" role = "status" ng - show = "staticRegenerationInProgress" >
< span class = "sr-only" > Loading ... < / span >
< / div >
< span ng - if = "staticFilesNeedUpdate" > { { "{{ staticFilesNeedUpdate }}" } } < / span >
< / button >
2017-12-14 03:08:43 +00:00
< span ng - show = "startIn > 0" >
Démarrage dans :
< span > { { "{{ startIn }}" } } < / span > "
< span class = "point" > | < / span >
< / span >
2023-05-12 12:53:15 +00:00
< span ng - show = "settings && settings.end > 0" >
< span id = "hours" > { { "{{ time.hours | time }}" } } < / span >
< span class = "point" > : < / span >
< span id = "min" > { { "{{ time.minutes | time }}" } } < / span >
< span class = "point" > : < / span >
< span id = "sec" > { { "{{ time.seconds | time }}" } } < / span >
< / span >
2017-12-14 03:08:43 +00:00
< / span >
2016-11-19 15:26:23 +00:00
< / nav >
2018-12-05 04:38:20 +00:00
< div class = "progress" style = "background-color: #4eaee6; height: 3px; border-radius: 0;" >
< div class = "progress-bar bg-secondary" role = "progressbar" style = "width: {{ " { { timeProgression * 100 } } " }}%" > < / div >
< / div >
2018-12-05 04:58:36 +00:00
< div class = "container mt-1" ng - view > < / div >
2017-12-14 03:08:43 +00:00
2020-03-08 11:48:25 +00:00
< div style = "position: fixed; top: 60px; right: 0; z-index: 10; min-width: 30vw;" >
< toast ng - repeat = "toast in toasts" yes - no = "toast.yesFunc || toast.noFunc" onyes = "toast.yesFunc" onno = "toast.noFunc" date = "toast.date" msg = "toast.msg" timeout = "toast.timeout" title = "toast.title" variant = "toast.variant" > < / toast >
< / div >
2021-07-21 10:30:51 +00:00
< script src = "js/jquery.min.js" > < / script >
2019-02-01 19:50:58 +00:00
< script src = "js/popper.min.js" > < / script >
2021-07-21 10:30:51 +00:00
< script src = "js/bootstrap.min.js" > < / script >
< script src = "js/angular.min.js" > < / script >
2019-02-01 19:50:58 +00:00
< script src = "js/angular-resource.min.js" > < / script >
2021-07-21 10:30:51 +00:00
< script src = "js/angular-route.min.js" > < / script >
< script src = "js/angular-sanitize.min.js" > < / script >
2019-02-01 19:50:58 +00:00
< script src = "js/app.js" > < / script >
< script src = "js/common.js" > < / script >
2016-11-19 15:26:23 +00:00
< / body >
< / html >
`