Mercurial > moin > 1.9
changeset 92:92a508340932
move "Attachments" to the edit bar, its too important to hide in the menu
imported from: moin--main--1.5--patch-94
author | Nir Soffer <nirs@freeshell.org> |
---|---|
date | Sat, 08 Oct 2005 02:01:07 +0000 |
parents | ce330336739b |
children | dcf41a5456cc |
files | MoinMoin/theme/__init__.py |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py Sat Oct 08 01:40:01 2005 +0000 +++ b/MoinMoin/theme/__init__.py Sat Oct 08 02:01:07 2005 +0000 @@ -905,7 +905,6 @@ 'print', 'refresh', '__separator__', - 'AttachFile', 'SpellCheck', 'LikePages', 'LocalSiteMap', @@ -922,7 +921,6 @@ 'raw': _('Raw Text', formatted=False), 'print': _('Print View', formatted=False), 'refresh': _('Delete Cache', formatted=False), - 'AttachFile': _('Attachments', formatted=False), 'SpellCheck': _('Check Spelling', formatted=False), # rename action! 'RenamePage': _('Rename Page', formatted=False), 'DeletePage': _('Delete Page', formatted=False), @@ -1063,6 +1061,7 @@ add(link(request, quotedname + '?action=info', _('Info', formatted=False))) add(self.subscribeLink(page)) add(self.quicklinkLink(page)) + add(self.attachmentsLink(page)) add(self.actionsMenu(page)) # Format @@ -1073,6 +1072,13 @@ self._cache[cacheKey] = html return html + def attachmentsLink(self, page): + """ Return link to page attachments """ + _ = self.request.getText + return page.link_to(self.request, + text=_('Attachments', formatted=False), + querystr='action=AttachFile') + def startPage(self): """ Start page div with page language and direction