From: Hypolite Petovan Date: Sat, 16 Feb 2019 23:40:05 +0000 (-0500) Subject: [frio] Hide fake comment form when comment form isn't present X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3cabddcdec98731bfef0b9921d046c01321b5943;p=friendica.git [frio] Hide fake comment form when comment form isn't present --- diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 0fcb84bad0..591e102c77 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -408,24 +408,22 @@ as the value of $top_child_total (this is done at the end of this file) {{* Insert the comment box of the top level post at the bottom of the thread. Display this comment box if there are any comments. If not hide it. In this case it could be opend with the "comment" button *}} - {{if $item.total_comments_num}} + {{if $item.comment && $item.thread_level==1}} + {{if $item.total_comments_num}}
- {{/if}} - {{if $item.comment && $item.thread_level==1}} + {{/if}} {{/if}} - {{if $mode == display}} {{else}} {{if $item.comment_lastcollapsed}}{{/if}} {{/if}} - {{* close the comment-container div if no more thread_level = 2 children are left *}} {{if $item.thread_level==2 && $top_child_nr==$top_child_total}}