${h.hidden('refs_filter')}

% if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):

${_('Add File')}

- ${_('Upload File')}

% endif

% if c.enable_downloads: <% at_path = '{}'.format(request.GET.get('at') or c.commit.raw_id[:6]) if c.f_path == '/': label = _('Full tree as {}') _query = {'with_hash': '1'} else: label = _('This tree as {}') _query = {'at_path':c.f_path, 'with_hash': '1'} %>

${label.format('.zip')}

% for a_type, content_type, extension in h.ARCHIVE_SPECS: % if extension not in ['.zip']:
- ${label.format(extension)}
% endif % endfor

% endif

## file tree is computed from caches, and filled in
${c.file_tree |n}

%if c.readme_data:
${c.readme_file}
${c.readme_data|n}
%endif