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