This commit is contained in:
Ross
2021-08-16 09:59:42 +00:00
parent afaae40e48
commit 4d5b825ad6
3 changed files with 20 additions and 4 deletions
+8
View File
@@ -523,4 +523,12 @@ td.user-answer-score-2::after {
border-radius: 2px;
background-color: #343a40;
color: lightgray;
}
.exam-list li {
display: flex;
}
.exam-list li .col {
flex: 1;
}
+4 -4
View File
@@ -4,22 +4,22 @@
<h1>Examinations</h1>
<div class="physics">
Active exams:<br/>
<ul>
<ul class="exam-list">
{% for exam in exams %}
{% if exam.active %}
<li>
<a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{exam.name}}</a> <a href="{% url 'physics:exam_scores_cid' pk=exam.pk %}">(scores)</a> <span class="published-icon {% if exam.publish_results %}published{% endif %}">Results Published</span>
<a href="{% url 'physics:exam_overview' pk=exam.pk %}" class="flex-col">{{exam.name}}</a> <a href="{% url 'physics:exam_scores_cid' pk=exam.pk %}" class="flex-col">(scores)</a> <span class="flex-col published-icon {% if exam.publish_results %}published{% endif %}">Results Published</span>
</li>
{% endif %}
{% endfor %}
</ul>
Inactive exams:<br/>
<ul>
<ul class="exam-list">
{% for exam in exams %}
{% if not exam.active %}
<li>
<a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{exam.name}}</a> <a href="{% url 'physics:exam_scores_cid' pk=exam.pk %}">(scores)</a> <span class="published-icon {% if exam.publish_results %}published{% endif %}">Results Published</span>
<a href="{% url 'physics:exam_overview' pk=exam.pk %}" class="flex-col">{{exam.name}}</a> <a href="{% url 'physics:exam_scores_cid' pk=exam.pk %}" class="flex-col">(scores)</a> <span class="flex-col published-icon {% if exam.publish_results %}published{% endif %}">Results Published</span>
</li>
{% endif %}
{% endfor %}
+8
View File
@@ -523,4 +523,12 @@ td.user-answer-score-2::after {
border-radius: 2px;
background-color: #343a40;
color: lightgray;
}
.exam-list li {
display: flex;
}
.exam-list li .col {
flex: 1;
}