]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/wall_thread.tpl
quattro: move comment box for top-level item at the end of comments list
[friendica.git] / view / theme / quattro / wall_thread.tpl
index 4d454f00db78465f34d2200d54938ac920ebc29b..bd165eed7857db23765dc68818a7787ad8db8d73 100644 (file)
@@ -2,7 +2,11 @@
 {{ else }}
 {{if $item.comment_firstcollapsed}}
        <div class="hide-comments-outer">
-       <span id="hide-comments-total-$item.id" class="hide-comments-total">$item.num_comments</span> <span id="hide-comments-$item.id" class="hide-comments fakelink" onclick="showHideComments($item.id);">$item.hide_text</span>
+               <span id="hide-comments-total-$item.id" 
+                       class="hide-comments-total">$item.num_comments</span>
+                       <span id="hide-comments-$item.id" 
+                               class="hide-comments fakelink" 
+                               onclick="showHideComments($item.id);">$item.hide_text</span>
        </div>
        <div id="collapsed-comments-$item.id" class="collapsed-comments" style="display: none;">
 {{endif}}
                <div class="wall-item-like" id="wall-item-like-$item.id">$item.like</div>
                <div class="wall-item-dislike" id="wall-item-dislike-$item.id">$item.dislike</div>      
        </div>
-       {{ if $item.threaded }}{{ if $item.comment }}
+       {{ if $item.threaded }}{{ if $item.comment }}{{ if $item.indent==comment }}
        <div class="wall-item-bottom">
                <div class="wall-item-links"></div>
                <div class="wall-item-comment-wrapper">
-                                       $item.comment
+                       $item.comment
                </div>
        </div>
-       {{ endif }}{{ endif }}
+       {{ endif }}{{ endif }}{{ endif }}
 
 </div>
 
 {{if $item.comment_lastcollapsed}}</div>{{endif}}
 {{ endif }}
 
+{{ if $item.indent!=comment}}
+<div class="wall-item-comment-wrapper" >$item.comment</div>
+{{ endif }}
+
 {{ if $item.flatten }}
-<div class="wall-item-comment-wrapper" >
-       $item.comment
-</div>
+<div class="wall-item-comment-wrapper" >$item.comment</div>
 {{ endif }}