]> git.mxchange.org Git - friendica.git/blobdiff - view/comment_item.tpl
new file: view/theme/smoothly/down.png
[friendica.git] / view / comment_item.tpl
index a1d4e1043a3ba18e7cec9616d6ee5f8550cbf1c3..98173aa3067abc98f57255660f5f034d134ef95a 100644 (file)
@@ -1,5 +1,10 @@
                <div class="comment-wwedit-wrapper" id="comment-edit-wrapper-$id" style="display: block;">
-                       <form class="comment-edit-form" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;">
+                       {{ if $threaded }}
+                       <span id="hide-commentbox-$id" class="hide-commentbox fakelink" onclick="showHideCommentBox($id);">$comment</span>
+                       <form class="comment-edit-form" style="display: none;" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;">
+                       {{ else }}
+                       <form class="comment-edit-form" style="display: block;" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;">
+                       {{ endif }}
                                <input type="hidden" name="type" value="$type" />
                                <input type="hidden" name="profile_uid" value="$profile_uid" />
                                <input type="hidden" name="parent" value="$parent" />