Commit 87ca088495551c200f88e1b2b592279c985917c8

Authored by Miguel Barão
1 parent b0c36401
Exists in master and in 1 other branch dev

- added "Sair" option in the admin menu.

- show solutions in review.
templates/admin.html
@@ -48,6 +48,8 @@ @@ -48,6 +48,8 @@
48 <a class="dropdown-item" href="#" id="reset_password_menu" data-toggle="modal" data-target="#reset_password_modal">Reset password do aluno...</a> 48 <a class="dropdown-item" href="#" id="reset_password_menu" data-toggle="modal" data-target="#reset_password_modal">Reset password do aluno...</a>
49 <a class="dropdown-item" href="#" id="allow_all">Autorizar todos</a> 49 <a class="dropdown-item" href="#" id="allow_all">Autorizar todos</a>
50 <a class="dropdown-item" href="#" id="deny_all">Desautorizar todos</a> 50 <a class="dropdown-item" href="#" id="deny_all">Desautorizar todos</a>
  51 + <div class="dropdown-divider"></div>
  52 + <a class="dropdown-item" href="/logout">Sair</a>
51 </div> 53 </div>
52 </li> 54 </li>
53 </ul> 55 </ul>
templates/review-question.html
@@ -41,6 +41,10 @@ @@ -41,6 +41,10 @@
41 {{ round(q['grade'] * q['points'], 2) }} 41 {{ round(q['grade'] * q['points'], 2) }}
42 pontos<br> 42 pontos<br>
43 {{ q['comments'] }} 43 {{ q['comments'] }}
  44 + {% if 'solution' in q %}
  45 + <hr>
  46 + {{ md('**Solução:** ' + q['solution']) }}
  47 + {% end %}
44 </p> 48 </p>
45 {% else %} 49 {% else %}
46 <p class="text-danger"> 50 <p class="text-danger">
@@ -48,6 +52,10 @@ @@ -48,6 +52,10 @@
48 {{ round(q['grade'] * q['points'], 2) }} 52 {{ round(q['grade'] * q['points'], 2) }}
49 pontos<br> 53 pontos<br>
50 {{ q['comments'] }} 54 {{ q['comments'] }}
  55 + {% if 'solution' in q %}
  56 + <hr>
  57 + {{ md('**Solução:** ' + q['solution']) }}
  58 + {% end %}
51 </p> 59 </p>
52 {% end %} 60 {% end %}
53 61