Add a link to an org's home page if appropriate
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 06 Mar 2009 18:11:09 +0000
changeset 1693 c5691230da01
parent 1692 b5d90a03fbe6
child 1694 d388ff2fbe90
Add a link to an org's home page if appropriate Patch by: Sverre Rabbelier
app/soc/templates/soc/organization/public.html
--- a/app/soc/templates/soc/organization/public.html	Fri Mar 06 17:48:49 2009 +0000
+++ b/app/soc/templates/soc/organization/public.html	Fri Mar 06 18:11:09 2009 +0000
@@ -14,6 +14,14 @@
 {% endcomment %}
 {% load forms_helpers %}
 
+{% block header_title %}
+{{ page_name }} for {{ entity.name }}
+{% if entity.home %}
+<a href="/{{ entity_type_url }}/home/{{ entity.key.name }}">(Home Page)</a>
+{% endif %}
+{% endblock %}
+
+
 {% block fields %}
   {{ block.super }}
   {% readonly_field_as_table_row entity.fields.dev_mailing_list.label entity.dev_mailing_list %}