From 4aaea422bc78b351f055df66b1491e476bf65e12 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 13 Apr 2018 10:12:57 +0200 Subject: move the thread author menu to to the wall item photo. the menu list was getting too long. --- include/conversation.php | 2 +- view/tpl/conv_item.tpl | 19 +++++++++++-------- view/tpl/conv_list.tpl | 15 +++++++++------ 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 82317ae95..4aa097d07 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1039,7 +1039,7 @@ function thread_author_menu($item, $mode = '') { if($posts_link) { $menu[] = [ 'menu' => 'view_posts', - 'title' => t('Activity/Posts'), + 'title' => t('Recent Activity'), 'icon' => 'fw', 'action' => '', 'href' => $posts_link diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index e9f507f1e..7b3d545ac 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -28,8 +28,16 @@ {{/if}}
-
+
{{$item.name}} + {{if $item.thread_author_menu}} + + {{/if}}
{{if $item.lock}} @@ -40,7 +48,7 @@ {{/if}}
{{if $item.previewing}} {{/if}} - {{$item.name}}{{if $item.owner_url}} {{$item.via}} {{$item.owner_name}}{{/if}} + {{$item.name}}{{if $item.owner_url}} {{$item.via}} {{$item.owner_name}}{{/if}}
{{if $item.verified}} {{elseif $item.forged}} {{/if}}{{if $item.location}}{{$item.location}}, {{/if}}{{if $item.editedtime}} {{$item.editedtime}}{{/if}}{{if $item.expiretime}} {{$item.expiretime}}{{/if}}{{if $item.editedtime}} {{/if}} {{if $item.app}}{{$item.str_app}}{{/if}} @@ -189,13 +197,8 @@ {{if $item.drop.dropping}} {{$item.drop.delete}} {{/if}} - {{if $item.thread_author_menu}} - - {{foreach $item.thread_author_menu as $mitem}} - {{$mitem.title}} - {{/foreach}} - {{/if}} {{if $item.edpost && $item.dreport}} + {{$item.dreport}} {{/if}}
diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 97fd50d01..5bfc10bf8 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -28,8 +28,16 @@ {{/if}}
-
+
{{$item.name}} + {{if $item.thread_author_menu}} + + {{/if}}
{{if $item.lock}} @@ -181,12 +189,7 @@ {{if $item.drop.dropping}} {{$item.drop.delete}} {{/if}} - {{if $item.thread_author_menu}} - {{foreach $item.thread_author_menu as $mitem}} - {{$mitem.title}} - {{/foreach}} - {{/if}} {{if $item.edpost && $item.dreport}} {{$item.dreport}} {{/if}} -- cgit v1.2.3