diff options
Diffstat (limited to 'sublab_project/projects/templates/projects/project_detail.html')
-rw-r--r-- | sublab_project/projects/templates/projects/project_detail.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sublab_project/projects/templates/projects/project_detail.html b/sublab_project/projects/templates/projects/project_detail.html index 600b79c..5c0a6dd 100644 --- a/sublab_project/projects/templates/projects/project_detail.html +++ b/sublab_project/projects/templates/projects/project_detail.html @@ -1,9 +1,19 @@ {% extends 'base.html' %} +{% load thumbnail %} {% block title %}Projekt: {{ object.name }}{% endblock %} {% block content %} <h2 id="{{ object.slug }}">Projekt: {{ object.name }}</h2> + {% if object.image %} + <div class="imagecontent"> + <a href="{% url project_image object.slug %}"> + {% thumbnail object.image "200" upscale=False as image %} + <img src="{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}" align="right" /> + {% endthumbnail %} + </a> + </div> + {% endif %} {{ object.description_html|safe }} {% if object.contact_email %} <p>E-Mail: {{ object.contact_email }}</p> |