From bf6b514d89bb39bd076d9a29bbae0d3590750e8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 12 Jan 2011 10:02:30 +0100 Subject: [PATCH] Show profile fields on Sone page. --- src/main/resources/i18n/sone.en.properties | 2 ++ src/main/resources/templates/viewSone.html | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) 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>

-- 2.7.4