summaryrefslogtreecommitdiff
path: root/sublab_project/news/templates/news/news_image.html
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project/news/templates/news/news_image.html')
-rw-r--r--sublab_project/news/templates/news/news_image.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/sublab_project/news/templates/news/news_image.html b/sublab_project/news/templates/news/news_image.html
new file mode 100644
index 0000000..3c490c6
--- /dev/null
+++ b/sublab_project/news/templates/news/news_image.html
@@ -0,0 +1,14 @@
+{% extends 'base.html' %}
+{% load thumbnail %}
+
+{% block title %}Bild: {{ object.title }}{% endblock %}
+
+{% block content %}
+ <h2>Bild: {{ object.title }}</h2>
+ <div>
+ {% thumbnail object.image "820" upscale=False as image %}
+ <img src="{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}" align="left" />
+ {% endthumbnail %}
+ </div>
+ <p><a href="{{ object.get_absolute_url }}">Zurück zum Artikel</a></p>
+{% endblock content %}