]> git.mxchange.org Git - friendica.git/commitdiff
vier: toggle comments only with threaded comments
authorMichael Vogel <icarus@dabo.de>
Fri, 9 Nov 2012 07:01:16 +0000 (08:01 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 9 Nov 2012 07:01:16 +0000 (08:01 +0100)
view/theme/vier/wall_thread.tpl

index 9861c4febf42ac4583f91f3f92280e894277dce0..cd0cf36e96c7e1bdbb21e2b02e72892e8b700fad 100644 (file)
@@ -89,9 +89,9 @@
                <div class="wall-item-actions">
                        <div class="wall-item-location">$item.location</div>                            
                        <div class="wall-item-actions-social">
-                       {{ if $item.comment }}
+                       {{ if $item.threaded }}{{ if $item.comment }}
                                <span id="comment-$item.id" class="fakelink togglecomment" onclick="openClose('item-comments-$item.id');">$item.switchcomment</span>
-                       {{ endif }}
+                       {{ endif }}{{ endif }}
                        {{ if $item.star }}
                                <a href="#" id="star-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classdo"  title="$item.star.do">$item.star.do</a>
                                <a href="#" id="unstar-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">$item.star.undo</a>
        {{ if $item.threaded }}{{ if $item.comment }}
        <div class="wall-item-bottom">
                <div class="wall-item-links"></div>
-               <div class="wall-item-comment-wrapper" id="total-comments-$item.id">
+               <div class="wall-item-comment-wrapper" id="item-comments-$item.id" style="display: none;">
                                        $item.comment
                </div>
        </div>
 
 
 {{ if $item.flatten }}
-<div class="wall-item-comment-wrapper" id="item-comments-$item.id" style="display: none;">$item.comment</div>
+<div class="wall-item-comment-wrapper" id="item-comments-$item.id">$item.comment</div>
 {{ endif }}