|
|
|
|
@ -5,6 +5,16 @@ |
|
|
|
|
{% load specializtions_tags %} |
|
|
|
|
{% load project_tags %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block head_css %} |
|
|
|
|
<style> |
|
|
|
|
.-highlighted-message { |
|
|
|
|
background-color: #E9FFF8; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %} |
|
|
|
|
{% include 'partials/header.html' %} |
|
|
|
|
|
|
|
|
|
@ -332,17 +342,17 @@ |
|
|
|
|
<div class="commBlock44 disTab"> |
|
|
|
|
{% for message in answer.messages.all %} |
|
|
|
|
<div class="comm44 disTab"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1 {% if not message.is_sender_customer %}-highlighted-message{% endif %}"> |
|
|
|
|
{% if message.is_sender_customer %} |
|
|
|
|
<p class="nameComm nameCommAct"> |
|
|
|
|
{{ project.customer.get_full_name }} |
|
|
|
|
<p class="nameComm"> |
|
|
|
|
{% firstof project.customer.get_full_name.strip project.customer.username %} |
|
|
|
|
</p> |
|
|
|
|
{% else %} |
|
|
|
|
<p class="nameComm"> |
|
|
|
|
<p class="nameComm nameCommAct"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
{{ answer.author.get_full_name }} |
|
|
|
|
{% firstof answer.author.get_full_name.strip answer.author.username %} |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
{{ answer.author.name }} |
|
|
|
|
{% firstof answer.author.name.strip answer.author.owner.username %} |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -705,17 +715,17 @@ |
|
|
|
|
<div class="commBlock44 disTab"> |
|
|
|
|
{% for message in answer.messages.all %} |
|
|
|
|
<div class="comm44 disTab"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1 {% if message.is_sender_customer %}-highlighted-message{% endif %}"> |
|
|
|
|
{% if message.is_sender_customer %} |
|
|
|
|
<p class="nameComm nameCommAct"> |
|
|
|
|
{{ project.customer.get_full_name }} |
|
|
|
|
{% firstof project.customer.get_full_name.strip project.customer.username %} |
|
|
|
|
</p> |
|
|
|
|
{% else %} |
|
|
|
|
<p class="nameComm"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
{{ answer.author.get_full_name }} |
|
|
|
|
{% firstof answer.author.get_full_name.strip answer.author.username %} |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
{{ answer.author.name }} |
|
|
|
|
{% firstof answer.author.name.strip answer.author.owner.username %} |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -899,17 +909,17 @@ |
|
|
|
|
<div class="commBlock44 disTab"> |
|
|
|
|
{% for message in answer.messages.all %} |
|
|
|
|
<div class="comm44 disTab"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1 {% if message.is_sender_customer %}-highlighted-message{% endif %}"> |
|
|
|
|
{% if message.is_sender_customer %} |
|
|
|
|
<p class="nameComm nameCommAct"> |
|
|
|
|
{{ project.customer.get_full_name }} |
|
|
|
|
{% firstof project.customer.get_full_name.strip project.customer.username %} |
|
|
|
|
</p> |
|
|
|
|
{% else %} |
|
|
|
|
<p class="nameComm"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
{{ answer.author.get_full_name }} |
|
|
|
|
{% firstof answer.author.get_full_name.strip answer.author.username %} |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
{{ answer.author.name }} |
|
|
|
|
{% firstof answer.author.name.strip answer.author.owner.username %} |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -1071,17 +1081,17 @@ |
|
|
|
|
<div class="commBlock44 disTab"> |
|
|
|
|
{% for message in answer.messages.all %} |
|
|
|
|
<div class="comm44 disTab"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1"> |
|
|
|
|
<div class="col-lg-10 col-lg-offset-1 {% if message.is_sender_customer %}-highlighted-message{% endif %}"> |
|
|
|
|
{% if message.is_sender_customer %} |
|
|
|
|
<p class="nameComm nameCommAct"> |
|
|
|
|
{{ project.customer.get_full_name }} |
|
|
|
|
{% firstof project.customer.get_full_name.strip project.customer.username %} |
|
|
|
|
</p> |
|
|
|
|
{% else %} |
|
|
|
|
<p class="nameComm"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
{{ answer.author.get_full_name }} |
|
|
|
|
{% firstof answer.author.get_full_name.strip answer.author.username %} |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
{{ answer.author.name }} |
|
|
|
|
{% firstof answer.author.name.strip answer.author.owner.username %} |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|