Edgewall Software

Changeset 9454


Ignore:
Timestamp:
Apr 10, 2010, 7:26:29 PM (13 years ago)
Author:
Remy Blank
Message:

wiki: Mention the new version number when saving a wiki page. Also, avoid a trailing colon in the "Last modified" tooltip when no change comment was given.

Closes #9202.

Location:
trunk/trac/wiki
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/trac/wiki/templates/wiki_view.html

    r9435 r9454  
    4747          <div py:if="not version" class="trac-modifiedby" i18n:msg="reldate">
    4848            <a href="${href.wiki(page.name, action='diff', version=page.version)}"
    49                title="${_('Version %(version)s by %(author)s: %(comment)s',
    50                           version=page.version, author=format_author(page.author), comment=page.comment)}">
     49               title="${page.comment and _('Version %(version)s by %(author)s: %(comment)s',
     50                                           version=page.version, author=format_author(page.author), comment=page.comment)
     51                                     or _('Version %(version)s by %(author)s',
     52                                          version=page.version, author=format_author(page.author))}">
    5153              Last modified</a> ${dateinfo(page.time)} ago
    5254          </div>
  • trunk/trac/wiki/web_ui.py

    r9453 r9454  
    331331            page.save(get_reporter_id(req, 'author'), req.args.get('comment'),
    332332                      req.remote_addr)
    333             add_notice(req, _('Your changes have been saved.'))
     333            add_notice(req, _('Your changes have been saved in version '
     334                              '%(version)s.', version=page.version))
    334335            req.redirect(get_resource_url(self.env, page.resource, req.href,
    335336                                          version=None))
Note: See TracChangeset for help on using the changeset viewer.