Re-instate the new links for different objects, that was accidentally
authorMagnus Hagander <magnus@hagander.net>
Sat, 27 Feb 2010 01:03:34 +0000 (02:03 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 27 Feb 2010 01:03:34 +0000 (02:03 +0100)
removed earlier.

pgweb/account/views.py
templates/account/objectlist.html

index e1b95f888bab74edab1f2fde89009e069d3effd2..a5440772b7a62468a2d8ab2e46c7ae188a121c08 100644 (file)
@@ -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),
        },
 }
index 080929d71a3cee15e525e019d2d1edffea795e43..43ed1c173ae3c31357cb54b6e333a1badada7851 100644 (file)
@@ -1,7 +1,7 @@
 {%extends "base/page.html"%}
 {%block title%}Your account{%endblock%}
 {%block contents%}
-<h1>{{title}}</h1>
+<h1>{{title}}s</h1>
 <p>
 Objects in red are awaiting moderator approval. Note that modifying a previously
 approved object <i>may</i> result in it being un-approved if the changes are
@@ -13,5 +13,9 @@ extensive.
 {%endfor%}
 </ul>
 
+<p>
+<a href="/account/{{suburl}}/new/">Submit {{title}}</a>.
+</p>
+
 {%endblock%}