File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Expand file tree Collapse file tree 1 file changed +17
-18
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
19
<div class="item">
37
20
<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>
38
21
<div class="ui action small input">
22
+ <div class="right fitted item mr-0" id="file-buttons">
23
+ <div class="ui tiny primary buttons">
24
+ {{if .Repository.CanEnableEditor}}
25
+ {{if .CanAddFile}}
26
+ <a href="{{.RepoLink}}/_new/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}" class="ui button">
27
+ {{.i18n.Tr "repo.editor.new_file"}}
28
+ </a>
29
+ {{end}}
30
+ {{if .CanUploadFile}}
31
+ <a href="{{.RepoLink}}/_upload/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}" class="ui button">
32
+ {{.i18n.Tr "repo.editor.upload_file"}}
33
+ </a>
34
+ {{end}}
35
+ {{end}}
36
+ </div>
37
+ </div>
39
38
{{template "repo/clone_buttons" .}}
40
39
</div>
41
40
</div>
You can’t perform that action at this time.
0 commit comments