aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/empty.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/empty.tmpl')
-rw-r--r--templates/repo/empty.tmpl17
1 files changed, 15 insertions, 2 deletions
diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl
index cb883e8df5..0acb08933a 100644
--- a/templates/repo/empty.tmpl
+++ b/templates/repo/empty.tmpl
@@ -21,8 +21,21 @@
<div class="ui attached guide table segment empty-repo-guide">
<div class="item">
<h3>{{.locale.Tr "repo.clone_this_repo"}} <small>{{.locale.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</small></h3>
- <div class="ui action small input">
- {{template "repo/clone_buttons" .}}
+
+ <div class="gt-df">
+ {{if and .CanWriteCode (not .Repository.IsArchived)}}
+ <a class="ui small button" href="{{.RepoLink}}/_new/{{.BranchName | PathEscapeSegments}}/">
+ {{.locale.Tr "repo.editor.new_file"}}
+ </a>
+ {{if .RepositoryUploadEnabled}}
+ <a class="ui small button" href="{{.RepoLink}}/_upload/{{.BranchName | PathEscapeSegments}}/">
+ {{.locale.Tr "repo.editor.upload_file"}}
+ </a>
+ {{end}}
+ {{end}}
+ <div class="ui action small input gt-df gt-f1">
+ {{template "repo/clone_buttons" .}}
+ </div>
</div>
</div>