Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-04-10 04:28:21 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-07 09:54:07 +0300
commit1ef9e9c2aaaffb202f09bf6a245a01bfb5516b6e (patch)
tree5df5d0aa0a1789ee035d87f14663d2e5c32c19bc /app/views/projects/runners/_runner.html.haml
parent2135949eb55c214828e34384c234b6256b9981ea (diff)
Inline runner_path and runners_path helpers
These were just shorthands for project_... and they will be confusing when introducing group runners so we should not have them (#10244)
Diffstat (limited to 'app/views/projects/runners/_runner.html.haml')
-rw-r--r--app/views/projects/runners/_runner.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/runners/_runner.html.haml b/app/views/projects/runners/_runner.html.haml
index 0d2c0536eb5..894e7d72ce0 100644
--- a/app/views/projects/runners/_runner.html.haml
+++ b/app/views/projects/runners/_runner.html.haml
@@ -3,7 +3,7 @@
= runner_status_icon(runner)
- if @project_runners.include?(runner)
- = link_to runner.short_sha, runner_path(runner), class: 'commit-sha'
+ = link_to runner.short_sha, project_runner_path(@project, runner), class: 'commit-sha'
- if runner.locked?
= icon('lock', class: 'has-tooltip', title: 'Locked to current projects')
@@ -22,7 +22,7 @@
- else
= link_to 'Resume', resume_project_runner_path(@project, runner), method: :post, class: 'btn btn-success btn-sm'
- if runner.belongs_to_one_project?
- = link_to 'Remove Runner', runner_path(runner), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
+ = link_to 'Remove Runner', project_runner_path(@project, runner), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
- 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'