Improve message about not having any WoT identities.
[Sone.git] / src / main / resources / templates / include / createSone.html
index ebd204e..30ce0f7 100644 (file)
@@ -22,5 +22,9 @@
 
        </form>
 <%else>
-       <p><%= View.CreateSone.Text.NoIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WoT/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
+       <%if !sones.empty>
+               <p><%= View.CreateSone.Text.NoNonSoneIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WoT/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
+       <%else>
+               <p><%= View.CreateSone.Text.NoIdentities|l10n|html|replace needle="{link}" replacement='<a href="/WoT/OwnIdentities">'|replace needle="{/link}" replacement="</a>"></p>
+       <%/if>
 <%/if>