aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp
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
parent14095b6859dc69392e1d7b2a37b449e1f09e5b13 (diff)
www: images in comments
Diffstat (limited to 'juick-www/src/main/webapp')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/macros/tree.html8
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/partial/thread_list.html8
2 files changed, 14 insertions, 2 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>
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>