Description

Long quicklinks get truncated and are hardly readable especially for sidebar-themes.

Steps to reproduce

Add a page name with more than 25 chars to your quicklinks.

Details

This Wiki. All themes are affected.

MoinMoin Version

moin-1.5.4

Workaround

Patch MoinMoin/themes/__init__.py to use shortenPagename-method for links in navibar (patch generated in local svn repos: rev.100 corresponds to moin-1.5.4-release):

=================================================================== --- C:/Sources/moin-aca-trunk/MoinMoin/theme/init.py (revision 100) +++ C:/Sources/moin-aca-trunk/MoinMoin/theme/init.py (revision 101) @@ -278,7 +278,7 @@

- title = wikiutil.escape(title) + title = self.shortenPagename(wikiutil.escape(title))

@@ -292,7 +292,7 @@

- title = page + title = self.shortenPagename(page)

}}}

Discussion

If "Long quicklinks get truncated and are hardly readable", then why do you want to truncate the title?

This theme-specific problem can be solved in the theme by overriding the splitNavilink-method (e.g. as done in DavidLinke/Sinorca4Moin. So it is not a real moin bug.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/NavibarDoesNotShortenPagenamesForQuicklinks (last edited 2007-11-16 19:42:30 by ThomasWaldmann)