From c0adb5ea8bd0b2551a8c414b54ef5bc67882de55 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 10 Feb 2019 13:30:25 +0000 Subject: [PATCH] Create repository on organisation by default on its dashboard (#6026) * Create repository on organisation by default on its dashboard * Only show owners the add new repositories to an organisation button. Fix #3253 Signed-off-by: Andrew Thornton --- templates/user/dashboard/dashboard.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index d6237b31f28d..27a0a76bc443 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -44,12 +44,14 @@

{{.i18n.Tr "home.my_repos"}} ${reposTotalCount} + {{if or (not .ContextUser.IsOrganization) .IsOrganizationOwner}} + {{end}}