From 8656a3c62d58371b6a6f98a1226dda832b5d450a Mon Sep 17 00:00:00 2001 From: sebastian-sauer Date: Sat, 26 Jan 2019 01:14:35 +0100 Subject: [PATCH] Move input fields to add members to a team and repos to a team (#5853) Move input fields to the top so no scrolling is needed to add new members / repos to a team. Signed-off-by: Sebastian Sauer --- templates/org/team/members.tmpl | 34 ++++++++++++++-------------- templates/org/team/repositories.tmpl | 34 ++++++++++++++-------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 7633bec82..74e5e1908 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -7,7 +7,23 @@ {{template "org/team/sidebar" .}}
{{template "org/team/navbar" .}} -
+ {{if .IsOrganizationOwner}} +
+
+ {{.CsrfTokenHtml}} + +
+ +
+ +
+
+ {{end}} +
{{range .Team.Members}}
{{if $.IsOrganizationOwner}} @@ -24,22 +40,6 @@
{{end}}
- {{if .IsOrganizationOwner}} -
-
- {{.CsrfTokenHtml}} - -
- -
- -
-
- {{end}}
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index fafe15e12..eeb86564f 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -7,8 +7,23 @@ {{template "org/team/sidebar" .}}
{{template "org/team/navbar" .}} -
- {{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}} + {{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}} + {{if $canAddRemove}} +
+
+ {{.CsrfTokenHtml}} +
+ +
+ +
+
+ {{end}} +
{{range .Team.Repos}}
{{if $canAddRemove}} @@ -25,21 +40,6 @@
{{end}}
- {{if $canAddRemove}} -
-
- {{.CsrfTokenHtml}} -
- -
- -
-
- {{end}}