blob: 116de0adb9e856424df1371643637afb9c7860f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{% extends 'base.html' %}
{% load thumbnail %}
{% block title %}Neues{% endblock %}
{%block content %}
<h2>Neues</h2>
{% for post in news_list %}
<h3 id="{{ post.slug }}">
<a href="{{ post.get_absolute_url }}">{{ post.date_updated|date }} - {{ post.title }}</a>
</h3>
{% if post.image.exists %}
<div class="imagecontent">
<a href="{{ post.get_absolute_url }}">
{% thumbnail post.image "200" upscale=False as image %}
<img src="{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}" align="right" />
{% endthumbnail %}
</a>
</div>
{% endif %}
{{ post.content_html|safe }}
{% endfor %}
{% if is_paginated %}
<p>
{% for page in paginator.page_range %}
<a href="?page={{ page }}">{{ page }}</a>
{% endfor %}
</p>
{% endif %}
{% endblock content %}
|