Change links to HTML forms.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 14:15:19 +0000 (16:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 14:15:19 +0000 (16:15 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/static/css/sone.css
src/main/resources/templates/knownSones.html

index fc9075a..b525fee 100644 (file)
@@ -129,6 +129,9 @@ Page.Logout.Title=Logout - Sone
 
 View.Head.ProfileLink.Text=Your Profile
 
+View.Sone.Button.UnblockSone=unblock
+View.Sone.Button.BlockSone=block
+
 View.Post.DeleteLink=Delete
 View.Post.SendReply=Post Reply!
 View.Post.Reply.DeleteLink=Delete
index edde599..7c15813 100644 (file)
        display: none;
 }
 
+#sone #known-sones form {
+       display: inline;
+}
+
 #sone h1 {
        font-family: inherit;
        font-size: 200%;
index aaf452b..a0b270a 100644 (file)
@@ -8,9 +8,17 @@
                                <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>"><% sone.niceName|html></a></div>
                                <div>(<% sone.requestUri|html>)</div>
                                <%if sone.isBlocked>
-                                       <div class="unblock-link"><a href="unblockSone.html?sone=<% sone.id>">unblock</a></div>
+                                       <form class="unblock" action="unblockSone.html" method="post">
+                                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                                               <input type="hidden" name="sone" value="<% sone.id>" />
+                                               <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
+                                       </form>
                                <%else>
-                                       <div class="block-link"><a href="blockSone.html?sone=<% sone.id>">block</a></div>
+                                       <form class="block" action="blockSone.html" method="post">
+                                               <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                                               <input type="hidden" name="sone" value="<% sone.id>" />
+                                               <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
+                                       </form>
                                <%/if>
                        </div>
                <%foreachelse>