diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 11:02:51 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-03 11:23:53 +0200 |
commit | dc439a3b42d6d376ca0b0853b0aab3b401922e5f (patch) | |
tree | c6b71e2c3dc7c427bd6e80b2c8f4ebf5295ec7b5 /app/views/projects | |
parent | 49cbe576229b7e4003575e04006cc4132c3c0060 (diff) | |
download | gitlab-ce-dc439a3b42d6d376ca0b0853b0aab3b401922e5f.tar.gz |
Add comment in _runner.html.haml about hacky runner type check
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/runners/_runner.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/runners/_runner.html.haml b/app/views/projects/runners/_runner.html.haml index 385e2f8d1c2..0d2c0536eb5 100644 --- a/app/views/projects/runners/_runner.html.haml +++ b/app/views/projects/runners/_runner.html.haml @@ -26,7 +26,7 @@ - else - runner_project = @project.runner_projects.find_by(runner_id: runner) = link_to 'Disable for this project', project_runner_project_path(@project, runner_project), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm' - - elsif !(runner.is_shared? || runner.group_type?) + - elsif !(runner.is_shared? || runner.group_type?) # We can simplify this to `runner.project_type?` when migrating #runner_type is complete = form_for [@project.namespace.becomes(Namespace), @project, @project.runner_projects.new] do |f| = f.hidden_field :runner_id, value: runner.id = f.submit 'Enable for this project', class: 'btn btn-sm' |