add archive view, get_absolute_url method and fileupload

This commit is contained in:
2021-06-13 21:17:16 +00:00
committed by Patrick Mayr
parent 2d6ac20f48
commit 95e9e9e016
4 changed files with 79 additions and 28 deletions

View File

@@ -7,7 +7,7 @@
{% for topic in topic_list %}
<div class="internheader">
{{ topic.grouper.title }}
<h3>{{ topic.grouper.title }}<a class="headerlink" id="{{topic.list.0.topic_group.slug}}" href="#{{topic.list.0.topic_group.slug}}" title="Permalink to {{topic.grouper}}" style="color: lightgrey;"> #</a></h3>
</div>
<div class="grid-x grid-padding-x">
@@ -25,5 +25,25 @@
</div>
{% endfor %}
{% if archive_topic %}
<div class="internheader">
<h3>Archiv<a class="headerlink" id="archive" href="#archive" title="Permalink to Archiv" style="color: lightgrey;"> #</a></h3>
</div>
<div class="grid-x grid-padding-x">
{% for tp in archive_topic %}
<div class="cell large-2 medium-4 small-6">
<a href="{% url 'topic' tp.slug %}">
<div class="intern-topic">
<div class="intern-topic-text">
{{ tp.title }}
</div>
</div>
</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% endblock %}