From d7cd913881d615db9cb47d190cfbb4424c2854b3 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Tue, 6 Aug 2019 09:55:00 -0400 Subject: [PATCH 1/2] Remove list-style-type because it was causing the li to render without any height --- styles/components/_accordion_table.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/styles/components/_accordion_table.scss b/styles/components/_accordion_table.scss index fbc44cbe..d9e740af 100644 --- a/styles/components/_accordion_table.scss +++ b/styles/components/_accordion_table.scss @@ -46,7 +46,6 @@ margin: 0; li { - list-style-type: none; font-weight: $font-bold; border-bottom: 1px solid $color-gray-lightest; margin: 0; From 71e72bcbcfcec75cbeba567bc011dfa9cdc15d50 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Tue, 6 Aug 2019 10:19:54 -0400 Subject: [PATCH 2/2] If there are 0 envs, do not show the toggle arrow and disable the link --- templates/portfolios/applications/index.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/templates/portfolios/applications/index.html b/templates/portfolios/applications/index.html index 6683c83a..aa8740b7 100644 --- a/templates/portfolios/applications/index.html +++ b/templates/portfolios/applications/index.html @@ -55,15 +55,18 @@ {{ "portfolios.applications.team_text" | translate }} ({{ application.members | length }})
- + {% set has_environments = 0 < (application.environments|length) %} + Environments ({{ application.environments|length }}) - - {{ Icon('caret_up') }} - - - {{ Icon('caret_down') }} - -
+ {% if has_environments %} + + {{ Icon('caret_up') }} + + + {{ Icon('caret_down') }} + +
+ {% endif %}