summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-07-10 11:46:53 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-07-10 11:47:01 +0200
commitaa372a2a5e9b0ac28db91e8c6f5edcba80b487d0 (patch)
treecd23ea3d08c95abc06f62173f9cb9fbf0937fee9 /app
parent0261c8f1672d75ec5aaf3108476e655cdd93ad3b (diff)
downloadgitlab-ci-aa372a2a5e9b0ac28db91e8c6f5edcba80b487d0.tar.gz
Disable link to runner if it's not assigned to specific project: fixes 404 when clicking on available runner from project's pagerunner-link
Diffstat (limited to 'app')
-rw-r--r--app/views/runners/_runner.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/runners/_runner.html.haml b/app/views/runners/_runner.html.haml
index 1d88d69..02424f5 100644
--- a/app/views/runners/_runner.html.haml
+++ b/app/views/runners/_runner.html.haml
@@ -2,11 +2,13 @@
%h4
= runner_status_icon(runner)
%span.monospace
- = link_to runner.short_sha, [@project, runner]
- if @runners.include?(runner)
+ = link_to runner.short_sha, [@project, runner]
%small
=link_to edit_project_runner_path(@project, runner) do
%i.fa.icon-edit.btn
+ - else
+ = runner.short_sha
.pull-right
- if @runners.include?(runner)