aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views/macros
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/views/macros')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/macros/tree.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/macros/tree.html b/juick-www/src/main/webapp/WEB-INF/views/macros/tree.html
index 3e35f92a..688807d7 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/macros/tree.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/macros/tree.html
@@ -28,7 +28,13 @@
</div>
</div>
<div class="msg-txt">{{ msg | formatMessage }}</div>
- <div class="msg-media"></div>
+ {% if msg.AttachmentType is not empty %}
+ <div class="msg-media">
+ <a href="//i.juick.com/p/{{ msg.mid }}-{{ msg.rid }}.{{ msg.AttachmentType }}" data-fname="{{ msg.mid }}-{{ msg.rid }}.{{ msg.AttachmentType }}">
+ <img src="//i.juick.com/photos-512/{{ msg.mid }}-{{ msg.rid }}.{{ msg.AttachmentType }}" alt=""/>
+ </a>
+ </div>
+ {% endif %}
<div class="msg-links">/{{ msg.rid }}
{% if msg.replyto > 0 %}
в ответ на <a href="#{{ msg.replyto }}">/{{ msg.replyto }}</a>