From 609223f8d9430a7225ab10881cd7be91dd4bb863 Mon Sep 17 00:00:00 2001 From: duker33 Date: Thu, 2 May 2019 15:24:35 +0300 Subject: [PATCH] #838 Fix breadcrumbs microdata urls (#839) * #838 Fix breadcrumbs microdata urls * #838 Fix crumbs list * #fix Grade refarm dep to 0.5.11 * #838 Preserve crumbs classes to keep tests --- requirements.txt | 2 +- templates/catalog/catalog.html | 2 +- templates/catalog/category.html | 2 +- templates/catalog/product.html | 2 +- templates/pages/breadcrumbs.html | 25 ++++++----- .../pages/breadcrumbs_with_siblings.html | 42 +++++++++---------- 6 files changed, 37 insertions(+), 38 deletions(-) diff --git a/requirements.txt b/requirements.txt index 42c63ef4..e4f40fbf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,4 +25,4 @@ sorl-thumbnail==12.5.0 python-telegram-bot==11.1.0 sentry-sdk==0.7.2 https://github.com/selwin/django-user_agents/archive/master.zip -https://github.com/fidals/refarm-site/archive/0.5.10.zip +https://github.com/fidals/refarm-site/archive/0.5.11.zip diff --git a/templates/catalog/catalog.html b/templates/catalog/catalog.html index 86e20c5f..00224611 100644 --- a/templates/catalog/catalog.html +++ b/templates/catalog/catalog.html @@ -4,7 +4,7 @@ {% load pages_extras %} {% block content %} - {% breadcrumbs_with_siblings page %} + {% breadcrumbs_with_siblings page '' BASE_URL %}

{{ page.display.h1 }}

diff --git a/templates/catalog/category.html b/templates/catalog/category.html index abf4dac8..a1a94c9f 100644 --- a/templates/catalog/category.html +++ b/templates/catalog/category.html @@ -4,7 +4,7 @@ {% load se_extras %} {% block content %} - {% breadcrumbs_with_siblings page %} + {% breadcrumbs_with_siblings page '' BASE_URL %}

{{ page.display.h1|capfirst }}

diff --git a/templates/catalog/product.html b/templates/catalog/product.html index c5c3f37a..47153df0 100644 --- a/templates/catalog/product.html +++ b/templates/catalog/product.html @@ -21,7 +21,7 @@ href="https://schema.org/{{ product.in_stock | yesno:'InStock,PreOrder' }}">
- {% breadcrumbs_with_siblings page %} + {% breadcrumbs_with_siblings page '' BASE_URL %}

{{ product.page.display.h1 }}

Арт. {{ product.vendor_code }} diff --git a/templates/pages/breadcrumbs.html b/templates/pages/breadcrumbs.html index 82d5ae5f..ea5eb5b3 100644 --- a/templates/pages/breadcrumbs.html +++ b/templates/pages/breadcrumbs.html @@ -2,20 +2,19 @@ diff --git a/templates/pages/breadcrumbs_with_siblings.html b/templates/pages/breadcrumbs_with_siblings.html index e6fbcf84..d42fe76e 100644 --- a/templates/pages/breadcrumbs_with_siblings.html +++ b/templates/pages/breadcrumbs_with_siblings.html @@ -2,33 +2,33 @@