summaryrefslogtreecommitdiff
path: root/sublab_project/templates
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2012-01-16 18:28:52 +0100
committerChristian Franke <nobody@nowhere.ws>2012-01-16 18:30:28 +0100
commit9f9d7489b5b6b34f4be3ef57ae644b96aa3d7e4b (patch)
tree630a7cf141b08979cf688fee6baae309ededf88c /sublab_project/templates
parent94e8ad7c38f3a2efd78e81a2ad74995944a82a8e (diff)
Add tasks which fetch webcam images
Diffstat (limited to 'sublab_project/templates')
-rw-r--r--sublab_project/templates/base.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/sublab_project/templates/base.html b/sublab_project/templates/base.html
index 8dc99b0..1f9346a 100644
--- a/sublab_project/templates/base.html
+++ b/sublab_project/templates/base.html
@@ -1,5 +1,6 @@
{% load host_status %}
{% load flatblock_tags %}
+{% load thumbnail %}
<!DOCTYPE HTML>
<html>
<head>
@@ -106,9 +107,13 @@
{% flatblock "motd" %}
</p>
<hr>
- <a href="/webcam/" class="img"><img src="{{ STATIC_URL }}img/thumb.rack.webcam.jpg" alt="Webcam im Fenster" class="webcamthumb"></a>
+ {% thumbnail "karlheine_cam.jpg" "200" upscale=False as image %}
+ <a href="/webcam/" class="img"><img src="{{ image.url }}" alt="Webcam im Fenster" class="webcamthumb"></a>
+ {% endthumbnail %}
<hr>
- <a href="{{ STATIC_URL }}img/tempgraph.png" class="img"><img src="img/thumb.tempgraph.png" alt="Temperaturen im sublab" class="webcamthumb"></a>
+ {% thumbnail "tempgraph.png" "200" upscale=False as image %}
+ <a href="{{ MEDIA_URL }}tempgraph.png" class="img"><img src="{{ image.url }}" alt="Temperaturen im sublab" class="webcamthumb"></a>
+ {% endthumbnail %}
<hr>
<p class="member">
<a href="{{ STATIC_URL }}pdf/sublab_ev_mitgliedsantrag.pdf">Mitglied werden</a>