Merge branch 'main' of ssh://git.homeserver.vpn:222/andrea/probo
Some checks failed
Build and push Probo image on the registry / login (push) Failing after 2m40s
Some checks failed
Build and push Probo image on the registry / login (push) Failing after 2m40s
This commit is contained in:
commit
5097bb50a5
3 changed files with 3 additions and 7 deletions
|
|
@ -117,7 +117,7 @@ var Handler = func(h *template.Handler, store serve.Storer, responseCh chan stri
|
|||
}
|
||||
|
||||
case http.MethodPost:
|
||||
if !session.IsAlwaysActive && time.Now().After(session.End) {
|
||||
if !isAdmin && !session.IsAlwaysActive && time.Now().After(session.End) {
|
||||
err := h.Error(w, errors.New("The exam is over."))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
exam-response label[correct="true"] p {
|
||||
color: var(--pico-color-lime-200);
|
||||
}
|
||||
|
||||
exam-response label[correct="false"] p {
|
||||
exam-response label[correct] p{
|
||||
color: var(--pico-color-lime-200);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
{{else}}
|
||||
<input type="radio"
|
||||
id="{{$quiz.ID}}_{{$answer.ID}}" name="{{$quiz.ID}}"
|
||||
value="{{$answer.ID}}" required {{if $.Session.IsEnded}}disabled{{end}} {{if $.Response}}{{if ($answer|$.Response.IsSelected)}}checked{{end}}{{end}}>
|
||||
value="{{$answer.ID}}" required {{if (and $.Session.IsEnded (not $.IsAdmin))}}disabled{{end}} {{if $.Response}}{{if ($answer|$.Response.IsSelected)}}checked{{end}}{{end}}>
|
||||
<label for="{{$quiz.ID}}_{{$answer.ID}}"
|
||||
{{if (and $.Session.IsEnded ($answer|$quiz.IsCorrect))}}correct{{end}}>{{$answer.Text|markdown}}
|
||||
</label><br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue