Commit bc27a182149d76c13cc53e683177a4d0493195f3

Authored by Miguel Barao
1 parent e74eff38
Exists in master and in 1 other branch dev

- show number of online students in /students

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
BUGS.md
... ... @@ -2,7 +2,6 @@
2 2  
3 3 # BUGS
4 4  
5   -- mostrar numero de alunos online em /students
6 5 - modal a pedir confirmação de submissão.
7 6 - implementar singlepage/multipage
8 7 - numeros das perguntas não fazem sentido quando há caixas de informação
... ... @@ -17,4 +16,5 @@
17 16 - criar perguntas de outros tipos, e.g. associação, ordenação, varios textinput
18 17  
19 18 # FIXED
  19 +- mostrar numero de alunos online em /students
20 20 - mostrar cotacao das perguntas, show_points, default:False
... ...
templates/students.html
... ... @@ -33,7 +33,7 @@
33 33 <div class="container">
34 34 <div class="panel panel-default drop-shadow">
35 35 <div class="panel-heading">
36   - List of students
  36 + List of students (${len(loggedin)} online)
37 37 </div>
38 38 <!-- <div class="panel-body"> -->
39 39 <table class="table">
... ... @@ -47,7 +47,7 @@
47 47 <tbody>
48 48 % for r in students:
49 49 % if r[0] in loggedin:
50   - <tr class="success">
  50 + <tr class="danger">
51 51 % else:
52 52 <tr>
53 53 % endif
... ...