From 0e57a048dd0814ed5ce9e9d523fc33372f9d593a Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 27 Feb 2010 02:03:34 +0100 Subject: [PATCH] Re-instate the new links for different objects, that was accidentally removed earlier. --- pgweb/account/views.py | 8 ++++---- templates/account/objectlist.html | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pgweb/account/views.py b/pgweb/account/views.py index e1b95f88..a5440772 100644 --- a/pgweb/account/views.py +++ b/pgweb/account/views.py @@ -34,19 +34,19 @@ def home(request): objtypes = { 'news': { - 'title': 'News articles', + 'title': 'News article', 'objects': lambda u: NewsArticle.objects.filter(org__managers=u), }, 'events': { - 'title': 'Events', + 'title': 'Event', 'objects': lambda u: Event.objects.filter(org__managers=u), }, 'products': { - 'title': 'Products', + 'title': 'Product', 'objects': lambda u: Product.objects.filter(publisher__managers=u), }, 'organisations': { - 'title': 'Organisations', + 'title': 'Organisation', 'objects': lambda u: Organisation.objects.filter(managers=u), }, } diff --git a/templates/account/objectlist.html b/templates/account/objectlist.html index 080929d7..43ed1c17 100644 --- a/templates/account/objectlist.html +++ b/templates/account/objectlist.html @@ -1,7 +1,7 @@ {%extends "base/page.html"%} {%block title%}Your account{%endblock%} {%block contents%} -

{{title}}

+

{{title}}s

Objects in red are awaiting moderator approval. Note that modifying a previously approved object may result in it being un-approved if the changes are @@ -13,5 +13,9 @@ extensive. {%endfor%} +

+Submit {{title}}. +

+ {%endblock%} -- 2.39.5