From a78467337f87fe188cd00fc5f528cc15ba39cb06 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 11 May 2022 16:50:47 +0800 Subject: [PATCH] fix issue --- templates/repo/home.tmpl | 1 + templates/repo/view_list.tmpl | 46 ++++++++++++++++++++++++++--------- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index cdc43b136..6857cbef7 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -247,6 +247,7 @@
+ {{.CanEditFile}} {{if .IsViewFile}} {{template "repo/view_file" .}} {{else if .IsBlame}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 1f4e71095..48ea08985 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -49,6 +49,15 @@ margin: 0px 5px 0px 0px !important; } +
+
+
+
+
+
+
+
+
{{.CsrfTokenHtml}} @@ -154,7 +163,7 @@ - +
{{TimeSince $commit.Committer.When $.Lang}}
@@ -162,7 +171,7 @@
- +
@@ -200,14 +209,27 @@ \ No newline at end of file