aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-02-19 20:08:12 +0800
committerGitHub <noreply@github.com>2022-02-19 12:08:12 +0000
commit931c2f40e7f7c7698956adecf14814dc0559f801 (patch)
treeb78e907518f7e6b9ec1a8cb690f8e4887f4d2d36 /templates/org
parent159c3f48af452dc96bf6489d1d7c99ea89d174c4 (diff)
downloadgitea-931c2f40e7f7c7698956adecf14814dc0559f801.tar.gz
gitea-931c2f40e7f7c7698956adecf14814dc0559f801.zip
Put buttons back in org dashboard (#18817)
Fix #18523
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/home.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 5b4f6d2c02..c72fc53de5 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -29,6 +29,15 @@
</div>
<div class="ui five wide column">
+ {{if .CanCreateOrgRepo}}
+ <div class="center aligned">
+ <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{.i18n.Tr "new_repo"}}</a>
+ {{if not .DisableNewPullMirrors}}
+ <a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a>
+ {{end}}
+ </div>
+ <div class="ui divider"></div>
+ {{end}}
<h4 class="ui top attached header df">
<strong class="f1">{{.i18n.Tr "org.people"}}</strong>
{{if .IsOrganizationMember}}