diff MoinMoin/themes/__init__.py @ 2708:b8680cd6cf91

Fixed quicklinks and their tooltips Fixed the overflowing quicklinks text in the basic theme. Also fixed the quicklink tooltips which now show both wikititle and full url to the item instead of just the wikititle.
author Ajitesh Gupta <ajgupta93@gmail.com>
date Thu, 14 Aug 2014 21:45:02 +0530
parents 5a6660508036
children 615599f53b07
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Thu Aug 14 21:06:34 2014 +0530
+++ b/MoinMoin/themes/__init__.py	Thu Aug 14 21:45:02 2014 +0530
@@ -161,7 +161,9 @@
                             if endpoint == 'frontend.quicklink_item':
                                 if not flaskg.user.is_quicklinked_to([fqname]):
                                     label = _('Add Link')
-                                    user_actions.append((endpoint, href, iconcls, label, title, True))
+                                else:
+                                    label = _('Remove Link')
+                                user_actions.append((endpoint, href, iconcls, label, title, True))
                             elif endpoint == 'frontend.subscribe_item':
                                 from MoinMoin.items import Item
                                 if flaskg.user.is_subscribed_to(item.item):