]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/templates/wall_thread.tpl
Merge pull request #1017 from silke/vier-border-radius
[friendica.git] / view / theme / vier / templates / wall_thread.tpl
index 3062b518f301b375a13d629a5406e7b6b88773fe..06adc011ccef9f5f2ca9d4ed832f2c7d76e3752b 100644 (file)
                </div>
                <div class="wall-item-actions">
                        <div class="wall-item-actions-social">
-                       {{if $item.threaded}}{{if $item.comment}}
-                               <span id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}');"><i class="icon-comment"></i></span>
-                       {{/if}}{{/if}}
+                       {{if $item.threaded}}
+                       {{/if}}
+                       {{if $item.comment}}
+                               <span id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" title="{{$item.switchcomment}}"><i class="icon-reply"></i></span>
+                       {{/if}}
                        {{if $item.vote}}
                                {{if $item.vote.like}}
                                <a href="#" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="dolike({{$item.id}},'like'); return false"><i class="icon-thumbs-up icon-large"></i></a>
                                 <a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer}}"><i class="icon-folder-close icon-large"></i></a>
                        {{/if}}
                        </div>
-                       <div class="wall-item-location">{{$item.location}} {{$item.postopts}}</div>                             
+                       <div class="wall-item-location">{{$item.location}} {{$item.postopts}}</div>
                        <div class="wall-item-actions-tools">
 
                                {{if $item.drop.pagedrop}}
 {{if $item.comment_lastcollapsed}}</div>{{/if}}
 {{/if}}
 
-{{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
-<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment}}</div>
-{{/if}}{{/if}}{{/if}}
+{{if $item.total_comments_num}}
+       {{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
+               <div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment}}</div>
+       {{/if}}{{/if}}{{/if}}
 
+       {{if $item.flatten}}
+               <div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment}}</div>
+       {{/if}}
+{{else}}
+       {{if $item.threaded}}{{if $item.comment}}{{if $item.thread_level==1}}
+               <div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment}}</div>
+       {{/if}}{{/if}}{{/if}}
 
-{{if $item.flatten}}
-<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment}}</div>
+       {{if $item.flatten}}
+               <div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment}}</div>
+       {{/if}}
 {{/if}}