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:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-09-12 13:19:20 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-10 18:48:50 +0300
commitcc8ad60fc42e9a115da63f0e0eca71c4b2567c35 (patch)
treeca2ade4dee2f9601de992a47c8e2a66235c113f2 /app/assets/javascripts
parent4c8ea149edff0f03390db7f287753fc6c23fb75a (diff)
Update pipeline graph styles to match mockup
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/pipeline.js.es69
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/pipeline.js.es6 b/app/assets/javascripts/pipeline.js.es6
index 8813bb5dfef..d3ed9757afe 100644
--- a/app/assets/javascripts/pipeline.js.es6
+++ b/app/assets/javascripts/pipeline.js.es6
@@ -1,4 +1,12 @@
(function() {
+
+ function addMarginToBuild () {
+ const $secondChild = $('.build:nth-child(2)');
+ if ($secondChild.length) {
+ $secondChild.closest('.stage-column').addClass('left-margin');
+ }
+ }
+
function toggleGraph() {
const $pipelineBtn = $(this).closest('.toggle-pipeline-btn');
const $pipelineGraph = $(this).closest('.row-content-block').next('.pipeline-graph');
@@ -21,4 +29,5 @@
}
$(document).on('click', '.toggle-pipeline-btn', toggleGraph);
+ $(document).on('ready', addMarginToBuild);
})();