## -*- coding: utf-8 -*- %if c.repo_changesets: %for cnt,cs in enumerate(c.repo_changesets): %endfor
${_('revision')} ${_('commit message')} ${_('age')} ${_('author')} ${_('branch')} ${_('tags')}
%if c.statuses.get(cs.raw_id):
%if c.statuses.get(cs.raw_id)[2]: %else: %endif
%endif
r${cs.revision}:${h.short_id(cs.raw_id)}
${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))} ${h.age(cs.date)} ${h.person(cs.author)} %if cs.branch: ${cs.branch} %endif %for tag in cs.tags: ${tag} %endfor
${c.repo_changesets.pager('$link_previous ~2~ $link_next')}
%else: %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):

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

${_('add new file')}
%endif

${_('Push new repo')}

    ${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
    ${c.rhodecode_repo.alias} add README # add first file
    ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
    ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back

${_('Existing repository?')}

%if h.is_git(c.rhodecode_repo):
    git remote add origin ${c.clone_repo_url}
    git push -u origin master
%else:
    hg push ${c.clone_repo_url}
%endif
%endif