##// END OF EJS Templates
ui: moved group settings outside
marcink -
r3567:3bcfa6d4 new-ui
parent child Browse files
Show More
@@ -13,7 +13,7 b''
13 13 </%def>
14 14
15 15 <%def name="menu_bar_subnav()">
16 ${self.repo_group_menu(active='options')}
16 ${self.repo_group_menu(active='settings')}
17 17 </%def>
18 18
19 19 <%def name="main_content()">
@@ -20,7 +20,7 b''
20 20 </%def>
21 21
22 22 <%def name="menu_bar_subnav()">
23 ${self.repo_menu(active='options')}
23 ${self.repo_menu(active='settings')}
24 24 </%def>
25 25
26 26 <%def name="main_content()">
@@ -265,14 +265,16 b''
265 265 </li>
266 266 %endif
267 267
268 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
269 <li class="${is_active('settings')}"><a class="menulink" href="${h.route_path('edit_repo',repo_name=c.repo_name)}"><div class="menulabel">${_('Repository Settings')}</div></a></li>
270 %endif
271
268 272 <li class="${is_active('options')}">
269 273 <a class="menulink dropdown">
270 274 <div class="menulabel">${_('Options')} <div class="show_more"></div></div>
271 275 </a>
272 276 <ul class="submenu">
273 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
274 <li><a href="${h.route_path('edit_repo',repo_name=c.repo_name)}">${_('Repository Settings')}</a></li>
275 %endif
277
276 278 %if c.rhodecode_db_repo.fork:
277 279 <li>
278 280 <a title="${h.tooltip(_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name))}"
@@ -356,15 +358,15 b''
356 358 <div class="wrapper">
357 359 <ul id="context-pages" class="navigation horizontal-list">
358 360 <li class="${is_active('home')}"><a class="menulink" href="${h.route_path('repo_group_home', repo_group_name=c.repo_group.group_name)}"><div class="menulabel">${_('Group Home')}</div></a></li>
361 % if is_admin or group_admin:
362 <li class="${is_active('settings')}"><a class="menulink" href="${h.route_path('edit_repo_group',repo_group_name=c.repo_group.group_name)}" title="${_('You have admin right to this group, and can edit it')}"><div class="menulabel">${_('Group Settings')}</div></a></li>
363 % endif
359 364
360 365 <li class="${is_active('options')}">
361 366 <a class="menulink dropdown">
362 367 <div class="menulabel">${_('Options')} <div class="show_more"></div></div>
363 368 </a>
364 369 <ul class="submenu">
365 %if is_admin or group_admin:
366 <li><a href="${h.route_path('edit_repo_group',repo_group_name=c.repo_group.group_name)}" title="${_('You have admin right to this group, and can edit it')}">${_('Group Settings')}</a></li>
367 %endif
368 370 %if is_admin or group_admin or (group_write and create_on_write):
369 371 <li><a href="${h.route_path('repo_new',_query=dict(parent_group=c.repo_group.group_id))}">${_('Add Repository')}</a></li>
370 372 %endif
General Comments 0
You need to be logged in to leave comments. Login now