diff options
author | KillyMXI | 2017-08-19 15:44:43 +0300 |
---|---|---|
committer | KillyMXI | 2017-08-19 15:44:43 +0300 |
commit | f8dade37160451884c97b851517fa1b61b716256 (patch) | |
tree | 93a73678a20b0b29be363dedf7432446ace0c489 /juick-www/src/main/webapp/WEB-INF/views/macros/tree.html | |
parent | 14095b6859dc69392e1d7b2a37b449e1f09e5b13 (diff) |
www: images in comments
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/views/macros/tree.html')
-rw-r--r-- | juick-www/src/main/webapp/WEB-INF/views/macros/tree.html | 8 |
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> |