From 55ae9a108fb4d5d7209fbc7f396b27422d4900d4 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Fri, 11 Nov 2022 19:33:28 +0000 Subject: [PATCH] minor changes in maintopics-table --- aprendizations/serve.py | 3 --- aprendizations/templates/maintopics-table.html | 40 ++++++++++++++++++++++------------------ 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/aprendizations/serve.py b/aprendizations/serve.py index 4d32973..c45a40a 100644 --- a/aprendizations/serve.py +++ b/aprendizations/serve.py @@ -407,9 +407,6 @@ class QuestionHandler(BaseHandler): }) return - # --- brain hacking ;) - # await asyncio.sleep(1.5) - # --- answers are in a list. fix depending on question type qtype = self.learn.get_student_question_type(user) ans: Optional[Union[List, str]] diff --git a/aprendizations/templates/maintopics-table.html b/aprendizations/templates/maintopics-table.html index 0c7954c..b129b6c 100644 --- a/aprendizations/templates/maintopics-table.html +++ b/aprendizations/templates/maintopics-table.html @@ -102,15 +102,17 @@ {% if t['level'] is None %} - - {% if t['type']=='chapter' %} -
- {% elif t['type']=='learn' %} -
- {% else %} -
- {% end %} - + +
+ {% if t['type']=='chapter' %} + + {% elif t['type']=='learn' %} + + {% else %} + + {% end %} +
+ {% if t['ref'] not in course['goals'] %} @@ -129,21 +131,23 @@ {% else %} - - {% if t['type']=='chapter' %} + +
+ {% if t['type']=='chapter' %} -
+
- {% elif t['type']=='learn' %} + {% elif t['type']=='learn' %} -
+
- {% else %} + {% else %} -
+
- {% end %} - + {% end %} +
+ {% if t['ref'] not in course['goals'] %} -- libgit2 0.21.2