# HG changeset patch # User Paul Boddie # Date 1196557013 -3600 # Node ID 40e0b5279f7a64d69527823a7a56097aa6d03445 # Parent 5d00bc38ba25ba4714a79c6f48c73c50e419ae9a Added a link for the default banner image. Added comments to the configuration, added RecentChanges to the navigation bar, made Sponsors the banner image page. diff -r 5d00bc38ba25 -r 40e0b5279f7a ep2008.py --- a/ep2008.py Sun Dec 02 01:55:25 2007 +0100 +++ b/ep2008.py Sun Dec 02 01:56:53 2007 +0100 @@ -52,20 +52,21 @@ u'Events', u'Sprints', u'Calendar', - #u'RecentChanges', + u'RecentChanges', #u'FindPage', #u'HelpContents', ] banner_string = u'' banner_alt_text = u'Sponsor of EuroPython' - banner_prefix = u'sponsor' - banner_per_page = 0 - banner_attachment_page = u'FrontPage' - banner_link_page = u'Sponsors' + banner_prefix = u'sponsor' # banner images need this prefix + banner_per_page = 0 # false value: use attachment page for images + banner_attachment_page = u'Sponsors' # upload banner images to this page + banner_link_page = u'Sponsors' # make banner images link to this page contact_string = u'
Contact Information
' + contribute_string = u'Contribute to this site!' - special_username = 0 + special_username = 0 # show simple username or contribute string for login # vim: tabstop=4 expandtab shiftwidth=4 diff -r 5d00bc38ba25 -r 40e0b5279f7a themes/ep2008/ep2008.py --- a/themes/ep2008/ep2008.py Sun Dec 02 01:55:25 2007 +0100 +++ b/themes/ep2008/ep2008.py Sun Dec 02 01:56:53 2007 +0100 @@ -179,8 +179,12 @@ # Display the default banner if no attachments are found. + target = self.cfg.banner_link_page + if not attachments: - return self.cfg.banner_string + return "%s%s%s" % (formatter.pagelink(1, target), + self.cfg.banner_string, + formatter.pagelink(0)) # Choose an attachment at random and return the HTML to show it. @@ -191,8 +195,6 @@ kw['alt'] = self.cfg.banner_alt_text kw['id'] = u'banner' - target = self.cfg.banner_link_page - return "%s%s%s" % (formatter.pagelink(1, target), formatter.image(**kw), formatter.pagelink(0))