File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 15
15
{{.i18n.Tr "repo.quick_guide"}}
16
16
</h4>
17
17
<div class="ui attached guide table segment">
18
+ {{if .Repository.CanEnableEditor}}
19
+ <div class="item">
20
+ <div class="center fitted item" id="file-buttons">
21
+ <div class="ui blue buttons">
22
+ {{if .CanAddFile}}
23
+ <a href="{{.RepoLink}}/_new/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}" class="ui button">
24
+ {{.i18n.Tr "repo.editor.new_file"}}
25
+ </a>
26
+ {{end}}
27
+ {{if .CanUploadFile}}
28
+ <a href="{{.RepoLink}}/_upload/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}" class="ui button">
29
+ {{.i18n.Tr "repo.editor.upload_file"}}
30
+ </a>
31
+ {{end}}
32
+ </div>
33
+ </div>
34
+ </div>
35
+ {{end}}
18
36
<div class="item">
19
37
<h3>{{.i18n.Tr "repo.clone_this_repo"}} <small>{{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</small></h3>
20
38
<div class="ui action small input">
You can’t perform that action at this time.
0 commit comments