From a4eb6f971f7cfc0594e91b22633481a0b35ee8df Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 19 Nov 2022 17:16:51 -0500 Subject: [PATCH] [frio] Improve search list display for web and mobile - Reduced margins - Repositioned the network icon and external link --- view/theme/frio/templates/conversation.tpl | 30 ++ view/theme/frio/templates/search_item.tpl | 515 ++++++++++----------- 2 files changed, 286 insertions(+), 259 deletions(-) create mode 100644 view/theme/frio/templates/conversation.tpl diff --git a/view/theme/frio/templates/conversation.tpl b/view/theme/frio/templates/conversation.tpl new file mode 100644 index 0000000000..492c005b8f --- /dev/null +++ b/view/theme/frio/templates/conversation.tpl @@ -0,0 +1,30 @@ +{{$live_update nofilter}} +{{foreach $threads as $thread}} +
+ {{foreach $thread.items as $item}} + {{if $item.comment_firstcollapsed}} +
+ {{$thread.num_comments}} + {{$thread.hide_text}} +
+ {{/if}} + + {{include file="{{$item.template}}"}} + + {{/foreach}} +
+{{/foreach}} + +{{if !$update}} +
+ {{if $dropping}} + +
+ {{/if}} +{{/if}} diff --git a/view/theme/frio/templates/search_item.tpl b/view/theme/frio/templates/search_item.tpl index 7d381282ca..62a357fa6b 100644 --- a/view/theme/frio/templates/search_item.tpl +++ b/view/theme/frio/templates/search_item.tpl @@ -1,302 +1,299 @@ - - - - - -
- - - - -
-
- {{* Put additional actions in a top-right dropdown menu *}} +
+
+ {{* Put additional actions in a top-right dropdown menu *}} + + {{* The avatar picture and the photo-menu *}} + + + {{* contact info header*}} + + {{if $item.lock}} + +   + + {{elseif $item.connector}} + + {{/if}} +
+
+ + + + + {{if $item.pinned}} + • + {{$item.pinned}} + {{/if}} + +
- {{* The avatar picture and the photo-menu *}} - + {{* @todo $item.created have to be inserted *}} + +
- - {{* contact info header*}} - +
+ {{$item.name}} +

+ {{$item.ago}} {{if $item.location_html}} — ({{$item.location_html nofilter}}){{/if}} +

+
+
+ +
+ +
+ + {{* item content *}} +
+ {{if $item.title}} +

{{$item.title}}


+ {{/if}} - {{* contact info header for smartphones *}} - + + +
+ +
+ {{if !$item.suppress_tags}} + {{foreach $item.hashtags as $tag}} + {{$tag nofilter}} + {{/foreach}} + + {{foreach $item.mentions as $tag}} + {{$tag nofilter}} + {{/foreach}} + {{/if}} + + {{foreach $item.folders as $cat}} + {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{/foreach}} + + {{foreach $item.categories as $cat}} + {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{/foreach}}
+ {{if $item.edited}}
{{$item.edited['label']}} ({{$item.edited['relative']}})
{{/if}} +
+ + +

+ {{* Action buttons to interact with the item (like: like, dislike, share and so on *}} + + -

+ {{if $item.threaded}}{{/if}} -
+ {{* Buttons for like and dislike *}} + {{if $item.vote}} + {{if $item.vote.like}} + + {{/if}} + {{if $item.vote.like AND $item.vote.dislike}} + • + {{/if}} - {{* item content *}} -
- {{if $item.title}} -

{{$item.title}}


+ {{if $item.vote.dislike}} + + {{/if}} + {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}} + • + {{/if}} {{/if}} -
{{$item.body_html nofilter}}
-
- - -
- -
- {{if !$item.suppress_tags}} - {{foreach $item.hashtags as $tag}} - {{$tag nofilter}} - {{/foreach}} - - {{foreach $item.mentions as $tag}} - {{$tag nofilter}} - {{/foreach}} - {{/if}} - - {{foreach $item.folders as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} - {{/foreach}} - - {{foreach $item.categories as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} - {{/foreach}} -
- {{if $item.edited}}
{{$item.edited['label']}} ({{$item.edited['relative']}})
{{/if}} -
- - -

- {{* Action buttons to interact with the item (like: like, dislike, share and so on *}} - - - - {{if $item.threaded}}{{/if}} + {{* Button to open the comment text field *}} + {{if $item.comment_html}} + + {{/if}} - {{* Buttons for like and dislike *}} - {{if $item.vote}} - {{if $item.vote.like}} - - {{/if}} - {{if $item.vote.like AND $item.vote.dislike}} - • + {{* Button for sharing the item *}} + {{if $item.vote}} + {{if $item.vote.share}} + {{if $item.vote.like OR $item.vote.dislike OR $item.comment_html}} + • {{/if}} + + {{/if}} + {{/if}} - {{if $item.vote.dislike}} - - {{/if}} - {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}} - • - {{/if}} + {{* Put additional actions in a dropdown menu *}} + {{if $item.menu && ($item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.follow_thread || $item.ignore || $item.drop.dropping || $item.browsershare)}} + + + +

- {{/if}} + {{else}} + + {{/if}} + - - {{* Event attendance buttons *}} - {{if $item.isevent}} - - - - - - {{/if}} - - - {{if $item.drop && $item.drop.pagedrop}} - - - {{/if}} - + + {{* Event attendance buttons *}} + {{if $item.isevent}} + + + + -

- - {{* Display likes, dislike and attendance stats *}} - {{if $item.responses}} -
- {{foreach $item.responses as $verb=>$response}} -
{{$response.output nofilter}}
- {{/foreach}} -
{{/if}} -
- {{if $item.conv}} - {{$item.conv.title}} + + {{if $item.drop && $item.drop.pagedrop}} + + {{/if}} -
-
-
-
+ + +

+ + {{* Display likes, dislike and attendance stats *}} + {{if $item.responses}} +
+ {{foreach $item.responses as $verb=>$response}} +
{{$response.output nofilter}}
+ {{/foreach}} +
+ {{/if}} + +
+ {{if $item.conv}} + {{$item.conv.title}} + {{/if}} +
+
+
-- 2.39.5