Browse Source

fix issue

pull/729/head
zhoupzh 3 years ago
parent
commit
ad2831e81a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/view_file.tmpl

+ 1
- 1
templates/repo/view_file.tmpl View File

@@ -63,7 +63,7 @@
<a class="ui button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
</div>
{{if .Repository.CanEnableEditor}}
{{if .CanEditFile}}
{{.CanEditFile}}{{if .CanEditFile}}
<a href="{{.RepoLink}}/_edit/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}"><span class="btn-octicon poping up" data-content="{{.EditFileTooltip}}" data-position="bottom center" data-variation="tiny inverted">{{svg "octicon-pencil" 16}}</span></a>
{{else}}
<span class="btn-octicon poping up disabled" data-content="{{.EditFileTooltip}}" data-position="bottom center" data-variation="tiny inverted">{{svg "octicon-pencil" 16}}</span>


Loading…
Cancel
Save