From a24c9adc2048bd3bf44dc92f1390b9b8bebb3782 Mon Sep 17 00:00:00 2001 From: cueedee Date: Tue, 17 Oct 2017 17:30:41 +0200 Subject: [PATCH] feat(generators/app/templates): add revision (commit) to environment ribbon --- .../src/sass/views/_debug.environment-ribbon.sass | 11 +++++++++++ .../templates/src/views/debug.environment-ribbon.hbs | 2 ++ 2 files changed, 13 insertions(+) diff --git a/generators/app/templates/src/sass/views/_debug.environment-ribbon.sass b/generators/app/templates/src/sass/views/_debug.environment-ribbon.sass index 1c5966c1..f6800372 100644 --- a/generators/app/templates/src/sass/views/_debug.environment-ribbon.sass +++ b/generators/app/templates/src/sass/views/_debug.environment-ribbon.sass @@ -72,6 +72,17 @@ $testing_gradientLow: #ABA02C margin-top: 2px + + .build-revision + + display: inline-block + margin-left: 18% + width: 7.5em + overflow: hidden + white-space: nowrap + text-overflow: ellipsis + + +ribbon-colors( $default_textColor, $default_gradientHigh, $default_gradientLow ) &.env-acceptance diff --git a/generators/app/templates/src/views/debug.environment-ribbon.hbs b/generators/app/templates/src/views/debug.environment-ribbon.hbs index 68ef19ce..cead68c8 100644 --- a/generators/app/templates/src/views/debug.environment-ribbon.hbs +++ b/generators/app/templates/src/views/debug.environment-ribbon.hbs @@ -1,4 +1,6 @@
+ {{buildBrief.revision}} +
{{#if buildBrief.buildNumber}}{{buildBrief.buildNumber}} / {{/if}} {{moment buildBrief.timestamp "MMM DD HH:mm"}}
{{settings.environment}}