comparison MoinMoin/themes/__init__.py @ 2450:1691455778f1

moves Item Navigation to the left, SiteMap and ItemIndex to the tabs
author sharky93 <rishabhr123@gmail.com>
date Sun, 08 Sep 2013 22:01:34 +0530
parents 7fb6bff63aa0
children 83978026479a
comparison
equal deleted inserted replaced
2449:f423b258b317 2450:1691455778f1
80 self.meta_items = [] # list of (name, content) for html head <meta> 80 self.meta_items = [] # list of (name, content) for html head <meta>
81 81
82 def get_action_tabs(self, item_name, current_endpoint): 82 def get_action_tabs(self, item_name, current_endpoint):
83 navtabs_endpoints = ['frontend.show_item', 'frontend.history', 83 navtabs_endpoints = ['frontend.show_item', 'frontend.history',
84 'frontend.show_item_meta', 'frontend.highlight_item', 'frontend.backrefs', 84 'frontend.show_item_meta', 'frontend.highlight_item', 'frontend.backrefs',
85 'frontend.index', 'frontend.sitemap',
85 ] 86 ]
86 if self.user.may.write(item_name): 87 if self.user.may.write(item_name):
87 navtabs_endpoints.append('frontend.modify_item') 88 navtabs_endpoints.append('frontend.modify_item')
88 89
89 icon = self.get_endpoint_iconmap() 90 icon = self.get_endpoint_iconmap()
113 navtabs.append((endpoint, href, maincls, iconcls, title, label)) 114 navtabs.append((endpoint, href, maincls, iconcls, title, label))
114 return navtabs 115 return navtabs
115 116
116 def get_local_panel(self, item_name): 117 def get_local_panel(self, item_name):
117 user_actions_endpoints = ['frontend.quicklink_item', 'frontend.subscribe_item', ] 118 user_actions_endpoints = ['frontend.quicklink_item', 'frontend.subscribe_item', ]
118 item_navigation_endpoints = ['frontend.index', 'frontend.sitemap', 'special.supplementation'] 119 item_navigation_endpoints = ['special.supplementation']
119 item_actions_endpoints = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item', 120 item_actions_endpoints = ['frontend.rename_item', 'frontend.delete_item', 'frontend.destroy_item',
120 'frontend.similar_names', 'frontend.download_item', 121 'frontend.similar_names', 'frontend.download_item',
121 'frontend.copy_item',] if self.user.may.write(item_name) else [] 122 'frontend.copy_item',] if self.user.may.write(item_name) else []
122 123
123 user_actions = [] 124 user_actions = []