Commit e168b103 authored by Mike Greiling's avatar Mike Greiling Committed by Kamil Trzcinski

add shared_runners_minutes setting for groups

parent 3aa3bb7f
...@@ -68,6 +68,7 @@ class Admin::GroupsController < Admin::ApplicationController ...@@ -68,6 +68,7 @@ class Admin::GroupsController < Admin::ApplicationController
:path, :path,
:repository_size_limit, :repository_size_limit,
:request_access_enabled, :request_access_enabled,
:shared_runners_minutes_limit,
:visibility_level :visibility_level
) )
end end
......
...@@ -132,6 +132,7 @@ class GroupsController < Groups::ApplicationController ...@@ -132,6 +132,7 @@ class GroupsController < Groups::ApplicationController
:repository_size_limit, :repository_size_limit,
:request_access_enabled, :request_access_enabled,
:share_with_group_lock, :share_with_group_lock,
:shared_runners_minutes_limit,
:visibility_level :visibility_level
) )
end end
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
= render 'groups/group_lfs_settings', f: f = render 'groups/group_lfs_settings', f: f
= render 'groups/shared_runners_minutes_setting', f: f
- if @group.new_record? - if @group.new_record?
.form-group .form-group
.col-sm-offset-2.col-sm-10 .col-sm-offset-2.col-sm-10
......
- if current_user.admin?
.form-group
= f.label :shared_runners_minutes_limit, class: 'control-label' do
Build Minutes Quota
.col-sm-10
= f.number_field :shared_runners_minutes_limit, class: 'form-control', min: 0
%span.help-block#shared_runners_minutes_limit_help_block
Set the maximum number of minutes that a group can use shared runners in a one month period
= link_to icon('question-circle'), help_page_path("user/admin_area/settings/continuous_integration", anchor: "shared-runners-minutes")
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
= render 'group_lfs_settings', f: f = render 'group_lfs_settings', f: f
= render 'shared_runners_minutes_setting', f: f
.form-group .form-group
%hr %hr
= f.label :membership_lock, class: 'control-label' do = f.label :membership_lock, class: 'control-label' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment