]> git.mxchange.org Git - friendica.git/commitdiff
[frio] Hide fake comment form when comment form isn't present
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 16 Feb 2019 23:40:05 +0000 (18:40 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 16 Feb 2019 23:40:05 +0000 (18:40 -0500)
view/theme/frio/templates/wall_thread.tpl

index 0fcb84bad0e3923875a7ab8d60c77d5b8c31aff2..591e102c770f6423314300217c4da7e13d3a49e9 100644 (file)
@@ -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}}
                        <div class="comment-fake-form" id="comment-fake-form-{{$item.id}}">
                                <textarea id="comment-fake-text-{{$item.id}}" class="comment-fake-text-empty form-control" placeholder="{{$item.reply_label}}" onFocus="commentOpenUI(this, {{$item.id}});"  rows="1"></textarea>
                        </div>
-               {{/if}}
-               {{if $item.comment && $item.thread_level==1}}
+                       {{/if}}
                        <div class="wall-item-comment-wrapper well well-small" id="item-comments-{{$item.id}}" data-display="block" style="display: none">{{$item.comment nofilter}}</div>
                {{/if}}
        </div><!-- /media -->
 </div><!-- ./panel-body or ./wall-item-container -->
 
-
 {{if $mode == display}}
 {{else}}
 {{if $item.comment_lastcollapsed}}</div>{{/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}}
 </div><!--./comment-container-->