From af092077924fe162d8b14c0e7f8858f272dde9cf Mon Sep 17 00:00:00 2001
From: PekopT
Date: Wed, 24 Aug 2016 14:18:15 +0300
Subject: [PATCH] user links
---
chat/templates/chat_contractor.html | 8 +++++++-
chat/templates/chat_customer.html | 9 +++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/chat/templates/chat_contractor.html b/chat/templates/chat_contractor.html
index 48081e4..edc5f95 100644
--- a/chat/templates/chat_contractor.html
+++ b/chat/templates/chat_contractor.html
@@ -47,7 +47,13 @@
{% endthumbnail %}
-
+ {% if contact.is_contractor %}
+ {% url "users:contractor-profile" pk=contact.pk as contact_url %}
+ {% else %}
+ {% url "users:customer-profile-open-projects" pk=contact.pk as contact_url %}
+ {% endif %}
+
+
Контакты
diff --git a/chat/templates/chat_customer.html b/chat/templates/chat_customer.html
index a3db522..ac5c268 100644
--- a/chat/templates/chat_customer.html
+++ b/chat/templates/chat_customer.html
@@ -41,7 +41,12 @@
{% endif %}
-
+ {% if contact.is_contractor %}
+ {% url "users:contractor-profile" pk=contact.pk as contact_url %}
+ {% else %}
+ {% url "users:customer-profile-open-projects" pk=contact.pk as contact_url %}
+ {% endif %}
+
-
+