Skip to content

Commit aafb8b0

Browse files
committed
Use new buttons
1 parent 07f0dd0 commit aafb8b0

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

templates/repo/empty.tmpl

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,26 @@
1515
{{.i18n.Tr "repo.quick_guide"}}
1616
</h4>
1717
<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+
3619
<div class="item">
3720
<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>
3821
<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>
3938
{{template "repo/clone_buttons" .}}
4039
</div>
4140
</div>

0 commit comments

Comments
 (0)