]> git.mxchange.org Git - friendica.git/commitdiff
"vier": Button for show/hide of text area for comments
authorMichael Vogel <icarus@dabo.de>
Fri, 9 Nov 2012 00:56:51 +0000 (01:56 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 9 Nov 2012 00:56:51 +0000 (01:56 +0100)
view/theme/vier/style.css
view/theme/vier/wall_thread.tpl

index c7b6661b2028d44e9ddcbd78fa6f1463aecea46e..9e88dd8f589e2290779e33b97049e3657b35fdd9 100644 (file)
@@ -1059,6 +1059,12 @@ section {
   color: #2d2d2d;
   border: 1px solid #2d2d2d;
 }
+
+.togglecomment {
+  float: left;
+  margin-right: 1em;
+}
+
 .comment-edit-preview {
   width: 710px;
   border: 1px solid #2d2d2d;
index b422ae9266c2dcb8f6a17d2b7a4bc20a423778c3..9861c4febf42ac4583f91f3f92280e894277dce0 100644 (file)
                        {{ if $item.plink }}<a class="icon s16 link$item.sparkle" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}
                </div>
                <div class="wall-item-actions">
-                       <div class="wall-item-location">$item.location</div>    
-               <!--    <div class="wall-item-actions-author">
-                               <a href="$item.profile_url" target="redir"
-                                title="$item.linktitle"
-                                class="wall-item-name-link"><span
-                                class="wall-item-name$item.sparkle">$item.name</span></a>
-                                <span class="wall-item-ago" title="$item.localtime">$item.ago</span>
-                                {{ if $item.owner_url }}<br/>$item.to <a href="$item.owner_url" target="redir" title="$item.olinktitle" class="wall-item-name-link"><span class="wall-item-name$item.osparkle" id="wall-item-ownername-$item.id">$item.owner_name</span></a> $item.vwall
-                                {{ endif }}
-                       </div> -->
-                       
+                       <div class="wall-item-location">$item.location</div>                            
                        <div class="wall-item-actions-social">
-                       <!-- {{ if $item.comment }}
-                               <span id="comment-$item.id" class="fakelink" onclick="showHideComments(bar$item.id);">$item.switchcomment</span>
-                       {{ endif }} -->
+                       {{ if $item.comment }}
+                               <span id="comment-$item.id" class="fakelink togglecomment" onclick="openClose('item-comments-$item.id');">$item.switchcomment</span>
+                       {{ 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.flatten }}
-<!-- <div class="wall-item-comment-wrapper" id="collapsed-comments-bar$item.id" style="display: none;">$item.comment</div> -->
-<div class="wall-item-comment-wrapper" id="collapsed-comments-bar$item.id">$item.comment</div>
+<div class="wall-item-comment-wrapper" id="item-comments-$item.id" style="display: none;">$item.comment</div>
 {{ endif }}