Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add breadcrumbs
Marek Brzóskab68475c349a0
diff --git a/cart/templates/cart/index.html b/cart/templates/cart/index.htmlindex 7fa374af88..981f6a19ad 100644--- a/cart/templates/cart/index.html+++ b/cart/templates/cart/index.html@@ -5,6 +5,13 @@{% block title %}{{ block.super }} » {% trans "Your cart" %}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'cart:index' %}">{% trans "Cart" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block content %}{% if cart %}<form action="." method="post">diff --git a/product/templates/product/details.html b/product/templates/product/details.htmlindex dd3e1b4bdb..8310a7e0c2 100644--- a/product/templates/product/details.html+++ b/product/templates/product/details.html@@ -4,6 +4,18 @@{% block title %}{{ block.super }} » {% trans "Product" %} » {{ product.name }}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'product:index' %}">{% trans "Products" %}</a>+ <span class="divider">/</span>+</li>+<li>+ <a href="{{ product.get_absolute_url }}">{{ product }}</a>+ <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block outercontent %}<div itemscope itemtype="http://schema.org/Product" class="row"><h1 itemprop="name">{{ product }}</h1>diff --git a/product/templates/product/index.html b/product/templates/product/index.htmlindex c1e1233a66..1e46c755e8 100644--- a/product/templates/product/index.html+++ b/product/templates/product/index.html@@ -3,6 +3,13 @@{% block title %}{{ block.super }} » {% trans "Products" %}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'product:index' %}">{% trans "Products" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block content %}<ul>{% for product in products %}diff --git a/registration/templates/registration/change_password.html b/registration/templates/registration/change_password.htmlindex 52057e87d6..f63ca770d2 100644--- a/registration/templates/registration/change_password.html+++ b/registration/templates/registration/change_password.html@@ -4,6 +4,16 @@{% block title %}{% trans "Change password" %}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a> <span class="divider">/</span>+</li>+<li>+ <a href="{% url 'registration:change_password' %}">{% trans "Change password" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block content %}<div><form method="POST">diff --git a/registration/templates/registration/request_email_confirmation.html b/registration/templates/registration/request_email_confirmation.htmlindex 860c343dca..9f41c42957 100644--- a/registration/templates/registration/request_email_confirmation.html+++ b/registration/templates/registration/request_email_confirmation.html@@ -4,6 +4,14 @@{% block title %}{{ block.super }} » {% trans "Request email confirmation" %}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ {# TODO: this serves for two view: email change and password reset/registration. Create new template to allow better breadcrumbs #}+ <a href=".">{% trans "Request email confirmation" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block content %}<div><form method='post'>diff --git a/saleor/templates/base.html b/saleor/templates/base.htmlindex 5da7df9d69..694fad16d9 100644--- a/saleor/templates/base.html+++ b/saleor/templates/base.html@@ -85,7 +85,7 @@<ul class="breadcrumb" itemprop="breadcrumb">{% block breadcrumb %}<li>- <a href="/">Home</a> <span class="divider">/</span>+ <a href="/">{% trans "Home" %}</a> <span class="divider">/</span></li>{% endblock breadcrumb %}</ul>diff --git a/userprofile/templates/userprofile/address-edit.html b/userprofile/templates/userprofile/address-edit.htmlindex 284cff56bb..a954a3872f 100644--- a/userprofile/templates/userprofile/address-edit.html+++ b/userprofile/templates/userprofile/address-edit.html@@ -3,6 +3,16 @@{% block title %}{{ block.super }} » {% trans "Edit Address" %}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a> <span class="divider">/</span>+</li>+<li>+ <a href=".">{% trans "Edit address" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block content %}<form action="." method="post">{% csrf_token %}diff --git a/userprofile/templates/userprofile/details.html b/userprofile/templates/userprofile/details.htmlindex de1d7290c4..01ed1cd2e7 100644--- a/userprofile/templates/userprofile/details.html+++ b/userprofile/templates/userprofile/details.html@@ -3,6 +3,13 @@{% block title %}{{ block.super }} » {% trans "User profile" %}{% endblock %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}+{% block content %}<ul>{% for entry in address_book %}diff --git a/userprofile/templates/userprofile/orders.html b/userprofile/templates/userprofile/orders.htmlindex a06d0622d5..f17e32ad9d 100644--- a/userprofile/templates/userprofile/orders.html+++ b/userprofile/templates/userprofile/orders.html@@ -2,6 +2,15 @@{% load i18n %}{% load gross from prices %}+{% block breadcrumb %}+ {{ block.super }}+<li>+ <a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a> <span class="divider">/</span>+</li>+<li>+ <a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a> <span class="divider">/</span>+</li>+{% endblock breadcrumb %}{% block content %}<table class="table">