.
This commit is contained in:
+1
-1
@@ -56,9 +56,9 @@ urlpatterns = [
|
||||
path("accounts/", include("django.contrib.auth.urls")),
|
||||
path("accounts/profile", views.profile, name="profile"),
|
||||
path("", TemplateView.as_view(template_name="index.html"), name="home"),
|
||||
path("cid/results/<int:cid>/", views.cid_results, name="cid_results"),
|
||||
path("cid/<int:pk>/<str:passcode>", views.cid_scores, name="cid_scores"),
|
||||
path("cid/<int:cid>/", views.cid_scores_admin, name="cid_scores_admin"),
|
||||
path("cid/<int:cid>/results", views.cid_results, name="cid_results"),
|
||||
path("cid/", views.cid_selector, name="cid_selector"),
|
||||
# Global url that registers RTS compatible exams
|
||||
path("exam/json/", views.active_exams, name="active_exams"),
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<h4>{{t}}</h4>
|
||||
<ul>
|
||||
{% for e in exams %}
|
||||
<li><a href="{{e.get_take_url}}?cid={{cid}}&passcode={{passcode}}" target="_blank">{{e.name}} {% if e.active %}[Active]{% endif %}</a></li>
|
||||
<li><a href="" target="_blank">{{e.name}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
@@ -20,7 +20,7 @@
|
||||
<h4>{{exam_type|title}}</h4>
|
||||
<ul>
|
||||
{% for exam in exams %}
|
||||
<li><a href="{% url exam_type|add:':exam_scores_cid_user' pk=exam.pk cid=cid passcode=passcode %}">{{exam.name}}</a> {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}</li>
|
||||
<li><a href="">{{exam.name}} {{exam.get_user_score|cid}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user