From 469d9b7d9ac3714a146d8e745618641dbe03fafa Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Sat, 20 Apr 2019 04:47:00 +0200 Subject: Add option to blame files (#5721) --- templates/repo/blame.tmpl | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/repo/blame.tmpl (limited to 'templates/repo/blame.tmpl') diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl new file mode 100644 index 0000000000..012f630203 --- /dev/null +++ b/templates/repo/blame.tmpl @@ -0,0 +1,51 @@ +
+ +

+
+
+ + {{.FileName}} {{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}} +
+
+
+ + {{if .Repository.CanEnableEditor}} + {{if .CanEditFile}} + + {{else}} + + {{end}} + {{if .CanDeleteFile}} + + {{else}} + + {{end}} + {{end}} +
+
+
+

+ +
+
+ + + + + + + + +
{{.BlameCommitInfo}}{{.BlameLineNums}}
    {{.BlameContent}}
+
+
+ + +
\ No newline at end of file -- cgit v1.2.3