mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
Fix #1282 display attachment list in message
This commit is contained in:
parent
c35d739443
commit
22cb4c552a
8 changed files with 73 additions and 24 deletions
|
|
@ -211,6 +211,8 @@
|
|||
.xc .table-striped tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}
|
||||
.xc .table-hover tbody tr:hover>td,
|
||||
.xc .table-hover tbody tr:hover>th{background-color:#f5f5f5}
|
||||
.xc .table ul.attachments { margin: 0; padding-left: 20px; }
|
||||
.xc .table ul.attachments span.file_size { color: #666; }
|
||||
.xc .explanation { display: inline-block; margin-left: 8px; color: #999; }
|
||||
/* Pangination */
|
||||
.xc .pagination{margin:20px 0}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</form>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
<table class="table table-striped table-hover" style="table-layout: fixed" cond="$message">
|
||||
<table class="table table-striped" style="table-layout: fixed" cond="$message">
|
||||
<tr>
|
||||
<th>{$message->title}</th>
|
||||
</tr>
|
||||
|
|
@ -32,6 +32,17 @@
|
|||
{$message->content|noescape}
|
||||
</td>
|
||||
</tr>
|
||||
<!--@if(count($message_files))-->
|
||||
<tr>
|
||||
<td>
|
||||
<ul class="attachments">
|
||||
<!--@foreach($message_files as $file)-->
|
||||
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename}</a> <span class="file_size">({FileHandler::filesize($file->file_size)})</li>
|
||||
<!--@endforeach-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@endif-->
|
||||
</table>
|
||||
<div class="btnArea btn-group" cond="$message" style="margin-bottom:20px">
|
||||
<button class="btn" cond="$message->message_type != 'S' && $message->member_srl != $logged_info->member_srl" type="button" onclick="doSendMessage('{$message->sender_srl}','{$message->message_srl}');">{$lang->cmd_reply_message}</button>
|
||||
|
|
|
|||
|
|
@ -8,8 +8,15 @@
|
|||
</div>
|
||||
<div class="xe_content">
|
||||
{$message->content}
|
||||
<!--@if(count($message_files))-->
|
||||
<ul class="attachments">
|
||||
<!--@foreach($message_files as $file)-->
|
||||
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename}</a> <span class="file_size">({FileHandler::filesize($file->file_size)})</li>
|
||||
<!--@endforeach-->
|
||||
</ul>
|
||||
<!--@endif-->
|
||||
</div>
|
||||
<div class="sw-footer sw-anchor-buttons">
|
||||
<div class="sw-footer sw-anchor-buttons">
|
||||
<a cond="$message->message_type != 'S' && $message->member_srl != $logged_info->member_srl" href="#" onclick="doSendMessage('{$message->sender_srl}','{$message->message_srl}');">{$lang->cmd_reply_message}</a>
|
||||
<a cond="$message->message_type == 'R'" href="#" onclick="doStoreMessage('{$message->message_srl}');">{$lang->cmd_store}</a>
|
||||
<a href="#" onclick="doDeleteMessage('{$message->message_srl}');">{$lang->cmd_delete}</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue