Commit c41e87186db07948fd7a33d8682c93afcc659985
1 parent
2238ead3
Exists in
master
and in
1 other branch
- cosmetic changes.
Showing
3 changed files
with
27 additions
and
26 deletions
Show diff stats
demo/questions/questions.yaml
| @@ -97,14 +97,14 @@ | @@ -97,14 +97,14 @@ | ||
| 97 | - | 97 | - |
| 98 | ref: markdown_instructions | 98 | ref: markdown_instructions |
| 99 | type: information | 99 | type: information |
| 100 | - title: Fórmulas auxiliares | 100 | + title: Que mais se pode incluir nas perguntas? |
| 101 | 101 | ||
| 102 | # allow these files will be served: | 102 | # allow these files will be served: |
| 103 | files: | 103 | files: |
| 104 | imagem_privada: images/flag-pt.svg | 104 | imagem_privada: images/flag-pt.svg |
| 105 | 105 | ||
| 106 | text: | | 106 | text: | |
| 107 | - O texto das perguntas é escrito em __markdown__ e pode incluir algumas *tags* __html__. É usado MathJax para representar fórmulas matemáticas. | 107 | + O texto das perguntas é escrito em __markdown__ e pode incluir algumas *tags* __html__. É usado __MathJax__ para gerar fórmulas matemáticas com a *syntax* do __LaTeX__. |
| 108 | 108 | ||
| 109 | ### LaTeX | 109 | ### LaTeX |
| 110 | 110 |
templates/admin.html
| @@ -50,17 +50,19 @@ | @@ -50,17 +50,19 @@ | ||
| 50 | </div> | 50 | </div> |
| 51 | </div> | 51 | </div> |
| 52 | </nav> | 52 | </nav> |
| 53 | - | 53 | +<!-- ===================================================================== --> |
| 54 | <div class="container"> | 54 | <div class="container"> |
| 55 | 55 | ||
| 56 | <div class="well drop-shadow"> | 56 | <div class="well drop-shadow"> |
| 57 | + <big> | ||
| 57 | <dl class="dl-horizontal"> | 58 | <dl class="dl-horizontal"> |
| 58 | <dt>Title</dt><dd id="title"></dd> | 59 | <dt>Title</dt><dd id="title"></dd> |
| 59 | - <dt>Ref</dt><dd><code id="ref"></code></dd> | ||
| 60 | - <dt>Test</dt><dd><code id="filename"></code></dd> | ||
| 61 | - <dt>Database</dt><dd><code id="database"></code></dd> | ||
| 62 | - <dt>Saved tests</dt><dd><code id="answers_dir"></code></dd> | 60 | + <dt>Ref</dt><dd id="ref"></dd> |
| 61 | + <dt>Test</dt><dd id="filename"></dd> | ||
| 62 | + <dt>Database</dt><dd id="database"></dd> | ||
| 63 | + <dt>Saved tests</dt><dd id="answers_dir"></dd> | ||
| 63 | </dl> | 64 | </dl> |
| 65 | + </big> | ||
| 64 | </div> | 66 | </div> |
| 65 | 67 | ||
| 66 | <div class="panel panel-primary drop-shadow"> | 68 | <div class="panel panel-primary drop-shadow"> |
templates/review.html
| @@ -223,29 +223,28 @@ | @@ -223,29 +223,28 @@ | ||
| 223 | <p> | 223 | <p> |
| 224 | % endif | 224 | % endif |
| 225 | 225 | ||
| 226 | - | ||
| 227 | - <!-- show correction --> | 226 | + </div> <!-- panel-body --> |
| 227 | + <div class="panel-footer"> | ||
| 228 | % if q['grade'] > 0.99: | 228 | % if q['grade'] > 0.99: |
| 229 | - <div class="alert alert-success" role="alert"> | ||
| 230 | - <i class="fa fa-thumbs-o-up" aria-hidden="true"></i> | ||
| 231 | - ${round(q['grade'] * q['points'] / total_points * 20.0, 2)} pontos<br> | ||
| 232 | - ${q['comments']} | ||
| 233 | - </div> | 229 | + <p class="text-success"> |
| 230 | + <i class="fa fa-thumbs-o-up" aria-hidden="true"></i> | ||
| 231 | + ${round(q['grade'] * q['points'] / total_points * 20.0, 2)} pontos<br> | ||
| 232 | + ${q['comments']} | ||
| 233 | + </p> | ||
| 234 | % elif q['grade'] > 0.49: | 234 | % elif q['grade'] > 0.49: |
| 235 | - <div class="alert alert-warning" role="alert"> | ||
| 236 | - <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> | ||
| 237 | - ${round(q['grade'] * q['points'] / total_points * 20.0, 2)} pontos<br> | ||
| 238 | - ${q['comments']} | ||
| 239 | - </div> | 235 | + <p class="text-warning"> |
| 236 | + <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> | ||
| 237 | + ${round(q['grade'] * q['points'] / total_points * 20.0, 2)} pontos<br> | ||
| 238 | + ${q['comments']} | ||
| 239 | + </p> | ||
| 240 | % else: | 240 | % else: |
| 241 | - <div class="alert alert-danger" role="alert"> | ||
| 242 | - <i class="fa fa-thumbs-o-down" aria-hidden="true"></i> | ||
| 243 | - ${round(q['grade'] * q['points'] / total_points * 20.0, 2)} pontos<br> | ||
| 244 | - ${q['comments']} | ||
| 245 | - </div> | 241 | + <p class="text-danger"> |
| 242 | + <i class="fa fa-thumbs-o-down" aria-hidden="true"></i> | ||
| 243 | + ${round(q['grade'] * q['points'] / total_points * 20.0, 2)} pontos<br> | ||
| 244 | + ${q['comments']} | ||
| 245 | + </p> | ||
| 246 | % endif | 246 | % endif |
| 247 | - | ||
| 248 | - </div> <!-- panel-body --> | 247 | + </div> |
| 249 | </div> <!-- panel --> | 248 | </div> <!-- panel --> |
| 250 | % endif | 249 | % endif |
| 251 | </div> <!-- ui-corner-all custom-corners --> | 250 | </div> <!-- ui-corner-all custom-corners --> |