diff options
author | Unknwon <u@gogs.io> | 2016-08-28 01:41:44 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-28 01:41:44 -0700 |
commit | 0114fdcba40270731d59fe24e8fa6c6147d69e01 (patch) | |
tree | 3cd62e41ad1ed6172e2ba1c16a5e06df39be147d /templates/repo/home.tmpl | |
parent | dad5c155202a79514e60e73ac019191218167d35 (diff) | |
download | gitea-0114fdcba40270731d59fe24e8fa6c6147d69e01.tar.gz gitea-0114fdcba40270731d59fe24e8fa6c6147d69e01.zip |
Web editor: improve delete file process
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index bba5827744..5c6a536c2c 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -34,9 +34,9 @@ </div> <div class="right fitted item"> <div id="file-buttons" class="ui tiny buttons"> - {{if .NewFileLink}} - <a href="{{EscapePound .NewFileLink}}" class="ui button"> - {{.i18n.Tr "repo.new_file"}} + {{if .CanAddFile}} + <a href="{{.RepoLink}}/_new/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}" class="ui button"> + {{.i18n.Tr "repo.editor.new_file"}} </a> {{end}} {{if .UploadFileLink}} |