From: David ‘Bombe’ Roden Date: Wed, 12 Jan 2011 09:02:30 +0000 (+0100) Subject: Show profile fields on Sone page. X-Git-Tag: 0.4^2~9^2~45 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bf6b514d89bb39bd076d9a29bbae0d3590750e8d;p=Sone.git Show profile fields on Sone page. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 740cf45..91b39a8 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -92,6 +92,8 @@ Page.ViewSone.UnknownSone.Description=This Sone has not yet been retrieved. Plea Page.ViewSone.WriteAMessage=You can write a message to this Sone here. Please note that everybody will be able to read this message! Page.ViewSone.PostList.Title=Posts by {sone} Page.ViewSone.PostList.Text.NoPostYet=This Sone has not yet posted anything. +Page.ViewSone.Profile.Title=Profile +Page.ViewSone.Profile.Label.Name=Name Page.ViewPost.Title=View Post - Sone Page.ViewPost.Page.Title=View Post by {sone} diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html index 884fa0f..92c9b37 100644 --- a/src/main/resources/templates/viewSone.html +++ b/src/main/resources/templates/viewSone.html @@ -19,7 +19,23 @@ <%if ! sone.current> <%include include/viewSone.html> + <%/if> + +

<%= Page.ViewSone.Profile.Title|l10n|html>

+
+
<%= Page.ViewSone.Profile.Label.Name|l10n|html>
+
<% sone.niceName|html>
+
+ + <%foreach sone.profile.fields field> +
+
<% field.key|html>
+
<% field.value|html>
+
+ <%/foreach> + + <%if ! sone.current>

<%= Page.ViewSone.WriteAMessage|l10n|html>

@@ -31,7 +47,6 @@
<%/if> -

<%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html>