Use site_name if the system sends a message.
Addresses comments on r2564.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/templates/soc/notification/list/row.html Mon Mar 16 11:57:50 2009 +0000
+++ b/app/soc/templates/soc/notification/list/row.html Mon Mar 16 15:33:27 2009 +0000
@@ -5,7 +5,7 @@
{% if list.item.from_user %}
{{ list.item.from_user.name }}
{% else %}
- Anonymous
+ {{ site_name }}
{% endif %}
</a>
</div>
--- a/app/soc/templates/soc/notification/public.html Mon Mar 16 11:57:50 2009 +0000
+++ b/app/soc/templates/soc/notification/public.html Mon Mar 16 15:33:27 2009 +0000
@@ -28,7 +28,7 @@
{% if entity.from_user %}
{% readonly_field_as_table_row entity.fields.from_user.label entity.from_user.name %}
{% else %}
-{% readonly_field_as_table_row entity.fields.from_user.label "Anonymous" %}
+{% readonly_field_as_table_row entity.fields.from_user.label site_name %}
{% endif %}
{% readonly_field_as_table_row "To" entity.scope.name %}