summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-12-08 15:48:46 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-12-08 15:48:46 +0100
commitaba894b94fd0f602781d2438c5419cfa2aa0cfaa (patch)
tree5baf0ca1068b3b987ff677c0b89cf6e7eebac79f
parentdf84444b30cddfc073f69b128f74a50ddbc5d87c (diff)
downloadgitlab-ce-aba894b94fd0f602781d2438c5419cfa2aa0cfaa.tar.gz
Don't check if stage name doesn't exist
-rw-r--r--app/views/projects/stage/_graph.html.haml3
-rw-r--r--app/views/projects/stage/_stage.html.haml5
2 files changed, 3 insertions, 5 deletions
diff --git a/app/views/projects/stage/_graph.html.haml b/app/views/projects/stage/_graph.html.haml
index d8c87fae5a1..1d8fa10db0c 100644
--- a/app/views/projects/stage/_graph.html.haml
+++ b/app/views/projects/stage/_graph.html.haml
@@ -4,8 +4,7 @@
%li.stage-column
.stage-name
%a{ name: stage.name }
- - if stage.name
- = stage.name.titleize
+ = stage.name.titleize
.builds-container
%ul
- status_groups.each do |group_name, grouped_statuses|
diff --git a/app/views/projects/stage/_stage.html.haml b/app/views/projects/stage/_stage.html.haml
index 1eca375db3d..1684e02fbad 100644
--- a/app/views/projects/stage/_stage.html.haml
+++ b/app/views/projects/stage/_stage.html.haml
@@ -4,9 +4,8 @@
%a{ name: stage.name }
%span{class: "ci-status-link ci-status-icon-#{stage.status}"}
= ci_icon_for_status(stage.status)
- - if stage.name
- &nbsp;
- = stage.name.titleize
+ &nbsp;
+ = stage.name.titleize
= render stage.statuses.latest_ordered, coverage: @project.build_coverage_enabled?, stage: false, ref: false, pipeline_link: false, allow_retry: true
= render stage.statuses.retried_ordered, coverage: @project.build_coverage_enabled?, stage: false, ref: false, pipeline_link: false, retried: true
%tr