##// END OF EJS Templates
Don't show random image for tag that does not have images
neko259 -
r1266:0c448cb2 default
parent child Browse files
Show More
@@ -38,6 +38,7 b''
38
38
39 {% if tag %}
39 {% if tag %}
40 <div class="tag_info">
40 <div class="tag_info">
41 {% if random_image_post %}
41 <div class="tag-image">
42 <div class="tag-image">
42 {% with image=random_image_post.images.first %}
43 {% with image=random_image_post.images.first %}
43 <a href="{{ random_image_post.get_absolute_url }}"><img
44 <a href="{{ random_image_post.get_absolute_url }}"><img
@@ -46,6 +47,7 b''
46 height="{{ image.pre_height }}"/></a>
47 height="{{ image.pre_height }}"/></a>
47 {% endwith %}
48 {% endwith %}
48 </div>
49 </div>
50 {% endif %}
49 <div class="tag-text-data">
51 <div class="tag-text-data">
50 <h2>
52 <h2>
51 <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form">
53 <form action="{% url 'tag' tag.name %}" method="post" class="post-button-form">
General Comments 0
You need to be logged in to leave comments. Login now