Commit 490202ec authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Change runner form cost factor render flags

parent 83022069
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
%hr %hr
.append-bottom-20 .append-bottom-20
= render 'shared/runners/form', runner: @runner, runner_form_url: admin_runner_path(@runner), in_admin_namespace: true = render 'shared/runners/form', runner: @runner, runner_form_url: admin_runner_path(@runner), in_gitlab_com_admin_context: Gitlab.com?
.row .row
.col-md-6 .col-md-6
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
.col-sm-10 .col-sm-10
= f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control' = f.text_field :tag_list, value: runner.tag_list.sort.join(', '), class: 'form-control'
.form-text.text-muted= _('You can set up jobs to only use Runners with specific tags. Separate tags with commas.') .form-text.text-muted= _('You can set up jobs to only use Runners with specific tags. Separate tags with commas.')
- if Gitlab.com? && local_assigns[:in_admin_namespace] - if local_assigns[:in_gitlab_com_admin_context]
.form-group.row .form-group.row
= label_tag :public_projects_minutes_cost_factor, class: 'col-form-label col-sm-2' do = label_tag :public_projects_minutes_cost_factor, class: 'col-form-label col-sm-2' do
= _('Public projects Minutes cost factor') = _('Public projects Minutes cost factor')
......
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