From a4b3f7d3c33deedd594caf6c90eeadcfbabc8cf4 Mon Sep 17 00:00:00 2001 From: Daniel Miranda Date: Wed, 22 Sep 2021 12:44:11 -0700 Subject: [PATCH] added new section dividers for news and related products --- .../templates/buyersguide/product_page.html | 18 +++++------------- source/sass/buyers-guide/views/product.scss | 6 ++++++ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html b/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html index f34234aaac2..4c43c7d728f 100644 --- a/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html +++ b/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html @@ -260,17 +260,8 @@

{% trans "Artificial Intelligence" %}

{% endif %} - - - - - -
-
-
-
-
- {% if product.updates.count > 0 %} + {% if product.updates.count > 0 %} +

{% trans "News" %}

{% endif %} {% if product.updates.count > 0 %} @@ -285,8 +276,9 @@

{% trans "News" %}

{% endwith %} {% endfor %}
- {% endif %} - + {% endif %} + +

{% trans "Related products" %}

{% for related_product_page in product.related_product_pages.all %} diff --git a/source/sass/buyers-guide/views/product.scss b/source/sass/buyers-guide/views/product.scss index be5c5d5a99d..64a9f2d198d 100644 --- a/source/sass/buyers-guide/views/product.scss +++ b/source/sass/buyers-guide/views/product.scss @@ -475,3 +475,9 @@ min-width: 290px; background: $pni-product-image-background; } + +.pni-section-divider { + border-width: 4px; + border-color: $black; + padding-bottom: 1em; +}