|
- Пользователь {{ order.user.profile.full_name|default_if_none:order.user.username }} сделал вам заказ
+
+ Пользователь
+ {{ order.user.profile.full_name|default_if_none:order.user.username }}
+ сделал вам заказ
+
Заказ № {{ order.order_code }}
@@ -14,17 +18,19 @@
|
+ {% if order.comment %}
+ Комментарий: {{ order.comment }}
+ {% endif %}
С уважением, Администрация сайта {{ site.name }}
|
diff --git a/templates/emails/txt/admin_order_request.txt b/templates/emails/txt/admin_order_request.txt
index 50447c6..84d847f 100644
--- a/templates/emails/txt/admin_order_request.txt
+++ b/templates/emails/txt/admin_order_request.txt
@@ -1,17 +1,17 @@
=====================================================================
- Запрос на обратную связь от пользователя
+ Вам пришел заказ
=====================================================================
----------------------------------------------------------------------
-Пользователь {{ name }} отправил вам запрос по продукту {{ subject }}.
+Пользователь {{ order.user.profile.full_name|default_if_none:order.user.username }} сделал вам заказ.\n
-Чтобы связаяться для уточнения информации.
-Используйте следующий почтовый ящик {{ email }} для ответа.
+Заказ № {{ order.order_code }}.\n
-{% if phone %}
- Либо используйте мобильный номер телефона {{ phone }} .
-{% endif %}
+{% for buying in order.buyings_set %}
+ Товар: {{ buying.offer.product.name }}\n
+ Колличество: {{ buying.amount }}.\n
+{% endfor %}
----------------------------------------------------------------------
diff --git a/templates/pinax/blog/blog_list.html b/templates/pinax/blog/blog_list.html
index 21f5da2..0c150a6 100644
--- a/templates/pinax/blog/blog_list.html
+++ b/templates/pinax/blog/blog_list.html
@@ -1 +1,30 @@
-{% extends 'base.html' %}
+{% extends 'common_news.html' %}
+{% load static %}
+
+{% block news_content %}
+ {{ "Новости" }}
+
+
+ {% for news in object_list %}
+
+
+ {% if news.image_set.primary_image %}
+
+ {% endif %}
+
+
+
+
+ {{ news.teaser_html|safe }}
+
+
+
+
+
+ {% endfor %}
+
+{% endblock news_content %}
diff --git a/templates/pinax/blog/blog_post.html b/templates/pinax/blog/blog_post.html
index 63f5b1e..fdc7091 100644
--- a/templates/pinax/blog/blog_post.html
+++ b/templates/pinax/blog/blog_post.html
@@ -1,172 +1,19 @@
-{% extends 'base.html' %}
+{% extends 'common_news.html' %}
{% block content %}
- Новости
+ {{ object.title }}
-
-
-
-
-
- It is a long established fact that a reader will be distracted by the
- readable
- content of a page when looking at its layout. The point of using Lorem
- Ipsum is
- that
- it has a more-or-less normal distribution of letters, as opposed to
- using
- 'Content
- here, content here', making it look like readable English. Many desktop
- publishing
- packages and web page editors now use Lorem Ipsum as their default model
- text,
- and a
- search for 'lorem ipsum' will uncover many web sites still in their
- infancy.
- Various
- versions have evolved over the years, sometimes by accident, sometimes
- on
- purpose
- (injected humour and the like).
-
-
-
-
-
-
-
-
-
-
-
-
- It is a long established fact that a reader will be distracted by the
- readable
- content of a page when looking at its layout. The point of using Lorem
- Ipsum is
- that
- it has a more-or-less normal distribution of letters, as opposed to
- using
- 'Content
- here, content here', making it look like readable English. Many desktop
- publishing
- packages and web page editors now use Lorem Ipsum as their default model
- text,
- and a
- search for 'lorem ipsum' will uncover many web sites still in their
- infancy.
- Various
- versions have evolved over the years, sometimes by accident, sometimes
- on
- purpose
- (injected humour and the like).
-
-
-
-
-
-
-
-
-
-
-
-
- It is a long established fact that a reader will be distracted by the
- readable
- content of a page when looking at its layout. The point of using Lorem
- Ipsum is
- that
- it has a more-or-less normal distribution of letters, as opposed to
- using
- 'Content
- here, content here', making it look like readable English. Many desktop
- publishing
- packages and web page editors now use Lorem Ipsum as their default model
- text,
- and a
- search for 'lorem ipsum' will uncover many web sites still in their
- infancy.
- Various
- versions have evolved over the years, sometimes by accident, sometimes
- on
- purpose
- (injected humour and the like).
-
-
-
-
-
-
-
-
-
-
-
-
- It is a long established fact that a reader will be distracted by the
- readable
- content of a page when looking at its layout. The point of using Lorem
- Ipsum is
- that
- it has a more-or-less normal distribution of letters, as opposed to
- using
- 'Content
- here, content here', making it look like readable English. Many desktop
- publishing
- packages and web page editors now use Lorem Ipsum as their default model
- text,
- and a
- search for 'lorem ipsum' will uncover many web sites still in their
- infancy.
- Various
- versions have evolved over the years, sometimes by accident, sometimes
- on
- purpose
- (injected humour and the like).
-
+ {% if object.image_set.primary_image %}
+
-
-
-
-
-
-
+ {% endif %}
-
- It is a long established fact that a reader will be distracted by the
- readable
- content of a page when looking at its layout. The point of using Lorem
- Ipsum is
- that
- it has a more-or-less normal distribution of letters, as opposed to
- using
- 'Content
- here, content here', making it look like readable English. Many desktop
- publishing
- packages and web page editors now use Lorem Ipsum as their default model
- text,
- and a
- search for 'lorem ipsum' will uncover many web sites still in their
- infancy.
- Various
- versions have evolved over the years, sometimes by accident, sometimes
- on
- purpose
- (injected humour and the like).
+ {{ object.description }}
diff --git a/templates/products/product_detail.html b/templates/products/product_detail.html
index c1a8f04..080b2a1 100644
--- a/templates/products/product_detail.html
+++ b/templates/products/product_detail.html
@@ -2,11 +2,17 @@
{% load static %}
{% load core_tags %}
{% load products_filters %}
+{% load mptt_tags %}
{% block breacrumbs %}
{% breadcrumb_url 'Каталог' 'products:product_list' %}
-{# {% breadcrumb_mptt_url product.get_ancestors %}#}
-{# {% breadcrum_url product.name 'products:product_details' product.get_path %}#}
+ {% recursetree product.parent.get_ancestors %}
+ {{ node.name }}
+ {% if not node.is_leaf_node %}
+ {{ children }}
+ {% endif %}
+ {% endrecursetree %}
+ {% breadcrumb_url product.name 'products:product_details' product.get_path %}
{% endblock breacrumbs %}
{% block right_common_content %}
@@ -22,7 +28,7 @@
{% for product_image in product.productimage_set.get_all_images %}
- -

+ 
{% endfor %}
@@ -49,28 +55,30 @@
{% endif %}
-
+ {% if request.user.is_authenticated %}
+
+ {% endif %}
Описание
- {% if product.description > 0 %}
- {{ product.description|apply_desc_preview }}
+ {% if product.description|length > 0 %}
+ {{ product.description|apply_desc_preview|safe }}
{% else %}
У данного товара описание отсутсвует
{% endif %}
- {% if product.description > 0 %}
+ {% if product.description|length > 0 %}
Читать полностью
@@ -89,7 +97,7 @@
{{ product.name }}
- {{ product.description }}
+ {{ product.description|safe }}
+ {% if request.user.is_authenticated %}
+ {% endif %}
{% empty %}
|