Add tooltips to “lock” and “unlock” buttons.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 19 Nov 2010 20:27:17 +0000 (21:27 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 19 Nov 2010 20:27:17 +0000 (21:27 +0100)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/include/viewSone.html

index a412903..0dd21d0 100644 (file)
@@ -137,7 +137,9 @@ View.CreateSone.Text.Error.NoIdentity=You have not selected an identity.
 
 View.Sone.Label.LastUpdate=Last update:
 View.Sone.Button.UnlockSone=unlock
+View.Sone.Button.UnlockSone.Tooltip=Allow this Sone to be inserted now
 View.Sone.Button.LockSone=lock
+View.Sone.Button.LockSone.Tooltip=Prevents this Sone from being inserted right now
 View.Sone.Button.UnfollowSone=unfollow
 View.Sone.Button.FollowSone=follow
 View.Sone.Status.Modified=This Sone was modified and waits to be inserted.
index 82c0861..22758a1 100644 (file)
                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                        <input type="hidden" name="sone" value="<% sone.id|html>" />
                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
-                       <button type="submit"><%= View.Sone.Button.LockSone|l10n|html></button>
+                       <button type="submit" title="<%= View.Sone.Button.LockSone.Tooltip|l10n|html>"><%= View.Sone.Button.LockSone|l10n|html></button>
                </form>
                <form class="unlock<%if !sone.locked> hidden<%/if>" action="unlockSone.html" method="post">
                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                        <input type="hidden" name="sone" value="<% sone.id|html>" />
                        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
-                       <button type="submit"><%= View.Sone.Button.UnlockSone|l10n|html></button>
+                       <button type="submit" title="<%= View.Sone.Button.UnlockSone.Tooltip|l10n|html>"><%= View.Sone.Button.UnlockSone|l10n|html></button>
                </form>
        <%/if>
        <%if ! sone.current>