Commit 55ae9a108fb4d5d7209fbc7f396b27422d4900d4
1 parent
fc533376
Exists in
master
and in
1 other branch
minor changes in maintopics-table
Showing
2 changed files
with
22 additions
and
21 deletions
Show diff stats
aprendizations/serve.py
| @@ -407,9 +407,6 @@ class QuestionHandler(BaseHandler): | @@ -407,9 +407,6 @@ class QuestionHandler(BaseHandler): | ||
| 407 | }) | 407 | }) |
| 408 | return | 408 | return |
| 409 | 409 | ||
| 410 | - # --- brain hacking ;) | ||
| 411 | - # await asyncio.sleep(1.5) | ||
| 412 | - | ||
| 413 | # --- answers are in a list. fix depending on question type | 410 | # --- answers are in a list. fix depending on question type |
| 414 | qtype = self.learn.get_student_question_type(user) | 411 | qtype = self.learn.get_student_question_type(user) |
| 415 | ans: Optional[Union[List, str]] | 412 | ans: Optional[Union[List, str]] |
aprendizations/templates/maintopics-table.html
| @@ -102,15 +102,17 @@ | @@ -102,15 +102,17 @@ | ||
| 102 | <!-- ------------------------------------------------------------- --> | 102 | <!-- ------------------------------------------------------------- --> |
| 103 | {% if t['level'] is None %} | 103 | {% if t['level'] is None %} |
| 104 | <tr> | 104 | <tr> |
| 105 | - <th scope="row" class="text-muted text-center"> | ||
| 106 | - {% if t['type']=='chapter' %} | ||
| 107 | - <h5><i class="bi bi-flag-fill"></i></h5> | ||
| 108 | - {% elif t['type']=='learn' %} | ||
| 109 | - <h5><i class="bi bi-book"></i></h5> | ||
| 110 | - {% else %} | ||
| 111 | - <h5><i class="bi bi-pencil"></i></h5> | ||
| 112 | - {% end %} | ||
| 113 | - </th> | 105 | + <td scope="row" class="text-muted text-center"> |
| 106 | + <h5> | ||
| 107 | + {% if t['type']=='chapter' %} | ||
| 108 | + <i class="bi bi-flag-fill"></i> | ||
| 109 | + {% elif t['type']=='learn' %} | ||
| 110 | + <i class="bi bi-book"></i> | ||
| 111 | + {% else %} | ||
| 112 | + <i class="bi bi-pencil-square"></i> | ||
| 113 | + {% end %} | ||
| 114 | + </h5> | ||
| 115 | + </td> | ||
| 114 | <td class="text-muted"> | 116 | <td class="text-muted"> |
| 115 | {% if t['ref'] not in course['goals'] %} | 117 | {% if t['ref'] not in course['goals'] %} |
| 116 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Este tópico é um pré-requisito"> | 118 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Este tópico é um pré-requisito"> |
| @@ -129,21 +131,23 @@ | @@ -129,21 +131,23 @@ | ||
| 129 | {% else %} | 131 | {% else %} |
| 130 | 132 | ||
| 131 | <tr class="clickable-row " data-href="/topic/{{t['ref']}}"> | 133 | <tr class="clickable-row " data-href="/topic/{{t['ref']}}"> |
| 132 | - <th scope="row" class="text-primary text-center"> | ||
| 133 | - {% if t['type']=='chapter' %} | 134 | + <td scope="row" class="text-primary text-center"> |
| 135 | + <h5> | ||
| 136 | + {% if t['type']=='chapter' %} | ||
| 134 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Fim do capítulo"> | 137 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Fim do capítulo"> |
| 135 | - <h5><i class="bi bi-flag-fill"></i></h5> | 138 | + <i class="bi bi-flag-fill"></i> |
| 136 | </span> | 139 | </span> |
| 137 | - {% elif t['type']=='learn' %} | 140 | + {% elif t['type']=='learn' %} |
| 138 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Texto com matéria"> | 141 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Texto com matéria"> |
| 139 | - <h5><i class="bi bi-book"></i></h5> | 142 | + <i class="bi bi-book"></i> |
| 140 | </span> | 143 | </span> |
| 141 | - {% else %} | 144 | + {% else %} |
| 142 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Exercícios"> | 145 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Exercícios"> |
| 143 | - <h5><i class="bi bi-pencil"></i></h5> | 146 | + <i class="bi bi-pencil-square"></i> |
| 144 | </span> | 147 | </span> |
| 145 | - {% end %} | ||
| 146 | - </th> | 148 | + {% end %} |
| 149 | + </h5> | ||
| 150 | + </td> | ||
| 147 | <td class="text-primary"> | 151 | <td class="text-primary"> |
| 148 | {% if t['ref'] not in course['goals'] %} | 152 | {% if t['ref'] not in course['goals'] %} |
| 149 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Este tópico é um pré-requisito"> | 153 | <span class="text-nowrap" data-toggle="tooltip" data-placement="bottom" title="Este tópico é um pré-requisito"> |