diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-07 19:30:14 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-07 19:30:14 +0100 |
commit | 8842f55201ae4725b307336686f8ab168fa0effb (patch) | |
tree | 9fd3079231ad2258374e54e6ff26168e5809be43 /app/views/projects/stage | |
parent | 93c72e0f71919968972e874519e01370edcce022 (diff) | |
download | gitlab-ce-8842f55201ae4725b307336686f8ab168fa0effb.tar.gz |
Code review
Diffstat (limited to 'app/views/projects/stage')
-rw-r--r-- | app/views/projects/stage/_graph.html.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/projects/stage/_graph.html.haml b/app/views/projects/stage/_graph.html.haml index f1d11db58ab..d8c87fae5a1 100644 --- a/app/views/projects/stage/_graph.html.haml +++ b/app/views/projects/stage/_graph.html.haml @@ -1,12 +1,13 @@ +- stage = local_assigns.fetch(:stage) +- statuses = stage.statuses.latest +- status_groups = statuses.sort_by(&:name).group_by(&:group_name) %li.stage-column .stage-name - %a{ name: subject.name } - - if subject.name - = subject.name.titleize + %a{ name: stage.name } + - if stage.name + = stage.name.titleize .builds-container %ul - - statuses = subject.statuses.latest - - status_groups = statuses.sort_by(&:name).group_by(&:group_name) - status_groups.each do |group_name, grouped_statuses| - if grouped_statuses.one? - status = grouped_statuses.first |