Explorar el Código

Ticket #3629 - Artificer (Part 2): Forum attachments.

AntonLV hace 4 años
padre
commit
22def3030d

+ 10 - 0
modules/boonex/artificer/data/template/bx_forum/comment_attachments.html

@@ -0,0 +1,10 @@
+<bx_repeat:attached>
+    <div class="__style_prefix__-attached-preview bx-forum-attached-preview p-1">
+        <bx_if:show_image>
+            <a href="javascript:void(0)" onclick="__js_object__.showImage(this, '__file__'); return false;" title="<bx_text_attribute:_cmt_view_attached_image />"><img src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" /> __file_name__ <span class="bx-def-font-grayed">__file_size__</span></a>
+        </bx_if:show_image>
+        <bx_if:show_file>
+            <a href="__file__" title="<bx_text_attribute:_cmt_download_attached_file />"><i class="sys-icon __file_icon__"></i> __file_name__ <span class="bx-def-font-grayed">__file_size__</span></a>
+        </bx_if:show_file>
+    </div>
+</bx_repeat:attached>

+ 2 - 2
modules/boonex/forum/template/css/main.css

@@ -67,8 +67,8 @@
     height: 2rem;
 }
 .cmt-attached-preview.bx-forum-attached-preview .sys-icon {
-	text-align: center;
-	font-size: 1.5rem;
+    text-align: center;
+    font-size: 1.25rem;
 }
 
 /*-- Preview --*/