# HG changeset patch # User Alexandre Segura # Date 1487757856 -3600 # Node ID 86dbf2cdeeeb209b7aded50a6dffa52c7a5086cd # Parent a0caf91c8374335d21c8782482596c075cc2e8c5 Introduce ZoomThumbnail, improve zoom behavior. diff -r a0caf91c8374 -r 86dbf2cdeeeb src/iconolab/templates/iconolab/detail_image.html --- a/src/iconolab/templates/iconolab/detail_image.html Tue Feb 21 16:04:20 2017 +0100 +++ b/src/iconolab/templates/iconolab/detail_image.html Wed Feb 22 11:04:16 2017 +0100 @@ -16,7 +16,7 @@ data-annotation-id="{{ annotation.annotation_guid }}" data-revision-id="{{ annotation.current_revision.revision_guid }}"> -

{{ annotation.current_revision.title }}

+
{{ annotation.current_revision.title }}

{{ annotation.current_revision.description }}

{% for tagging_info in annotation.current_revision.tagginginfo_set.all %} {{ tagging_info.tag.label }} @@ -30,11 +30,12 @@
- {% with image.media as img %} + - {% endwith %} + image="{% with image.media as img %}{{ img.url }}{% endwith %}" + thumbnail="{% thumbnail image.media '120x120' crop=False as thumb %}{{ thumb.url }}{% endthumbnail %}"> +
{% csrf_token %} @@ -75,7 +76,9 @@ var vm = new Vue({ el: '.annotation-navigator', data: function() { - return { annotation: null }; + return { + annotation: null + }; } }); diff -r a0caf91c8374 -r 86dbf2cdeeeb src_js/iconolab-bundle/src/components/editor/Canvas.vue --- a/src_js/iconolab-bundle/src/components/editor/Canvas.vue Tue Feb 21 16:04:20 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/editor/Canvas.vue Wed Feb 22 11:04:16 2017 +0100 @@ -17,6 +17,18 @@
+
+ +