From: David ‘Bombe’ Roden Date: Fri, 5 Nov 2010 14:25:08 +0000 (+0100) Subject: Improve message about not having any WoT identities. X-Git-Tag: 0.2-RC1~12 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f7431bf61b6d68d9f14da462396741695b555b52;hp=275d2834f2222ffa370cbdf0d38813dda62a3d72;p=Sone.git Improve message about not having any WoT identities. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 7402be0..a665bb4 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -156,6 +156,7 @@ Page.Tail.Text.KeyOfSone=Key of this Sone (give this to other people): View.CreateSone.Text.WotIdentityRequired=To create a Sone you need an identity from the {link}Web of Trust plugin{/link}. View.CreateSone.Select.Default=Select an identity View.CreateSone.Text.NoIdentities=You do not have any Web of Trust identities. Please head over to the {link}Web of Trust plugin{/link} and create an identity. +View.CreateSone.Text.NoNonSoneIdentities=You do not have any Web of Trust identities that are not already a Sone. Please head over to the {link}Web of Trust plugin{/link} and create an identity. View.CreateSone.Button.Create=Create Sone View.CreateSone.Text.Error.NoIdentity=You have not selected an identity. diff --git a/src/main/resources/templates/include/createSone.html b/src/main/resources/templates/include/createSone.html index ebd204e..30ce0f7 100644 --- a/src/main/resources/templates/include/createSone.html +++ b/src/main/resources/templates/include/createSone.html @@ -22,5 +22,9 @@ <%else> -

<%= View.CreateSone.Text.NoIdentities|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement="">

+ <%if !sones.empty> +

<%= View.CreateSone.Text.NoNonSoneIdentities|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement="">

+ <%else> +

<%= View.CreateSone.Text.NoIdentities|l10n|html|replace needle="{link}" replacement=''|replace needle="{/link}" replacement="">

+ <%/if> <%/if>