From d2ef084ed8433b4a47dbbdf70d0c54ecad161556 Mon Sep 17 00:00:00 2001
From: ArturBaybulatov
Date: Mon, 22 Aug 2016 10:25:34 +0300
Subject: [PATCH] Fixes
---
templates/partials/base.html | 4 +-
.../customer_profile_open_projects.html | 48 ++++++++++---------
.../customer_profile_trashed_projects.html | 45 +++++++++--------
.../partials/customer_profile_info_block.html | 18 +++----
4 files changed, 61 insertions(+), 54 deletions(-)
diff --git a/templates/partials/base.html b/templates/partials/base.html
index 4918bd8..4fdd01b 100644
--- a/templates/partials/base.html
+++ b/templates/partials/base.html
@@ -37,9 +37,9 @@
{% endfor %}
{% endif %}
-
+
{{ request.user }}
-
+
{% if request.user.is_authenticated %}
PK: {{ request.user.pk }}
Groups: {{ request.user.groups.all }}
diff --git a/users/templates/customer_profile_open_projects.html b/users/templates/customer_profile_open_projects.html
index 1c060a1..8cbab81 100644
--- a/users/templates/customer_profile_open_projects.html
+++ b/users/templates/customer_profile_open_projects.html
@@ -29,11 +29,13 @@
-
+ {% if request.user.is_customer %}
+
+ {% endif %}
@@ -50,9 +52,9 @@
@@ -62,7 +64,7 @@
- {{ proj.created}}
- 0
- - 0
+ - {{ proj.answers.count }}
- {{ customer.get_full_name }}
@@ -72,19 +74,21 @@
{{ proj.budget }}
-
+ {% if request.user == proj.customer %}
+
+ {% endif %}
{% endfor %}
diff --git a/users/templates/customer_profile_trashed_projects.html b/users/templates/customer_profile_trashed_projects.html
index e5e221b..0fc09d0 100644
--- a/users/templates/customer_profile_trashed_projects.html
+++ b/users/templates/customer_profile_trashed_projects.html
@@ -56,10 +56,10 @@
{{ proj.created}}
- 523
+ 0
- 523
+ {{ proj.answers.count }}
{{ customer.get_full_name }}
@@ -70,25 +70,28 @@
{{ proj.budget }}
-
+
+ {% if request.user == proj.customer %}
+
+ {% endif %}
{% endfor %}
diff --git a/users/templates/partials/customer_profile_info_block.html b/users/templates/partials/customer_profile_info_block.html
index 6261c42..dc0cb45 100644
--- a/users/templates/partials/customer_profile_info_block.html
+++ b/users/templates/partials/customer_profile_info_block.html
@@ -41,21 +41,21 @@
{% url 'users:customer-profile-open-projects' pk=pk as a %}
{% url 'users:customer-profile-trashed-projects' pk=pk as a2 %}
- {% url 'users:customer-profile-current-projects' pk=pk as b %}
+{# {% url 'users:customer-profile-current-projects' pk=pk as b %}#}
{% url 'users:customer-profile-reviews' pk=pk as c %}
-
Открытые проекты
- -
- Текущие проекты
-
-
-
+{# - #}
+{# Текущие проекты#}
+{# #}
+{# #}
+{#
#}
-
Отзывы