aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views/partial
diff options
context:
space:
mode:
authorGravatar KillyMXI2017-08-19 15:44:43 +0300
committerGravatar KillyMXI2017-08-19 15:44:43 +0300
commitf8dade37160451884c97b851517fa1b61b716256 (patch)
tree93a73678a20b0b29be363dedf7432446ace0c489 /juick-www/src/main/webapp/WEB-INF/views/partial
parent14095b6859dc69392e1d7b2a37b449e1f09e5b13 (diff)
www: images in comments
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/views/partial')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/partial/thread_list.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/thread_list.html b/juick-www/src/main/webapp/WEB-INF/views/partial/thread_list.html
index b59d8b22..3a87d363 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/partial/thread_list.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/partial/thread_list.html
@@ -26,7 +26,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>