diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index b769161e058..952110744d4 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -157,17 +157,17 @@
  • Available - + + {{state.availableCounter}} +
  • Stopped - + + {{state.stoppedCounter}} +
  • @@ -183,8 +183,7 @@ -

    You don't have any environments right now. @@ -205,8 +204,7 @@

    -
    diff --git a/app/assets/javascripts/environments/components/environment_actions.js.es6 b/app/assets/javascripts/environments/components/environment_actions.js.es6 index edd39c02a46..d149a446e0b 100644 --- a/app/assets/javascripts/environments/components/environment_actions.js.es6 +++ b/app/assets/javascripts/environments/components/environment_actions.js.es6 @@ -43,8 +43,7 @@
    @@ -451,8 +453,8 @@ diff --git a/app/assets/javascripts/environments/components/environment_stop.js.es6 b/app/assets/javascripts/environments/components/environment_stop.js.es6 index 2c732e50180..e6d66a0148c 100644 --- a/app/assets/javascripts/environments/components/environment_stop.js.es6 +++ b/app/assets/javascripts/environments/components/environment_stop.js.es6 @@ -14,8 +14,7 @@ }, template: ` - + :href="ref.ref_url"> + {{ref.name}} -
    -
    +
    + :href="commit_url"> + {{short_sha}}

    @@ -156,14 +155,15 @@ class="avatar-image-container" :href="author.web_url"> + :href="commit_url"> + {{title}} diff --git a/spec/javascripts/environments/environment_item_spec.js.es6 b/spec/javascripts/environments/environment_item_spec.js.es6 index 54c93367b17..3c15e3b7719 100644 --- a/spec/javascripts/environments/environment_item_spec.js.es6 +++ b/spec/javascripts/environments/environment_item_spec.js.es6 @@ -135,7 +135,7 @@ describe('Environment item', () => { }); it('should render environment name', () => { - expect(component.$el.querySelector('.environment-name').textContent).toEqual(environment.name); + expect(component.$el.querySelector('.environment-name').textContent).toContain(environment.name); }); describe('With deployment', () => {

    - + :href="model.environment_path"> + {{model.name}} @@ -401,16 +400,19 @@ - + + {{model.name}} + - + + {{childrenCounter}} + - + + {{deploymentInternalId}} @@ -427,8 +429,8 @@ + :href="model.last_deployment.deployable.build_path"> + {{buildName}} + class="environment-created-date-timeago"> + {{createdDate}}