~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to MoinMoin/theme/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
                # Just use the text as is.
267
267
                pagename = title = text
268
268
 
269
 
 
270
269
        # Handle regular pagename like "FrontPage"
271
270
        else:
272
271
            # Use localized pages for the current user
617
616
    def pageinfo(self, page):
618
617
        """ Return html fragment with page meta data
619
618
 
620
 
        Since page information use translated text, it use the ui
 
619
        Since page information uses translated text, it uses the ui
621
620
        language and direction. It looks strange sometimes, but
622
 
        translated text using page direction look worse.
 
621
        translated text using page direction looks worse.
623
622
        
624
623
        @param page: current page
625
624
        @rtype: unicode
634
633
                    info = _("last edited %(time)s by %(editor)s") % info
635
634
                else:
636
635
                    info = _("last modified %(time)s") % info
 
636
                pagename = page.page_name
 
637
                if self.request.cfg.show_interwiki:
 
638
                    pagename = "%s: %s" % (self.request.cfg.interwikiname, pagename)
 
639
                info = "%s  (%s)" % (pagename, info)
637
640
                html = '<p id="pageinfo" class="info"%(lang)s>%(info)s</p>\n' % {
638
641
                    'lang': self.ui_lang_attr(),
639
642
                    'info': info
695
698
        """
696
699
        html = ''
697
700
        if self.cfg.show_version and not keywords.get('print_mode', 0):
698
 
            html = (u'<div id="version">MoinMoin %s, Copyright 2000-2005 by '
 
701
            html = (u'<div id="version">MoinMoin %s, Copyright 2000-2006 by '
699
702
                    'Juergen Hermann</div>') % (version.revision,)
700
703
        return html
701
704