From ba4a0151ec11d47142444d459bf6e12ea1a5401a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 10 Jan 2016 14:46:04 +0100 Subject: [PATCH] Conversation list overhaul --- files/style/conversation.scss | 3 +- templates/conversationList.tpl | 85 ++++++++++++++++++---------------- 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/files/style/conversation.scss b/files/style/conversation.scss index 2e9036f..d4a21a1 100644 --- a/files/style/conversation.scss +++ b/files/style/conversation.scss @@ -78,6 +78,7 @@ float: right; } +/*@todo @media only screen and (max-width: 800px) { .conversationList { thead { @@ -104,4 +105,4 @@ display: none; } } -} \ No newline at end of file +}*/ \ No newline at end of file diff --git a/templates/conversationList.tpl b/templates/conversationList.tpl index 225cd4d..3da8c7a 100644 --- a/templates/conversationList.tpl +++ b/templates/conversationList.tpl @@ -133,7 +133,7 @@ @@ -142,44 +142,39 @@ {if !$items}

{lang}wcf.conversation.noConversations{/lang}

{else} -
-
-

{lang}wcf.conversation.conversations{/lang} {#$items}

-
- - - - - - - - - + - + + - - {foreach from=$objects item=conversation} - - - - - - - + {event name='columns'} - - {/foreach} - -
{lang}wcf.global.subject{/lang}{lang}wcf.conversation.replies{/lang}{lang}wcf.conversation.participants{/lang}{lang}wcf.conversation.lastPostTime{/lang}
+ {foreach from=$objects item=conversation} +
  • +
      +
    1. -
  • + +
  • {if $conversation->getUserProfile()->getAvatar()}
    -

    isNew()} title="{lang}wcf.conversation.markAsRead.doubleClick{/lang}"{/if}>{@$conversation->getUserProfile()->getAvatar()->getImageTag(32)}

    +

    isNew()} title="{lang}wcf.conversation.markAsRead.doubleClick{/lang}"{/if}>{@$conversation->getUserProfile()->getAvatar()->getImageTag(48)}

    {if $conversation->ownPosts && $conversation->userID != $__wcf->user->userID} {if $__wcf->getUserProfileHandler()->getAvatar()} - {@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(16)} + {@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(24)} {/if} {/if}
    {/if} -
  • + +
  • {hascontent}
      {content} @@ -202,11 +197,9 @@
    -
  • {#$conversation->replies}{#$conversation->participants} + +
  • +
    +
    {lang}wcf.conversation.replies{/lang}
    +
    {@$conversation->replies|shortUnit}
    +
    +
    +
    {lang}wcf.conversation.participants{/lang}
    +
    {@$conversation->participants|shortUnit}
    +
    + +
    {@$conversation->replies|shortUnit}
    +
  • +
  • {if $conversation->replies != 0} -
  • + + + {/foreach} +
    {/if} @@ -251,7 +254,7 @@ -- 2.20.1