From 32962d40d1665d757d2d88359196ce79619ec788 Mon Sep 17 00:00:00 2001 From: PekopT Date: Mon, 29 Aug 2016 22:46:10 +0300 Subject: [PATCH] #ARC-8 8-14 --- projects/templates/portfolio_detail.html | 67 ++---- work_sell/templates/worksell_detail.html | 266 +++++++++++------------ 2 files changed, 153 insertions(+), 180 deletions(-) diff --git a/projects/templates/portfolio_detail.html b/projects/templates/portfolio_detail.html index 5c85ebf..5721e31 100644 --- a/projects/templates/portfolio_detail.html +++ b/projects/templates/portfolio_detail.html @@ -47,63 +47,40 @@
- {% if object.description %} -
-

Описание:

-
-
-

- {{ object.description }} -

-
- {% endif %} + {% if object.description %} +
+

Описание:

+
+
+

+ {{ object.description }} +

+
+ {% endif %}
-
-
+ {% if object.photos.all|length > 1 %} +
+
+ {% endif %} - -{#
#} -{#
#} -{#
#} -{#
#} -{#
#}
-{#
#} -{#

Похожие работы

#} -{#
#} -{#
#} -{# {% for worksell in worksell_related %}#} -{#
#} -{##} -{#
#} -{# {% thumbnail worksell.get_cover "265x265" crop="center" as im %}#} -{#
#} -{#
#} -{#
#} -{# {% endthumbnail %}#} -{#
#} -{#
#} -{# {% endfor %}#} -{#
#} - {% include 'partials/footer.html' %} -
diff --git a/work_sell/templates/worksell_detail.html b/work_sell/templates/worksell_detail.html index 8111bd7..6fe56c4 100644 --- a/work_sell/templates/worksell_detail.html +++ b/work_sell/templates/worksell_detail.html @@ -2,152 +2,148 @@ {% load staticfiles %} {% load thumbnail %} {% block content %} - {% include 'partials/header.html' %} -
-
-
-

{{ object }}

+ {% include 'partials/header.html' %} +
+
+
+

{{ object }}

- {% if object.get_prev %} - - {% endif %} + {% if object.get_prev %} + + {% endif %} - {% if object.get_next %} - - {% endif %} -
-
-
-
-

{{ object.budget }}

-
- {% if request.user.is_authenticated %} - + {% if object.get_next %} + + {% endif %} +
+
+
+
+

{{ object.budget }}

+
+ {% if request.user.is_authenticated %} + - - {% endif %} - -
+ + {% endif %} + +
+
+ {% if object.description %} +
+

Описание:

+
+
+

+ {{ object.description }} +

+
+ {% endif %} +
+ {% if object.photos.all|length > 1 %} +
+
+ {% endif %} + + {% if object.photos.all|length > 1 %} + + {% endif %} +
+
+
+

Похожие работы

+
-
- {% if object.description %} -
-

Описание:

-
-
-

- {{ object.description }} -

-
- {% endif %} -
-
-
- - -
-{#
#} -{#
#} -{#
#} -{#
#} -{#
#} -
-
-

Похожие работы

-
+
+ {% for worksell in worksell_related %} +
+
+ {% thumbnail worksell.get_cover "265x265" crop="center" as im %} + +
+
+
+
+ {% endthumbnail %} +
+
+ {% endfor %} +
+ {% include 'partials/footer.html' %} -
- {% for worksell in worksell_related %} -
- -
- {% thumbnail worksell.get_cover "265x265" crop="center" as im %} -
-
-
- {% endthumbnail %} -
-
- {% endfor %} -
- - {% include 'partials/footer.html' %} - -
-
+
+
{% endblock %} {% block js_block %} - - + - {% endblock %} + } + }); + +{% endblock %}