Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve titles

Michal Ociepka49728d7eff29
diff --git a/cart/templates/cart/index.html b/cart/templates/cart/index.html
index 6df859cf59..7fa374af88 100644
--- a/cart/templates/cart/index.html
+++ b/cart/templates/cart/index.html
@@ -3,7 +3,7 @@
{% load gross from prices %}
{% load i18n %}
-{% block title %}{% trans "Your cart" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Your cart" %}{% endblock %}
{% block content %}
{% if cart %}
diff --git a/checkout/templates/checkout/address.html b/checkout/templates/checkout/address.html
index d78babdf0f..d2f0cec13a 100644
--- a/checkout/templates/checkout/address.html
+++ b/checkout/templates/checkout/address.html
@@ -2,9 +2,7 @@
{% load as_bootstrap from bootstrap %}
{% load i18n %}
-{% block title %}
-{{ block.super }} » {% trans "Billing Address" %}
-{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Billing Address" %}{% endblock %}
{% block forms %}
<form method="post" class="form-horizontal">
diff --git a/checkout/templates/checkout/details.html b/checkout/templates/checkout/details.html
index ef23b21d16..c0e9ba9672 100644
--- a/checkout/templates/checkout/details.html
+++ b/checkout/templates/checkout/details.html
@@ -2,7 +2,9 @@
{% load as_bootstrap from bootstrap %}
{% load i18n %}
-{% block title %}{% trans "Checkout" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Checkout" %}{% endblock %}
+
+{% block outerbreadcrumb %}{% endblock %}
{% block content %}
<ul class="nav nav-tabs">
diff --git a/checkout/templates/checkout/digitaldelivery.html b/checkout/templates/checkout/digitaldelivery.html
index c6be480e78..de71e6c1a4 100644
--- a/checkout/templates/checkout/digitaldelivery.html
+++ b/checkout/templates/checkout/digitaldelivery.html
@@ -1,7 +1,9 @@
{% extends "checkout/details.html" %}
-
+{% load i18n %}
{% load as_bootstrap from bootstrap %}
+{% block title %}{{ block.super }} » {% trans "Digital delivery" %}{% endblock %}
+
{% block forms %}
<form method="post" class="form-horizontal">
{% csrf_token %}
diff --git a/checkout/templates/checkout/shipping.html b/checkout/templates/checkout/shipping.html
index b52759fb23..3f0cfaac45 100644
--- a/checkout/templates/checkout/shipping.html
+++ b/checkout/templates/checkout/shipping.html
@@ -2,9 +2,7 @@
{% load as_bootstrap from bootstrap %}
{% load i18n %}
-{% block title %}
-{% trans "Checkout" %} » {% trans "Shipping" %}
-{% endblock %}
+{% block title %}{% trans "Checkout" %} » {% trans "Shipping" %}{% endblock %}
{% block extra_forms %}
<fieldset>
diff --git a/checkout/templates/checkout/summary.html b/checkout/templates/checkout/summary.html
index d466106a3e..589e9c8a9e 100644
--- a/checkout/templates/checkout/summary.html
+++ b/checkout/templates/checkout/summary.html
@@ -3,10 +3,7 @@
{% load gross from prices %}
{% load i18n %}
-{% block title %}
-{{ block.super }} » {% trans "Shipping" %}
-{% endblock %}
-
+{% block title %}{{ block.super }} » {% trans "Summary" %}{% endblock %}
{% block forms %}
<h2>Billing address</h2>
diff --git a/order/templates/order/success.html b/order/templates/order/success.html
index ac9027d46e..d3f4ca9fad 100644
--- a/order/templates/order/success.html
+++ b/order/templates/order/success.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "Order received!" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Order received!" %}{% endblock %}
{% block content %}
<h2>Your order has been received</h2>
diff --git a/payment/templates/payment/default.html b/payment/templates/payment/default.html
index da2230bf09..0f07d8b068 100644
--- a/payment/templates/payment/default.html
+++ b/payment/templates/payment/default.html
@@ -2,9 +2,7 @@
{% load as_bootstrap from bootstrap %}
{% load i18n %}
-{% block title %}
-{{ block.super }} » {% trans "Default" %}
-{% endblock %}
+{% block title %}{{ block.super }} » {{ payment.variant|title }}{% endblock %}
{% block forms %}
<form method="{{ form.method }}" class="form-horizontal"{% if form.action %} action="{{ form.action }}"{% endif %}>
diff --git a/payment/templates/payment/details.html b/payment/templates/payment/details.html
index 42fc9d682e..a443079dea 100644
--- a/payment/templates/payment/details.html
+++ b/payment/templates/payment/details.html
@@ -2,7 +2,7 @@
{% load as_bootstrap from bootstrap %}
{% load i18n %}
-{% block title %}{% trans "Payment" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Payment" %}{% endblock %}
{% block content %}
<h2>Payment</h2>
diff --git a/payment/templates/payment/index.html b/payment/templates/payment/index.html
index b7735683e9..69b1ef6f0a 100644
--- a/payment/templates/payment/index.html
+++ b/payment/templates/payment/index.html
@@ -3,9 +3,7 @@
{% load gross from prices %}
{% load i18n %}
-{% block title %}
-{{ block.super }} » {% trans "Method" %}
-{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Select method" %}{% endblock %}
{% block forms %}
{% if waiting_payment %}
diff --git a/payment/templates/payment/paypal-card.html b/payment/templates/payment/paypal-card.html
index 1abd2fe6c7..291307aa04 100644
--- a/payment/templates/payment/paypal-card.html
+++ b/payment/templates/payment/paypal-card.html
@@ -2,6 +2,9 @@
{% load as_bootstrap from bootstrap %}
{% load gross from prices %}
+{% load i18n %}
+
+{% block title %}{{ block.super }} » {% trans "Paypal card" %}{% endblock %}
{% block forms %}
<form method="post" class="form-horizontal">
diff --git a/product/templates/product/details.html b/product/templates/product/details.html
index 495fad4a2e..dd3e1b4bdb 100644
--- a/product/templates/product/details.html
+++ b/product/templates/product/details.html
@@ -2,7 +2,7 @@
{% load gross from prices %}
{% load i18n %}
-{% block title %}{% trans "Product" %} » {{ product.name }}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Product" %} » {{ product.name }}{% endblock %}
{% block outercontent %}
<div itemscope itemtype="http://schema.org/Product" class="row">
diff --git a/product/templates/product/index.html b/product/templates/product/index.html
index 0363c14767..c1e1233a66 100644
--- a/product/templates/product/index.html
+++ b/product/templates/product/index.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "Products" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Products" %}{% endblock %}
{% block content %}
<ul>
diff --git a/registration/templates/registration/invalid_token.html b/registration/templates/registration/invalid_token.html
index 7261a2b5cd..04f76c4e9f 100644
--- a/registration/templates/registration/invalid_token.html
+++ b/registration/templates/registration/invalid_token.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "Invalid token" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Invalid token" %}{% endblock %}
{% block content %}
<div>
diff --git a/registration/templates/registration/login.html b/registration/templates/registration/login.html
index 7ef2985d40..b40efb925b 100644
--- a/registration/templates/registration/login.html
+++ b/registration/templates/registration/login.html
@@ -2,7 +2,7 @@
{% load bootstrap %}
{% load i18n %}
-{% block title %}{% trans "Login" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Login" %}{% endblock %}
{% block content %}
<form method="post" action="{% url 'registration:login' %}">
diff --git a/registration/templates/registration/logout.html b/registration/templates/registration/logout.html
index 26272e0a56..27450c0103 100644
--- a/registration/templates/registration/logout.html
+++ b/registration/templates/registration/logout.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "Logged out" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Logged out" %}{% endblock %}
{% block content %}
Successfully logged out!
diff --git a/registration/templates/registration/request_email_confirmation.html b/registration/templates/registration/request_email_confirmation.html
index 008f6b9a2e..860c343dca 100644
--- a/registration/templates/registration/request_email_confirmation.html
+++ b/registration/templates/registration/request_email_confirmation.html
@@ -2,7 +2,7 @@
{% load bootstrap %}
{% load i18n %}
-{% block title %}{% trans "Request email confirmation" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Request email confirmation" %}{% endblock %}
{% block content %}
<div>
diff --git a/registration/templates/registration/select_email.html b/registration/templates/registration/select_email.html
deleted file mode 100644
index b1372a9e76..0000000000
--- a/registration/templates/registration/select_email.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{% endblock %}
-
-{% block content %}
- <div>
- <h3>
- Use this email as your identifier:
- </h3>
- <form method="post" action="{% url 'registration:select_email' %}">
- {% csrf_token %}
- {{ form }}
- <input type="submit" value="OK">
- </form>
- </div>
-{% endblock %}
-
diff --git a/registration/templates/registration/set_password.html b/registration/templates/registration/set_password.html
index 5ff30c1833..0fb15364db 100644
--- a/registration/templates/registration/set_password.html
+++ b/registration/templates/registration/set_password.html
@@ -2,16 +2,16 @@
{% load bootstrap %}
{% load i18n %}
-{% block title %}{% trans "Set password" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Set password" %}{% endblock %}
{% block content %}
<div>
- <form method="POST">
+ <form method="post">
{% csrf_token %}
{{ form|as_bootstrap }}
<input type="submit" value="Set password">
</form>
- <form method="POST">
+ <form method="post">
{% csrf_token %}
<input type="submit" value="I don't want a password">
</form>
diff --git a/saleor/templates/base.html b/saleor/templates/base.html
index fd14f51996..a6cf4dde7e 100644
--- a/saleor/templates/base.html
+++ b/saleor/templates/base.html
@@ -79,11 +79,15 @@
{% endif %}
<div class="container">
<div class="row">
+ {% block outerbreadcrumb %}
<ul class="breadcrumb" itemprop="breadcrumb">
+ {% block breadcrumb %}
<li>
<a href="/">Home</a> <span class="divider">/</span>
</li>
+ {% endblock breadcrumb %}
</ul>
+ {% endblock outerbreadcrumb %}
</div>
{% block outercontent %}
<div class="row">
diff --git a/userprofile/templates/userprofile/address-delete.html b/userprofile/templates/userprofile/address-delete.html
index 09b0926628..3d1d251e6d 100644
--- a/userprofile/templates/userprofile/address-delete.html
+++ b/userprofile/templates/userprofile/address-delete.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "Delete Address" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Delete Address" %}{% endblock %}
{% block content %}
<div>
diff --git a/userprofile/templates/userprofile/address-edit.html b/userprofile/templates/userprofile/address-edit.html
index 575ab4a71f..284cff56bb 100644
--- a/userprofile/templates/userprofile/address-edit.html
+++ b/userprofile/templates/userprofile/address-edit.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "Edit Address" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "Edit Address" %}{% endblock %}
{% block content %}
<form action="." method="post">
diff --git a/userprofile/templates/userprofile/details.html b/userprofile/templates/userprofile/details.html
index b11d32efa3..b542c9526c 100644
--- a/userprofile/templates/userprofile/details.html
+++ b/userprofile/templates/userprofile/details.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
-{% block title %}{% trans "User profile" %}{% endblock %}
+{% block title %}{{ block.super }} » {% trans "User profile" %}{% endblock %}
{% block content %}
<ul>