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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-03-14 15:33:26 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-03-14 15:33:26 +0300
commit16592e2b45d42e22f9d1d595a1f44821c7b30441 (patch)
treea68e4f955de0564f1068f30a33d141acf04181bb /app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
parentf32e28f6faab176845a780d5b4d26881c08bcfec (diff)
Fix review comments
- Remove unused Gitlab::Application.routes.url_helpers from Ci::Build - Remove too much logic from a view, use Ci::Commit.matrix_builds - Use ci_status_with_icon - Don't describe symbols
Diffstat (limited to 'app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml')
-rw-r--r--app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
index ac29f323b4c..4143ea13063 100644
--- a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
+++ b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
@@ -2,8 +2,7 @@
%td.status
- if can?(current_user, :read_commit_status, generic_commit_status) && generic_commit_status.target_url
= link_to generic_commit_status.target_url, class: "ci-status ci-#{generic_commit_status.status}" do
- = ci_icon_for_status(generic_commit_status.status)
- = generic_commit_status.status
+ = ci_status_with_icon(generic_commit_status.status)
- else
= ci_status_with_icon(generic_commit_status.status)