From cdafef9be0c375ce7f59fac383ff390819728d8f Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Thu, 17 Nov 2016 16:18:24 -0500 Subject: Update ItemBuildComponent html structure --- .../components/item_build_component.js.es6 | 40 ++++++++++++++++--- .../components/item_issue_component.js.es6 | 2 +- app/assets/stylesheets/pages/cycle_analytics.scss | 45 +++++++++++++++++++++- 3 files changed, 79 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/cycle_analytics/components/item_build_component.js.es6 b/app/assets/javascripts/cycle_analytics/components/item_build_component.js.es6 index 5f8ff683860..c08a94b4521 100644 --- a/app/assets/javascripts/cycle_analytics/components/item_build_component.js.es6 +++ b/app/assets/javascripts/cycle_analytics/components/item_build_component.js.es6 @@ -20,14 +20,42 @@ build: Object, }, template: ` -
-

-

- - {{ build.title }} + `, }); diff --git a/app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6 b/app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6 index 5bacdb93226..e02ad1419a9 100644 --- a/app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6 +++ b/app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6 @@ -23,7 +23,7 @@
- + {{ issue.title }}
diff --git a/app/assets/stylesheets/pages/cycle_analytics.scss b/app/assets/stylesheets/pages/cycle_analytics.scss index 02262b1c613..3bedb16cc56 100644 --- a/app/assets/stylesheets/pages/cycle_analytics.scss +++ b/app/assets/stylesheets/pages/cycle_analytics.scss @@ -295,7 +295,7 @@ .item-title { margin: 0 0 2px 0; - a { + .issue-title { color: $gl-dark-link-color; max-width: 100%; display: block; @@ -342,6 +342,49 @@ } } } + + // Custom Styles for stage items + .item-build-component { + + .item-title { + .icon-build-status { + float: left; + margin-right: 5px; + } + + .item-build-name { + color: $gl-title-color; + } + + .pipeline-id { + color: $gl-title-color; + padding: 0 3px 0 0; + } + + .branch-name { + color: $black; + display: inline-block; + max-width: 180px; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + line-height: 1.3; + vertical-align: top; + } + + .short-sha { + color: $gl-link-color; + line-height: 1.3; + vertical-align: top; + font-weight: normal; + } + + .fa { + color: $gl-text-color-light; + font-size: $code_font_size; + } + } + } .empty-stage { text-align: center; -- cgit v1.2.1