## -*- coding: utf-8 -*- <%inherit file="base/base.html"/> <%def name="title()"> ${_('Dashboard')} - ${c.rhodecode_name} <%def name="breadcrumbs()"> ${c.rhodecode_name} <%def name="page_nav()"> ${self.menu('home')} <%def name="main()"> <%def name="get_sort(name)"> <%name_slug = name.lower().replace(' ','_') %> %if name_slug == c.sort_slug: %if c.sort_by.startswith('-'): ${name}↑ %else: ${name}↓ %endif: %else: ${name} %endif
${_('Dashboard')}
%if h.HasPermissionAny('hg.admin','hg.create.repository')(): %endif
%for cnt,repo in enumerate(c.repos_list): %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): ##DESCRIPTION ##LAST CHANGE %endif %endfor
${get_sort(_('Name'))} ${get_sort(_('Description'))} ${get_sort(_('Last change'))} ${get_sort(_('Tip'))} ${get_sort(_('Owner'))} ${_('RSS')} ${_('Atom')}
## TYPE OF REPO %if repo['repo'].dbrepo.repo_type =='hg': ${_('Mercurial repository')} %elif repo['repo'].dbrepo.repo_type =='git': ${_('Git repository')} %else: %endif ##PRIVATE/PUBLIC %if repo['repo'].dbrepo.private: ${_('private repository')} %else: ${_('public repository')} %endif ##NAME ${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']),class_="repo_name")} %if repo['repo'].dbrepo.fork: ${_('fork')} %endif ${h.truncate(repo['description'],60)} ${repo['last_change']} - ${h.age(repo['last_change'])} %if repo['rev']>=0: ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])), h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), class_="tooltip", tooltip_title=h.tooltip(repo['last_msg']))} %else: ${_('No changesets yet')} %endif ${h.person(repo['contact'])}