Commit ee9a84b8644a304997d2a3ee8c68f11d79c9ac38
Exists in
master
and in
1 other branch
Merge remote-tracking branch 'origin/dev' into dev
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
demo/demo.yaml
| ... | ... | @@ -35,7 +35,7 @@ autosubmit: false |
| 35 | 35 | # shown to the student. If false, the test is saved but not corrected. |
| 36 | 36 | # No grade is shown to the student. |
| 37 | 37 | # (default: true) |
| 38 | -autocorrect: false | |
| 38 | +autocorrect: true | |
| 39 | 39 | |
| 40 | 40 | # Show points for each question (min and max). |
| 41 | 41 | # (default: true) | ... | ... |
perguntations/templates/grade.html
| ... | ... | @@ -40,14 +40,14 @@ |
| 40 | 40 | <!-- ================================================================== --> |
| 41 | 41 | <div class="container"> |
| 42 | 42 | <div class="jumbotron"> |
| 43 | - {% if t['state'] == 'FINISHED' %} | |
| 43 | + {% if t['state'] == 'CORRECTED' %} | |
| 44 | + {% if t['grade'] - t['scale'][0] >= 0.75*(t['scale'][1] - t['scale'][0]) %} | |
| 45 | + <i class="fas fa-thumbs-up fa-5x text-success" aria-hidden="true"></i> | |
| 46 | + {% end %} | |
| 44 | 47 | <h3>Resultado: |
| 45 | 48 | <strong>{{ f'{round(t["grade"], 3)}' }}</strong> |
| 46 | 49 | valores na escala [{{t['scale'][0]}},{{t['scale'][1]}}]. |
| 47 | 50 | </h3> |
| 48 | - {% if t['grade'] - t['scale'][0] >= 0.75*(t['scale'][1] - t['scale'][0]) %} | |
| 49 | - <i class="fas fa-thumbs-up fa-5x text-success" aria-hidden="true"></i> | |
| 50 | - {% end %} | |
| 51 | 51 | {% elif t['state'] == 'SUBMITTED' %} |
| 52 | 52 | <h3>A prova foi submetida com sucesso. Vai ser corrigida mais tarde.</h3> |
| 53 | 53 | {% elif t['state'] == 'QUIT' %} | ... | ... |