Skip to content

Commit

Permalink
Ticket #3629 - Artificer (Part 2): Forum attachments.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Feb 23, 2022
1 parent 37f2566 commit 22def30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 2 additions & 2 deletions modules/boonex/forum/template/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 --*/
Expand Down

0 comments on commit 22def30

Please sign in to comment.