<% messages = h.flash.pop_messages() %>
% if messages:
% for message in messages:
- ${message}
% endfor
% endif
${next.main()}
### MAKO DEFS ###
<%def name="breadcrumbs()">
${h.link_to(_(u'Repositories'),h.url('home'))}
»
${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
- ${_('Summary')}
- ${_('Changelog')}
- ${_('Files')}
-
${_('Switch To')}
-
${_('Options')}
%if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
- ${h.link_to(_('Settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}
%endif
%if c.rhodecode_db_repo.fork:
- ${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default', merge=1),class_='compare_request')}
%endif
- ${h.link_to(_('Lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}
- ${h.link_to(_('Search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}
%if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking:
%if c.rhodecode_db_repo.locked[0]:
- ${h.link_to(_('Unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}
%else:
- ${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}
%endif
%endif
## TODO: this check feels wrong, it would be better to have a check for permissions
## also it feels like a job for the controller
%if c.rhodecode_user.username != 'default':
-
${_('Follow')}
${_('Unfollow')}
- ${_('Fork')}
%if h.is_hg(c.rhodecode_repo):
- ${_('Create Pull Request')}
%endif
%endif
-
${_('Pull Requests')}
%if c.repository_pull_requests:
${c.repository_pull_requests}
%endif
%def>
<%def name="usermenu()">
## USER MENU