af0781d400
- Add a indication to the file history if the file has been renamed, this indication contains a link to browse the history of the file further. - Added unit testing. - Added integration testing. - Resolves https://codeberg.org/forgejo/forgejo/issues/1279
25 lines
883 B
Go HTML Template
25 lines
883 B
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
{{template "repo/sub_menu" .}}
|
|
<div class="repo-button-row">
|
|
<div class="gt-df gt-ac">
|
|
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
|
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
|
|
<span class="text">
|
|
{{svg "octicon-git-branch"}}
|
|
</span>
|
|
{{.locale.Tr "repo.commit_graph"}}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{template "repo/commits_table" .}}
|
|
{{if .OldFilename}}
|
|
<div class="ui bottom attached header">
|
|
<span>{{.locale.Tr "repo.commits.renamed_from" .OldFilename}} (<a href="{{.OldFilenameHistory}}">{{.locale.Tr "repo.commits.browse_further"}}</a>)</span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|