Overhauled/unified mobile styling of message groups
authorMarcel Werk <burntime@woltlab.com>
Mon, 22 Aug 2016 14:01:36 +0000 (16:01 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 22 Aug 2016 14:01:36 +0000 (16:01 +0200)
templates/conversationList.tpl

index 0d1f7b36ddd8baf8ca8c1632064333fec3d65425..2549908af9bedc6a68e220c49b3a4c580c199797 100644 (file)
                        
                        {foreach from=$objects item=conversation}
                                <li class="tabularListRow">
-                                       <ol class="tabularListColumns conversation jsClipboardObject{if $conversation->isNew()} new{/if}" data-conversation-id="{@$conversation->conversationID}" data-label-ids="[ {implode from=$conversation->getAssignedLabels() item=label}{@$label->labelID}{/implode} ]" data-is-closed="{@$conversation->isClosed}" data-can-close-conversation="{if $conversation->userID == $__wcf->getUser()->userID}1{else}0{/if}" data-can-add-participants="{if $conversation->canAddParticipants()}1{else}0{/if}">
+                                       <ol class="tabularListColumns messageGroup conversation jsClipboardObject{if $conversation->isNew()} new{/if}" data-conversation-id="{@$conversation->conversationID}" data-label-ids="[ {implode from=$conversation->getAssignedLabels() item=label}{@$label->labelID}{/implode} ]" data-is-closed="{@$conversation->isClosed}" data-can-close-conversation="{if $conversation->userID == $__wcf->getUser()->userID}1{else}0{/if}" data-can-add-participants="{if $conversation->canAddParticipants()}1{else}0{/if}">
                                                <li class="columnMark jsOnly">
                                                        <label><input type="checkbox" class="jsClipboardItem" data-object-id="{@$conversation->conversationID}"></label>
                                                </li>
                                                                
                                                        <h3>
                                                                <a href="{if $conversation->isNew()}{link controller='Conversation' object=$conversation}action=firstNew{/link}{else}{link controller='Conversation' object=$conversation}{/link}{/if}" class="conversationLink messageGroupLink" data-conversation-id="{@$conversation->conversationID}">{$conversation->subject}</a>
+                                                               {if $conversation->replies}
+                                                                       <span class="badge messageGroupCounterMobile">{@$conversation->replies|shortUnit}</span>
+                                                               {/if}
                                                        </h3>
                                                        
                                                        <aside class="statusDisplay">
                                                                {event name='messageGroupInfo'}
                                                        </ul>
                                                        
+                                                       <ul class="messageGroupInfoMobile">
+                                                               <li class="messageGroupAuthorMobile">{$conversation->username}</li>
+                                                               <li class="messageGroupLastPostTimeMobile">{@$conversation->lastPostTime|time}</li>
+                                                       </ul>
+                                                       
                                                        {if $conversation->getParticipantSummary()|count}
                                                                <small class="conversationParticipantSummary">
                                                                        {assign var='participantSummaryCount' value=$conversation->getParticipantSummary()|count}