# HG changeset patch # User cavaliet # Date 1361287793 -3600 # Node ID 4c0838a3a8b6ea9eea49037b7a60b7e56d83113c # Parent 962c6986211558ab8c39e06f34bfad917ed7fa8d add limit 600px height limit in template. Create templatetag to get image ratio. diff -r 962c69862115 -r 4c0838a3a8b6 src/egonomy/templates/egonomy_annotate_picture.html --- a/src/egonomy/templates/egonomy_annotate_picture.html Tue Feb 19 15:46:37 2013 +0100 +++ b/src/egonomy/templates/egonomy_annotate_picture.html Tue Feb 19 16:29:53 2013 +0100 @@ -2,6 +2,7 @@ {% load static %} {% load i18n %} {% load thumbnail %} +{% load egonomy_thumbnail %} {% block title %}{% trans "Annotate a picture" %}{% endblock %} @@ -9,13 +10,21 @@
- {% endthumbnail %}
+ {% endthumbnail %}
+ {% else %}
+ {% thumbnail image "x600" format="PNG" crop="center" as im %}
+
+ {% endthumbnail %}
+ {% endif %}
{% endwith %}
- {% endthumbnail %}
- {% endwith %}
-
+
+ {% endthumbnail %}
+ {% else %}
+ {% thumbnail image "x600" format="PNG" crop="center" as im %}
+
+ {% endthumbnail %}
+ {% endif %}
+ {% endwith %}
+
+
- {% endthumbnail %}
- {% endwith %}
-
-
+ {% endthumbnail %}
+ {% else %}
+ {% thumbnail image "x600" format="PNG" crop="center" as im %}
+
+ {% endthumbnail %}
+ {% endif %}
+ {% endwith %}
+
+