mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 17:14:24 +00:00
a5b1c1b0b3
- 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 (cherry picked from commit72c297521b
) (cherry picked from commit283f964894
) Conflicts: options/locale/locale_en-US.ini https://codeberg.org/forgejo/forgejo/pulls/1550 (cherry picked from commit7c30af7fde
) (cherry picked from commitf3be6eb269
) (cherry picked from commit78e1755b94
) (cherry picked from commit73799479e0
) (cherry picked from commit938359b941
) (cherry picked from commitb168a9c081
) [GITEA] Detect file rename and show in history (squash) ctx.Locale (cherry picked from commit40447752ff
) (cherry picked from commitea23594cdb
) (cherry picked from commitcdc473850c
) (cherry picked from commit86e6641c29
) (cherry picked from commit2757de586b
) (cherry picked from commitdef4ae32dd
) (cherry picked from commit6dada09329
) (cherry picked from commit5d6d527251
) Conflicts: tests/integration/repo_test.go https://codeberg.org/forgejo/forgejo/pulls/2119 (cherry picked from commitd3c1bce7db
) (cherry picked from commit04bcb22d5c
) (cherry picked from commite16241fd99
) (cherry picked from commit8e2beb3ed5
)
24 lines
853 B
Go HTML Template
24 lines
853 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">
|
|
{{svg "octicon-git-branch"}}
|
|
{{ctx.Locale.Tr "repo.commit_graph"}}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{template "repo/commits_table" .}}
|
|
{{if .OldFilename}}
|
|
<div class="ui bottom attached header">
|
|
<span>{{ctx.Locale.Tr "repo.commits.renamed_from" .OldFilename}} (<a href="{{.OldFilenameHistory}}">{{ctx.Locale.Tr "repo.commits.browse_further"}}</a>)</span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|