86 lines
3.0 KiB
HTML
86 lines
3.0 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
<div class="grid-container">
|
|
<div class="grid-x padding-top-1">
|
|
{% if request.user.is_authenticated %}
|
|
<div class="cell large-3 medium-4 small-12">
|
|
<a class="button" href="{% url 'admin:intern_topicgroup_add' %}">neuen Themenbereich hinzufügen</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% regroup topic by topic_group as topic_list %}
|
|
{% for topic in topic_list %}
|
|
<div class="internheader">
|
|
<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>
|
|
|
|
{% if topic.grouper.short_description %}
|
|
{{ topic.grouper.short_description }}
|
|
{% endif %}
|
|
|
|
<div class="grid-x grid-padding-x">
|
|
{% for tp in topic.list %}
|
|
<div class="cell large-2 medium-4 small-6">
|
|
<a href="{% url 'intern:topic' tp.slug %}">
|
|
<div class="intern-topic">
|
|
<div class="intern-topic-text">
|
|
{{ tp.title }}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
<div class="cell large-2 medium-4 small-6">
|
|
<a href="{% url 'intern:topic-create' topic.list.0.topic_group.slug %}">
|
|
<div class="intern-topic">
|
|
<div class="intern-topic-text">
|
|
+
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% for topic_group in empty_topic_groups %}
|
|
<div class="internheader">
|
|
<h3>{{ topic_group.title }}<a class="headerlink" id="{{ topic_group.slug }}" href="#{{ topic_group.slug }}" title="Permalink to {{ topic_group.title }}" style="color: lightgrey;"> #</a></h3>
|
|
</div>
|
|
|
|
<div class="grid-x grid-padding-x">
|
|
<div class="cell large-2 medium-4 small-6">
|
|
<a href="{% url 'intern:topic-create' topic_group.slug %}">
|
|
<div class="intern-topic">
|
|
<div class="intern-topic-text">
|
|
+
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</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 'intern:topic' tp.slug %}">
|
|
<div class="intern-topic">
|
|
<div class="intern-topic-text">
|
|
{{ tp.title }}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|