mirror of
https://github.com/go-gitea/gitea
synced 2025-08-02 07:38:35 +00:00
Show latest commit for file (#28067)
If you view a file, you can now see the latest commit that changed that file.  --------- Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
This commit is contained in:
@@ -9,6 +9,22 @@
|
||||
<div class="text left gt-whitespace-pre">{{.FileWarning}}</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if not .ReadmeInList}}
|
||||
<div id="repo-file-commit-box" class="ui top attached header list-header gt-mb-4">
|
||||
<div>
|
||||
{{template "repo/latest_commit" .}}
|
||||
</div>
|
||||
{{if .LatestCommit}}
|
||||
{{if .LatestCommit.Committer}}
|
||||
<div class="ui text grey right age">
|
||||
{{TimeSince .LatestCommit.Committer.When ctx.Locale}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<h4 class="file-header ui top attached header gt-df gt-ac gt-sb gt-fw">
|
||||
<div class="file-header-left gt-df gt-ac gt-py-3 gt-pr-4">
|
||||
{{if .ReadmeInList}}
|
||||
|
Reference in New Issue
Block a user