From ff3aee8639aa45420f4d05eeab12f04a6e15150a Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 8 Nov 2021 16:31:11 +0800 Subject: [PATCH] fix issue --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index aef8e728e..a0cae31f3 100755 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -63,7 +63,7 @@ {{.i18n.Tr "repo.file_history"}} {{if .Repository.CanEnableEditor}} - {{.CanEditFile}}{{if .CanEditFile}} + {{if .CanEditFile}} {{svg "octicon-pencil" 16}} {{else}} {{svg "octicon-pencil" 16}}