Don’t add comment links when nobody is logged in.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index 1f0020c..c3ad07a 100644 (file)
                                </div>
                        </div>
                <%/foreach>
-               <div class="create-reply">
-                       <form method="post" action="createReply.html">
-                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
-                               <input type="hidden" name="returnPage" value="<% request.uri|html>" />
-                               <input type="hidden" name="post" value="<% post.id|html>" />
-                               <input type="text" class="reply-input" name="text" value="" />
-                               <button type="submit"><%= View.Post.SendReply|l10n|html></button>
-                       </form>
-               </div>
+               <%ifnull ! currentSone>
+                       <div class="create-reply">
+                               <form method="post" action="createReply.html">
+                                       <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                                       <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+                                       <input type="hidden" name="post" value="<% post.id|html>" />
+                                       <input type="text" class="reply-input" name="text" value="" />
+                                       <button type="submit"><%= View.Post.SendReply|l10n|html></button>
+                               </form>
+                       </div>
+               <%/if>
        </div>
 </div>