From 6e171c5225edc7969e979c7a9d736b7b1506b6d4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 27 Aug 2016 15:25:01 -0700 Subject: Web editor: improve edit file tooltip --- templates/repo/view_file.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/repo/view_file.tmpl') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 5ddc3768fb..3d85ad5492 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -15,18 +15,18 @@
- {{if .FileEditLink}} - + {{if .CanEditFile}} + {{else}} - + {{end}} - {{if and .IsViewBranch .IsRepositoryWriter}} -
+ {{if .CanDeleteFile}} + {{.CsrfTokenHtml}} -- cgit v1.2.3