summaryrefslogtreecommitdiff
path: root/sublab_project/news/templates/news/news_image.html
blob: cac6bdc4e3c36304d53b821fd7c13c042354c874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 }}" 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 Artikel</a></p>
{% endblock content %}