]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/party.html
switch thumbnail system from homegrown to sorl-thumbnail
[panikweb.git] / panikweb_templates / templates / party.html
index dd6097ffd28f5253535eb8d9da3c47a1cd9c8a61..1e6083b9defec7574d5e270fee38cfe7b50056c3 100644 (file)
@@ -1,8 +1,5 @@
 {% extends "base.html" %}
-{% load thumbnails %}
-{% load paniktags %}
-{% load staticfiles %}
-{% load i18n %}
+{% load thumbnail paniktags %}
 {% block bodyID %}Party{% endblock %}
 {% block title %}Party{% endblock %}
 
@@ -43,7 +40,9 @@ $(function() {
         </div>
       {% endif %}
       <div class="logo">
-        <img class="normal" src="{{ focus.content_image|thumbnail:'500x375' }}"/>
+        {% thumbnail focus.content_image "500x375" crop="50% 25%" as im %}
+        <img width="500" height="375" class="normal" src="{{im.url}}"/>
+        {% endthumbnail %}
       </div>
       <div class="title"><div>{{ focus.focus_title }}</div></div>
     </a>