2016-08-10 00:38:10 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block header %}Neuigkeiten - Übersicht {% endblock %}
|
|
|
|
{% block headline %}Neuigkeiten{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% autoescape off %}
|
2018-02-25 12:21:28 +01:00
|
|
|
{% if category %}
|
|
|
|
<h1>Blog posts for category {{ category }}</h1>
|
|
|
|
{% endif %}
|
2016-08-10 00:38:10 +02:00
|
|
|
{% if blogentries %}
|
|
|
|
{% for blogentry in blogentries %}
|
2016-09-12 01:28:03 +02:00
|
|
|
{% if blogentry.published %}
|
2016-08-16 15:13:42 +02:00
|
|
|
<h1>{{ blogentry.header }}</h1>
|
|
|
|
<small>posted on: {{blogentry.date}} by {{blogentry.user.username}}</small>
|
2016-10-24 18:43:54 +02:00
|
|
|
<p>{{blogentry.intro|linebreaks}}
|
2018-02-25 12:21:28 +01:00
|
|
|
<small>Filed under: {% for category in blogentry.categories.all %} <a href="{% url 'category' category.id %}">{{ category }}</a> {% endfor %}</small>
|
2016-10-24 18:43:54 +02:00
|
|
|
</p><a href="{% url 'detail' blogentry.id %}">Read more...</a><br/>
|
2016-09-12 01:28:03 +02:00
|
|
|
{% endif %}
|
2016-08-10 00:38:10 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2016-08-16 15:13:42 +02:00
|
|
|
<p>No entries are available.</p>
|
2016-08-10 00:38:10 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endblock %}
|
|
|
|
|