Only show message posting form for other Sones, not for own.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Nov 2010 22:48:04 +0000 (23:48 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Nov 2010 22:48:04 +0000 (23:48 +0100)
src/main/resources/templates/viewSone.html

index 4d96fab..6830836 100644 (file)
 
                <%if ! sone.current>
                        <%include include/viewSone.html>
-               <%/if>
 
-               <p><%= Page.ViewSone.WriteAMessage|l10n|html></p>
+                       <p><%= Page.ViewSone.WriteAMessage|l10n|html></p>
+
+                       <form action="createPost.html" id="post-message" method="post">
+                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                               <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+                               <input type="hidden" name="recipient" value="<% sone.id|html>" />
+                               <input type="text" name="text" value="" />
+                               <button type="submit"><%= Page.CreatePost.Button.Post|l10n|html></button>
+                       </form>
+               <%/if>
 
-               <form action="createPost.html" id="post-message" method="post">
-                       <input type="hidden" name="formPassword" value="<% formPassword|html>" />
-                       <input type="hidden" name="returnPage" value="<% request.uri|html>" />
-                       <input type="hidden" name="recipient" value="<% sone.id|html>" />
-                       <input type="text" name="text" value="" />
-                       <button type="submit"><%= Page.CreatePost.Button.Post|l10n|html></button>
-               </form>
 
                <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>