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