comparison MoinMoin/themes/__init__.py @ 2387:9bf41329f031

icon dict to map endpoints with icon retrieved from helper functions
author sharky93 <rishabhr123@gmail.com>
date Sat, 17 Aug 2013 05:54:42 +0530
parents aa19b1b69b5c
children 0cb9f75fb9ba
comparison
equal deleted inserted replaced
2386:96fbb30f3aba 2387:9bf41329f031
91 user_actions = ['frontend.quicklink_item', 'frontend.subscribe_item', ] 91 user_actions = ['frontend.quicklink_item', 'frontend.subscribe_item', ]
92 item_navigation = ['frontend.index', 'frontend.sitemap', ] 92 item_navigation = ['frontend.index', 'frontend.sitemap', ]
93 item_actions = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item', 93 item_actions = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item',
94 'frontend.similar_names', 'frontend.download_item', 'frontend.copy_item',] if self.user.may.write(item_name) else [] 94 'frontend.similar_names', 'frontend.download_item', 'frontend.copy_item',] if self.user.may.write(item_name) else []
95 return user_actions, item_navigation, item_actions 95 return user_actions, item_navigation, item_actions
96
97 def get_endpoint_iconmap(self):
98 icon = {'frontend.quicklink_item' : "icon-star-empty",
99 'frontend.subscribe_item' : "icon-envelope",
100 'frontend.index' : "icon-list-alt",
101 'frontend.sitemap' : "icon-map-marker",
102 'frontend.rename_item' : "icon-tag",
103 'frontend.delete_item' : "icon-trash",
104 'frontend.destroy_item' : "icon-fire",
105 'frontend.similar_names' : "icon-search",
106 'frontend.download_item' : "icon-download-alt",
107 'frontend.copy_item' : "icon-comment",
108 'special.supplementation' : "icon-comment",
109 'frontend.show_item' : "icon-eye-open",
110 'frontend.modify_item' : "icon-pencil",
111 'frontend.history' : "icon-time",
112 'frontend.show_item_meta' : "icon-wrench",
113 'frontend.highlight_item' : "icon-picture",
114 'frontend.backrefs' : "icon-share",
115 'special.comments' : "icon-comment",
116 'special.transclusions' : "icon-edit",};
117 return icon
96 118
97 def location_breadcrumbs(self, item_name): 119 def location_breadcrumbs(self, item_name):
98 """ 120 """
99 Assemble the location using breadcrumbs (was: title) 121 Assemble the location using breadcrumbs (was: title)
100 122