Commit cdcbc8d7 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent d611074e
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
= f.check_box :run_untagged = f.check_box :run_untagged
%span.light Indicates whether this runner can pick jobs without tags %span.light Indicates whether this runner can pick jobs without tags
.form-group .form-group
= label :locked, 'Lock to this project', class: 'control-label' = label :locked, 'Lock to current projects', class: 'control-label'
.col-sm-10 .col-sm-10
.checkbox .checkbox
= f.check_box :locked = f.check_box :locked
%span.light When a runner is locked, it cannot be enabled for other projects %span.light When a runner is locked, it cannot be assigned to other projects
.form-group .form-group
= label_tag :token, class: 'control-label' do = label_tag :token, class: 'control-label' do
Token Token
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
- if @project_runners.include?(runner) - if @project_runners.include?(runner)
= link_to runner.short_sha, runner_path(runner) = link_to runner.short_sha, runner_path(runner)
- if runner.locked? - if runner.locked?
= icon('lock', class: 'has-tooltip', title: 'Exclusive to this project') = icon('lock', class: 'has-tooltip', title: 'Locked to current projects')
%small %small
= link_to edit_namespace_project_runner_path(@project.namespace, @project, runner) do = link_to edit_namespace_project_runner_path(@project.namespace, @project, runner) do
%i.fa.fa-edit.btn %i.fa.fa-edit.btn
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
%td Can run untagged jobs %td Can run untagged jobs
%td= @runner.run_untagged? ? 'Yes' : 'No' %td= @runner.run_untagged? ? 'Yes' : 'No'
%tr %tr
%td Exclusive to this project %td Locked to this project
%td= @runner.locked? ? 'Yes' : 'No' %td= @runner.locked? ? 'Yes' : 'No'
%tr %tr
%td Tags %td Tags
......
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