Skip to content

Commit 07f0dd0

Browse files
committed
fix template
1 parent 7743f13 commit 07f0dd0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

templates/repo/empty.tmpl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@
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}}
1836
<div class="item">
1937
<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>
2038
<div class="ui action small input">

0 commit comments

Comments
 (0)