|
a/ForgeChat/forgechat/main.py |
|
b/ForgeChat/forgechat/main.py |
|
... |
|
... |
64 |
SitemapEntry('Home', '.'),
|
64 |
SitemapEntry('Home', '.'),
|
65 |
SitemapEntry('Search', 'search'),
|
65 |
SitemapEntry('Search', 'search'),
|
66 |
]
|
66 |
]
|
67 |
|
67 |
|
68 |
def admin_menu(self):
|
68 |
def admin_menu(self):
|
69 |
admin_url = c.project.url()+'admin/'+self.config.options.mount_point+'/'
|
69 |
return super(ForgeChatApp, self).admin_menu()
|
70 |
links = [
|
|
|
71 |
SitemapEntry('Options',
|
|
|
72 |
admin_url + 'options',
|
|
|
73 |
className='admin_modal'),
|
|
|
74 |
SitemapEntry('Permissions',
|
|
|
75 |
admin_url + 'permissions/',
|
|
|
76 |
className='nav_child'),
|
|
|
77 |
]
|
|
|
78 |
return links
|
|
|
79 |
|
70 |
|
80 |
def install(self, project):
|
71 |
def install(self, project):
|
81 |
'Set up any default permissions and roles here'
|
72 |
'Set up any default permissions and roles here'
|
82 |
super(ForgeChatApp, self).install(project)
|
73 |
super(ForgeChatApp, self).install(project)
|
83 |
role_admin = M.ProjectRole.by_name('Admin')._id
|
74 |
role_admin = M.ProjectRole.by_name('Admin')._id
|