summaryrefslogtreecommitdiff
path: root/gstudio/templatetags
diff options
context:
space:
mode:
authorDhiru <dhiru@labadmin-P5E-Deluxe.(none)>2012-06-16 18:38:21 +0530
committerDhiru <dhiru@labadmin-P5E-Deluxe.(none)>2012-06-16 18:38:21 +0530
commit6d7c90142f6cd3f08e0ee28216392c421711a209 (patch)
tree8f09a817c710358a680908fd3c0e9abb643974bc /gstudio/templatetags
parentc09d5d8fc986e4df80e617d298ae3ecef00860fa (diff)
downloadgnowsys-6d7c90142f6cd3f08e0ee28216392c421711a209.tar.gz
cleaned up the interface, search and rss feeds in the header, home page, third column removed, versions as a series of '+' marks below the title.
Diffstat (limited to 'gstudio/templatetags')
-rw-r--r--gstudio/templatetags/gstudio_tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gstudio/templatetags/gstudio_tags.py b/gstudio/templatetags/gstudio_tags.py
index a22715e..47dbbff 100644
--- a/gstudio/templatetags/gstudio_tags.py
+++ b/gstudio/templatetags/gstudio_tags.py
@@ -68,10 +68,10 @@ def get_metatypes(template='gstudio/tags/metatypes.html'):
@register.inclusion_tag('gstudio/tags/dummy.html')
-def get_authors(template='gstudio/tags/authors.html'):
+def get_authors(number=5, template='gstudio/tags/authors.html'):
"""Return the published authors"""
return {'template': template,
- 'authors': Author.published.all()}
+ 'authors': Author.published.all()[:number]}
@register.inclusion_tag('gstudio/tags/dummy.html')