diffs: add button to browse files at current commit

This commit is contained in:
RhodeCode Admin 2023-01-11 14:33:04 +01:00
parent 324da80267
commit 1c3b7de2fc

View file

@ -78,6 +78,7 @@
<i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${c.commit.raw_id}" title="${_('Copy the full commit id')}"></i>
${file_base.refs(c.commit)}
## phase
% if hasattr(c.commit, 'phase') and getattr(c.commit, 'phase') != 'public':
<span class="tag phase-${c.commit.phase} tooltip" title="${_('Commit phase')}">
@ -107,6 +108,10 @@
<span id="child_link" class="tag tagtag">
<a href="#childCommit" title="${_('Child Commit')}">${_('child')}<i class="icon-right icon-no-margin"></i></a>
</span>
<span class="tag tooltip" title="${_('Browse files at this commit')}">
<i class="icon-code"></i>
<a href="${h.route_path('repo_files', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path='')}">${_('Browse files')}</a>
</span>
</div>