From 77e9143d3abe9734867844a294785717514e434d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 7 Jan 2021 10:25:34 -0500 Subject: [PATCH] [non-Frio] Add edited date to post display --- view/templates/wall_thread.tpl | 36 ++++++++++--------- view/theme/quattro/templates/wall_thread.tpl | 3 ++ view/theme/smoothly/templates/wall_thread.tpl | 7 ++-- view/theme/vier/templates/wall_thread.tpl | 3 ++ 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/view/templates/wall_thread.tpl b/view/templates/wall_thread.tpl index 1d1a766c92..893bd7291a 100644 --- a/view/templates/wall_thread.tpl +++ b/view/templates/wall_thread.tpl @@ -58,23 +58,27 @@
{{$item.title}}
-
{{$item.body_html nofilter}} -
- {{if !$item.suppress_tags}} - {{foreach $item.tags as $tag}} - {{$tag nofilter}} - {{/foreach}} - {{/if}} -
- {{if $item.has_cats}} -
{{$item.txt_cats}} {{foreach $item.categories as $cat}}{{$cat.name}}{{if $cat.removeurl}} [{{$remove}}]{{/if}} {{if $cat.last}}{{else}}, {{/if}}{{/foreach}} -
- {{/if}} +
+ {{$item.body_html nofilter}} +
+ {{if !$item.suppress_tags}} + {{foreach $item.tags as $tag}} + {{$tag nofilter}} + {{/foreach}} + {{/if}} +
+ {{if $item.has_cats}} +
{{$item.txt_cats}} {{foreach $item.categories as $cat}}{{$cat.name}}{{if $cat.removeurl}} [{{$remove}}]{{/if}} {{if $cat.last}}{{else}}, {{/if}}{{/foreach}} +
+ {{/if}} - {{if $item.has_folders}} -
{{$item.txt_folders}} {{foreach $item.folders as $cat}}{{$cat.name}}{{if $cat.removeurl}} [{{$remove}}]{{/if}}{{if $cat.last}}{{else}}, {{/if}}{{/foreach}} -
- {{/if}} + {{if $item.has_folders}} +
{{$item.txt_folders}} {{foreach $item.folders as $cat}}{{$cat.name}}{{if $cat.removeurl}} [{{$remove}}]{{/if}}{{if $cat.last}}{{else}}, {{/if}}{{/foreach}} +
+ {{/if}} + {{if $item.edited}} +
{{$item.edited['label']}} ({{$item.edited['relative']}})
+ {{/if}}
diff --git a/view/theme/quattro/templates/wall_thread.tpl b/view/theme/quattro/templates/wall_thread.tpl index c53bd46c85..f7d4b0f8c8 100644 --- a/view/theme/quattro/templates/wall_thread.tpl +++ b/view/theme/quattro/templates/wall_thread.tpl @@ -76,6 +76,9 @@ {{/foreach}} {{/if}}
+ {{if $item.edited}} +
{{$item.edited['label']}} ({{$item.edited['relative']}})
+ {{/if}}
{{$item.title}}
-
{{$item.body_html nofilter}} +
+ {{$item.body_html nofilter}}
{{if !$item.suppress_tags}} {{foreach $item.tags as $tag}} @@ -84,7 +85,9 @@ {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
{{/if}} - + {{if $item.edited}} +
{{$item.edited['label']}} ({{$item.edited['relative']}})
+ {{/if}}
+ {{if $item.edited}} +
{{$item.edited['label']}} ({{$item.edited['relative']}})
+ {{/if}}