Show More
@@ -13,7 +13,7 b'' | |||||
13 | </%def> |
|
13 | </%def> | |
14 |
|
14 | |||
15 | <%def name="menu_bar_subnav()"> |
|
15 | <%def name="menu_bar_subnav()"> | |
16 |
${self.repo_group_menu(active=' |
|
16 | ${self.repo_group_menu(active='settings')} | |
17 | </%def> |
|
17 | </%def> | |
18 |
|
18 | |||
19 | <%def name="main_content()"> |
|
19 | <%def name="main_content()"> |
@@ -20,7 +20,7 b'' | |||||
20 | </%def> |
|
20 | </%def> | |
21 |
|
21 | |||
22 | <%def name="menu_bar_subnav()"> |
|
22 | <%def name="menu_bar_subnav()"> | |
23 |
${self.repo_menu(active=' |
|
23 | ${self.repo_menu(active='settings')} | |
24 | </%def> |
|
24 | </%def> | |
25 |
|
25 | |||
26 | <%def name="main_content()"> |
|
26 | <%def name="main_content()"> |
@@ -265,14 +265,16 b'' | |||||
265 | </li> |
|
265 | </li> | |
266 | %endif |
|
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 | <li class="${is_active('options')}"> |
|
272 | <li class="${is_active('options')}"> | |
269 | <a class="menulink dropdown"> |
|
273 | <a class="menulink dropdown"> | |
270 | <div class="menulabel">${_('Options')} <div class="show_more"></div></div> |
|
274 | <div class="menulabel">${_('Options')} <div class="show_more"></div></div> | |
271 | </a> |
|
275 | </a> | |
272 | <ul class="submenu"> |
|
276 | <ul class="submenu"> | |
273 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
|
277 | ||
274 | <li><a href="${h.route_path('edit_repo',repo_name=c.repo_name)}">${_('Repository Settings')}</a></li> |
|
|||
275 | %endif |
|
|||
276 |
|
|
278 | %if c.rhodecode_db_repo.fork: | |
277 | <li> |
|
279 | <li> | |
278 | <a title="${h.tooltip(_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name))}" |
|
280 | <a title="${h.tooltip(_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name))}" | |
@@ -356,15 +358,15 b'' | |||||
356 | <div class="wrapper"> |
|
358 | <div class="wrapper"> | |
357 | <ul id="context-pages" class="navigation horizontal-list"> |
|
359 | <ul id="context-pages" class="navigation horizontal-list"> | |
358 | <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> |
|
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 | <li class="${is_active('options')}"> |
|
365 | <li class="${is_active('options')}"> | |
361 | <a class="menulink dropdown"> |
|
366 | <a class="menulink dropdown"> | |
362 | <div class="menulabel">${_('Options')} <div class="show_more"></div></div> |
|
367 | <div class="menulabel">${_('Options')} <div class="show_more"></div></div> | |
363 | </a> |
|
368 | </a> | |
364 | <ul class="submenu"> |
|
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 | %if is_admin or group_admin or (group_write and create_on_write): |
|
370 | %if is_admin or group_admin or (group_write and create_on_write): | |
369 | <li><a href="${h.route_path('repo_new',_query=dict(parent_group=c.repo_group.group_id))}">${_('Add Repository')}</a></li> |
|
371 | <li><a href="${h.route_path('repo_new',_query=dict(parent_group=c.repo_group.group_id))}">${_('Add Repository')}</a></li> | |
370 | %endif |
|
372 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now