diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-07-10 11:46:53 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-07-10 11:47:01 +0200 |
commit | aa372a2a5e9b0ac28db91e8c6f5edcba80b487d0 (patch) | |
tree | cd23ea3d08c95abc06f62173f9cb9fbf0937fee9 | |
parent | 0261c8f1672d75ec5aaf3108476e655cdd93ad3b (diff) | |
download | gitlab-ci-runner-link.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
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | app/views/runners/_runner.html.haml | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -12,6 +12,7 @@ v7.13.0 - Allow to specify allow_failure for job - Build traces is stored in the file instead of database - Make the builds path configurable + - Disable link to runner if it's not assigned to specific project v7.12.2 - Revert: Runner without tag should pick builds without tag only 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) |