diff --git a/projects/templates/project_detail.html b/projects/templates/project_detail.html index 1d49102..d954d47 100644 --- a/projects/templates/project_detail.html +++ b/projects/templates/project_detail.html @@ -109,7 +109,7 @@
{% if request.user.is_contractor and not answer %} - + Ответить на проект @@ -283,6 +283,18 @@ отказ + + {% if project.order.contractor and project.order.contractor == answer.author %} + Перейти к обсуждению + {% elif project.order.team and project.order.team == answer.author %} + Перейти к обсуждению + {% else %} + {% if answer.author|class_name == 'User' %} + Перейти к обсуждению + {% elif answer.author|class_name == 'Team'%} + Перейти к обсуждению + {% endif %} + {% endif %}
@@ -361,7 +373,7 @@ {% else %} -
+ {% csrf_token %} @@ -655,6 +667,12 @@ предложить проект
+ {% else %} + {% if answer.author|class_name == 'User' %} + Перейти к обсуждению + {% elif answer.author|class_name == 'Team'%} + Перейти к обсуждению + {% endif %} {% endif %}
@@ -843,6 +861,12 @@ предложить проект
+ {% else %} + {% if answer.author|class_name == 'User' %} + Перейти к обсуждению + {% elif answer.author|class_name == 'Team'%} + Перейти к обсуждению + {% endif %} {% endif %}
@@ -1016,6 +1040,12 @@ Восстановить
+ + {% if answer.author|class_name == 'User' %} + Перейти к обсуждению + {% elif answer.author|class_name == 'Team'%} + Перейти к обсуждению + {% endif %}
@@ -1083,9 +1113,10 @@ {% block js_block %} {% endblock %}