Add colon at the of _readonly_field_as_table_row template tag label parameter. Replace hardcoded labels in User Public profile template with linkname_user.fields.<field_name>.label values.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Wed, 01 Oct 2008 21:58:31 +0000
changeset 255 663edd9f7e66
parent 254 e88beba437a3
child 256 101c586ff5c8
Add colon at the of _readonly_field_as_table_row template tag label parameter. Replace hardcoded labels in User Public profile template with linkname_user.fields.<field_name>.label values.
app/soc/templates/soc/templatetags/_readonly_field_as_table_row.html
app/soc/templates/soc/user/profile/public.html
--- a/app/soc/templates/soc/templatetags/_readonly_field_as_table_row.html	Wed Oct 01 21:53:52 2008 +0000
+++ b/app/soc/templates/soc/templatetags/_readonly_field_as_table_row.html	Wed Oct 01 21:58:31 2008 +0000
@@ -13,7 +13,7 @@
 {% endcomment %}
 <tr>
  <td class="formfieldlabel">
-	{{ field_label }}
+	{{ field_label }}:
  </td>
  <td class="formfieldvalue">
 	{{ field_value }}
--- a/app/soc/templates/soc/user/profile/public.html	Wed Oct 01 21:53:52 2008 +0000
+++ b/app/soc/templates/soc/user/profile/public.html	Wed Oct 01 21:58:31 2008 +0000
@@ -20,8 +20,8 @@
 {% block body %}
 <p>
  <table>
-  {% readonly_field_as_table_row "Nick name:" linkname_user.nick_name %}
-  {% readonly_field_as_table_row "Link name:" linkname_user.link_name %}
+  {% readonly_field_as_table_row linkname_user.fields.nick_name.label linkname_user.nick_name %}
+  {% readonly_field_as_table_row linkname_user.fields.link_name.label linkname_user.link_name %}
  </table>
 </p>
 {% endblock %}