This commit is contained in:
Ross
2021-12-15 19:48:08 +00:00
parent c7311fe1f5
commit f6282193af
12 changed files with 76 additions and 33 deletions
+17 -14
View File
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block title %}
Rapids
Rapids
{% endblock %}
{% block css %}
@@ -13,20 +13,23 @@ Rapids
{% block content %}
{% if simple_content %}
{{simple_content}}
{% endif %}
{% endblock %}
{% block navigation %}
Rapids:
{% if request.user.is_authenticated %}
<a href="{% url 'rapids:index' %}">Packets</a> /
<a href="{% url 'rapids:exam_list' %}">Exams</a> /
<a href="{% url 'rapids:exam_create' %}" title="Create a new exam">Create Exam</a> /
<a href="{% url 'rapids:rapid_view' %}">Questions</a> /
<a href="{% url 'rapids:rapid_create' %}" title="Create a new question">Create Question</a>
{% endif %}
{% if request.user.is_superuser %}
/ <a href="{% url 'rapids:user_answer_table_view' %}" title="User answers">Answers</a>
{% endif %}
{% comment %} </br>
Rapids:
{% if request.user.is_authenticated %}
<a href="{% url 'rapids:index' %}">Packets</a> /
<a href="{% url 'rapids:exam_list' %}">Exams</a> /
<a href="{% url 'rapids:exam_create' %}" title="Create a new exam">Create Exam</a> /
<a href="{% url 'rapids:rapid_view' %}">Questions</a> /
<a href="{% url 'rapids:rapid_create' %}" title="Create a new question">Create Question</a>
{% endif %}
{% if request.user.is_superuser %}
/ <a href="{% url 'rapids:user_answer_table_view' %}" title="User answers">Answers</a>
{% endif %}
{% comment %} </br>
Questions by:
<span id="authors-link"><a href="{% url 'rapids:author_list' %}">author</a></span> {% endcomment %}
{% endblock %}
{% endblock %}
+1
View File
@@ -4,6 +4,7 @@
<div id="stats-plot">{{plot|safe}}</div>
<div class="rapids">
<h2>{{ exam.name }}</h2>
User answer scores are cached, if you update or change an answer you will need to <a href="{% url 'anatomy:exam_scores_refresh' exam.pk %}">refresh the scores</a>.
{% if unmarked %}
<div class="alert alert-warning" role="alert">