aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index e7d1c04c12..e6591df7e3 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -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}}