Add AllRepositories to team UI

This commit is contained in:
Nicolas Gourdon
2019-04-28 17:11:22 +02:00
parent 0b8e90e39b
commit b478a10077
6 changed files with 41 additions and 12 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
{{template "org/team/sidebar" .}}
<div class="ui ten wide column">
{{template "org/team/navbar" .}}
{{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}}
{{$canAddRemove := and $.IsOrganizationOwner (not $.Team.IsAllRepositories)}}
{{if $canAddRemove}}
<div class="ui attached segment">
<form class="ui form" id="add-repo-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/add" method="post">