Commit 4f792b2d42715443a758d4824794939b55e452e3

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

remove post delay, change navbar color

aprendizations/serve.py
... ... @@ -411,7 +411,7 @@ class QuestionHandler(BaseHandler):
411 411 return
412 412  
413 413 # --- brain hacking ;)
414   - await asyncio.sleep(1.5)
  414 + # await asyncio.sleep(1.5)
415 415  
416 416 # --- answers are in a list. fix depending on question type
417 417 qtype = self.learn.get_student_question_type(user)
... ...
aprendizations/templates/courses.html
... ... @@ -24,7 +24,7 @@
24 24  
25 25 <body>
26 26 <!-- ===== navbar ======================================================== -->
27   - <nav class="navbar navbar-expand-sm navbar-dark bg-primary fixed-top shadow">
  27 + <nav class="navbar navbar-expand-sm navbar-dark bg-secondary fixed-top shadow">
28 28 <div class="container-fluid">
29 29 <img src="{{static_url('logo_horizontal.png')}}" height="48" width="120" class="navbar-brand" alt="UEvora">
30 30 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
... ...
aprendizations/templates/maintopics-table.html
... ... @@ -24,7 +24,7 @@
24 24 </head>
25 25 <!-- ===================================================================== -->
26 26 <body>
27   -<nav class="navbar navbar-expand-sm navbar-dark bg-primary fixed-top shadow">
  27 +<nav class="navbar navbar-expand-sm navbar-dark bg-secondary fixed-top shadow">
28 28 <div class="container-fluid">
29 29 <img src="{{static_url('logo_horizontal.png')}}" height="48" width="120" class="navbar-brand" alt="UEvora">
30 30 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
... ...
aprendizations/templates/rankings.html
... ... @@ -19,7 +19,7 @@
19 19 </head>
20 20 <!-- ===================================================================== -->
21 21 <body>
22   -<nav class="navbar navbar-expand-sm navbar-dark bg-primary fixed-top">
  22 +<nav class="navbar navbar-expand-sm navbar-dark bg-secondary fixed-top shadow">
23 23 <div class="container-fluid">
24 24 <img src="{{static_url('logo_horizontal.png')}}" height="48" width="120" class="navbar-brand" alt="UEvora">
25 25 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
... ... @@ -53,8 +53,8 @@
53 53 <div class="container">
54 54 <h1 class="display-6">{{ course_title }}</h1>
55 55  
56   -<table class="table table-hover">
57   - <col width="100">
  56 +<table class="table table-sm table-hover">
  57 + <!-- <col width="100"> -->
58 58 <thead>
59 59 <tr>
60 60 <th scope="col" class="text-center">Posição</th>
... ... @@ -65,7 +65,7 @@
65 65 </thead>
66 66 <tbody>
67 67 {% for i,r in enumerate(rankings) %}
68   - <tr class="{{ 'table-primary' if r[0] == uid else '' }}">
  68 + <tr class="{{ 'table-secondary' if r[0] == uid else '' }}">
69 69 <td class="text-center"> <!-- rank -->
70 70 <strong>
71 71 {{ '<i class="fas fa-crown fa-lg text-warning"></i>' if i==0 else i+1 }}
... ...
aprendizations/templates/topic.html
... ... @@ -43,11 +43,11 @@
43 43 <body>
44 44 <!-- Progress bar -->
45 45 <div class="progress fixed-top" style="height: 70px; border-radius: 0px;">
46   - <div class="progress-bar bg-warning" id="topic_progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 1em;width: 0%"></div>
  46 + <div class="progress-bar bg-secondary" id="topic_progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 1em;width: 0%"></div>
47 47 </div>
48 48  
49 49 <!-- Navbar -->
50   - <nav class="navbar navbar-expand-sm navbar-dark bg-primary fixed-top shadow">
  50 + <nav class="navbar navbar-expand-sm navbar-dark bg-secondary fixed-top shadow">
51 51 <div class="container-fluid">
52 52 <img src="{{static_url('logo_horizontal.png')}}" height="48" width="120" class="navbar-brand" alt="UEvora">
53 53 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
... ...