This commit is contained in:
Ross
2022-03-22 22:09:49 +00:00
parent 7577a031c1
commit e3e5eee1e0
6 changed files with 59 additions and 7 deletions
@@ -0,0 +1,16 @@
{% extends 'atlas/base.html' %}
{% block content %}
<h2>Case {{case_number|add:1}}</h2>
{{case.get_series_blocks}}
{% if previous %}
<a href="{% url 'atlas:collection_case_view' pk=collection.pk case_number=case_number|add:-1 %}">Previous</a>
{% endif %}
{% if next %}
<a href="{% url 'atlas:collection_case_view' pk=collection.pk case_number=case_number|add:1 %}">Next</a>
{% endif %}
<br/>
Return to <a href='{{collection.get_absolute_url}}'>collection</a>
{% endblock %}
@@ -1,9 +1,12 @@
{% extends 'atlas/base.html' %}
{% block content %}
<h2>{{collection.name}}
<ul>
{% for case in collection %}
<li>{{case.title}}: {{case.descriptions}}</li>
{% for case in collection.cases.all %}
<li><a href="{% url 'atlas:collection_case_view' pk=collection.pk case_number=forloop.counter0 %}">Case {{forloop.counter}}</a></li>
{% endfor %}
</ul>
{% endblock %}
@@ -3,7 +3,7 @@
{% block content %}
<ul>
{% for collection in collections %}
<li>{{collection.name}}</li>
<li><a href='{{collection.get_absolute_url}}'>{{collection.name}}</a></li>
{% endfor %}
</ul>
{% endblock %}