<%inherit file="/base/base.html"/> <%namespace name="changelog_table" file="/changelog/changelog_table.html"/> <%block name="title"> ${_('%s Summary') % c.repo_name} <%def name="breadcrumbs_links()"> ${_('Summary')} ##FORK %if c.db_repo.fork: - ${_('Fork of')} "${c.db_repo.fork.repo_name}" %endif ##REMOTE %if c.db_repo.clone_uri: - ${_('Clone from')} "${h.credentials_filter(c.db_repo.clone_uri)}" %endif <%block name="header_menu"> ${self.menu('repositories')} <%block name="head_extra"> <%def name="main()"> ${self.repo_context_bar('summary')}
${self.breadcrumbs()}
${self.repolabel(c.db_repo.repo_type)} ${_('Use ID')} %if c.ssh_repo_url: ${_('Use SSH')} %endif
%if c.ssh_repo_url:
${self.repolabel(c.db_repo.repo_type)} ${_('Use HTTP')}
%endif
${h.urlify_text(c.db_repo.description, stylize=c.visual.stylify_metalabels)}
%if c.show_stats:
%else: ${_('Statistics are disabled for this repository')} %if h.HasPermissionAny('hg.admin')('enable stats on from summary'): ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_statistics'),class_="btn btn-default btn-xs")} %endif %endif
%if len(c.db_repo_scm_instance.revisions) == 0: ${_('There are no downloads yet')} %elif not c.enable_downloads: ${_('Downloads are disabled for this repository')} %if h.HasPermissionAny('hg.admin')('enable downloads on from summary'): ${h.link_to(_('Enable'),h.url('edit_repo',repo_name=c.repo_name, anchor='repo_enable_downloads'),class_="btn btn-default btn-xs")} %endif %else: ${_('Download as zip')} ${h.hidden('download_options', class_='form-control')} %endif
%if c.cs_pagination: ${h.link_to(_('Latest Changes'),h.url('changelog_home',repo_name=c.repo_name))} %else: ${_('Quick Start')} %endif
%if c.cs_pagination: ${changelog_table.changelog(c.repo_name, c.cs_pagination, c.cs_statuses, c.cs_comments, show_checkbox=False)} ${c.cs_pagination.pager()} %else: %if h.HasRepoPermissionLevel('write')(c.repo_name):

${_('Add or upload files directly via Kallithea')}

%endif

${_('Push new repository')}

${c.db_repo_scm_instance.alias} clone ${c.clone_repo_url}
${c.db_repo_scm_instance.alias} add README # add first file
${c.db_repo_scm_instance.alias} commit -m "Initial" # commit with message
${c.db_repo_scm_instance.alias} push ${'origin master' if c.db_repo_scm_instance.alias == 'git' else ''} # push changes back
                

${_('Existing repository?')}

                %if c.db_repo_scm_instance.alias == 'git':
git remote add origin ${c.clone_repo_url}
git push -u origin master
                %else:
hg push ${c.clone_repo_url}
                %endif
                
%endif
%if c.readme_data:
${c.readme_data|n}
%endif %if c.show_stats: %endif