##// END OF EJS Templates
Fixed tag gallery
neko259 -
r1597:6ad816e4 default
parent child Browse files
Show More
@@ -35,11 +35,11 b''
35 <div class="tag_info" style="border-bottom: solid .5ex #{{ tag.get_color }}">
35 <div class="tag_info" style="border-bottom: solid .5ex #{{ tag.get_color }}">
36 {% if random_image_post %}
36 {% if random_image_post %}
37 <div class="tag-image">
37 <div class="tag-image">
38 {% with image=random_image_post.images.first %}
38 {% with image=random_image_post.get_first_image %}
39 <a href="{{ random_image_post.get_absolute_url }}"><img
39 <a href="{{ random_image_post.get_absolute_url }}"><img
40 src="{{ image.image.url_200x150 }}"
40 src="{{ image.get_thumb_url }}"
41 width="{{ image.pre_width }}"
41 width="{{ image.get_preview_size.0 }}"
42 height="{{ image.pre_height }}"
42 height="{{ image.get_preview_size.1 }}"
43 alt="{{ random_image_post.id }}"/></a>
43 alt="{{ random_image_post.id }}"/></a>
44 {% endwith %}
44 {% endwith %}
45 </div>
45 </div>
@@ -91,7 +91,7 b''
91 {{ image.get_view }}
91 {{ image.get_view }}
92 {% endautoescape %}
92 {% endautoescape %}
93 <div class="gallery_image_metadata">
93 <div class="gallery_image_metadata">
94 {{ image.width }}x{{ image.height }}
94 {{ image.get_size.0 }}x{{ image.get_size.1 }}
95 </div>
95 </div>
96 </div>
96 </div>
97 {% endfor %}
97 {% endfor %}
General Comments 0
You need to be logged in to leave comments. Login now