|
|
|
|
@ -24,7 +24,7 @@ |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<div class="col-lg-4"> |
|
|
|
|
<a href="#" class="aLinkExe"> |
|
|
|
|
<a href="{% url 'users:customer-profile-open-projects' project.customer.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if project.customer.avatar %} |
|
|
|
|
{% thumbnail project.customer.avatar "125x125" crop="center" as im %} |
|
|
|
|
@ -193,25 +193,39 @@ |
|
|
|
|
<div class="candidateBlock disTab"> |
|
|
|
|
<div class="candidate can-new"> |
|
|
|
|
<div class="col-lg-4"> |
|
|
|
|
<a href="#" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as im %} |
|
|
|
|
<img src="{{ im.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="#">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="#">{{ answer.author.name }}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
</p> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.owner.avatar %} |
|
|
|
|
{% thumbnail answer.author.owner.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}">{{ answer.author.name }}</a> |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<p class="navv2">На сайте {{ answer.author.created }}</p> |
|
|
|
|
|
|
|
|
|
@ -541,25 +555,39 @@ |
|
|
|
|
<div class="candidateBlock disTab"> |
|
|
|
|
<div class="candidate"> |
|
|
|
|
<div class="col-lg-4"> |
|
|
|
|
<a href="#" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as im %} |
|
|
|
|
<img src="{{ im.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="#">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="#">{{ answer.author.name }}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
</p> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.owner.avatar %} |
|
|
|
|
{% thumbnail answer.author.owner.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}">{{ answer.author.name }}</a> |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<p class="navv2">На сайте {{ answer.author.created }}</p> |
|
|
|
|
|
|
|
|
|
@ -615,7 +643,11 @@ |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if not project.order.contractor and not project.order.team %} |
|
|
|
|
{% if project.order.contractor and project.order.contractor == answer.author %} |
|
|
|
|
<a href="/chat/#order{{ project.order.pk }}" class="candLink candLink2">Перейти к обсуждению</a> |
|
|
|
|
{% elif project.order.team and project.order.team == answer.author %} |
|
|
|
|
<a href="/chat/#order{{ project.order.pk }}" class="candLink candLink2">Перейти к обсуждению</a> |
|
|
|
|
{% elif not project.order.contractor and not project.order.team %} |
|
|
|
|
<form action="{% url 'projects:customer-offer-order' answer_id=answer.pk project_id=project.pk %}" method="POST" novalidate> |
|
|
|
|
{% csrf_token %} |
|
|
|
|
|
|
|
|
|
@ -711,25 +743,39 @@ |
|
|
|
|
<div class="candidateBlock disTab"> |
|
|
|
|
<div class="candidate"> |
|
|
|
|
<div class="col-lg-4"> |
|
|
|
|
<a href="#" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as im %} |
|
|
|
|
<img src="{{ im.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="#">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="#">{{ answer.author.name }}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
</p> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.owner.avatar %} |
|
|
|
|
{% thumbnail answer.author.owner.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}">{{ answer.author.name }}</a> |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<p class="navv2">На сайте {{ answer.author.created }}</p> |
|
|
|
|
|
|
|
|
|
@ -785,7 +831,11 @@ |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
{% if not project.order.contractor and not project.order.team %} |
|
|
|
|
{% if project.order.contractor and project.order.contractor == answer.author %} |
|
|
|
|
<a href="/chat/#order{{ project.order.pk }}" class="candLink candLink2">Перейти к обсуждению</a> |
|
|
|
|
{% elif project.order.team and project.order.team == answer.author %} |
|
|
|
|
<a href="/chat/#order{{ project.order.pk }}" class="candLink candLink2">Перейти к обсуждению</a> |
|
|
|
|
{% elif not project.order.contractor and not project.order.team %} |
|
|
|
|
<form action="{% url 'projects:customer-offer-order' answer_id=answer.pk project_id=project.pk %}" method="POST" novalidate> |
|
|
|
|
{% csrf_token %} |
|
|
|
|
|
|
|
|
|
@ -883,25 +933,39 @@ |
|
|
|
|
<div class="candidateBlock disTab"> |
|
|
|
|
<div class="candidate"> |
|
|
|
|
<div class="col-lg-4"> |
|
|
|
|
<a href="#" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as im %} |
|
|
|
|
<img src="{{ im.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="#">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="#">{{ answer.author.name }}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
{% if answer.author|class_name == 'User' %} |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.avatar %} |
|
|
|
|
{% thumbnail answer.author.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=answer.author.pk %}">{{ answer.author.get_full_name }} [{{ answer.author.username }}]</a> |
|
|
|
|
</p> |
|
|
|
|
{% elif answer.author|class_name == 'Team' %} |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}" class="aLinkExe"> |
|
|
|
|
<div class="imgExecutor"> |
|
|
|
|
{% if answer.author.owner.avatar %} |
|
|
|
|
{% thumbnail answer.author.owner.avatar "125x125" crop="center" as avatar %} |
|
|
|
|
<img src="{{ avatar.url }}" alt="execitor-image"> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img src="{% static 'img/profile.jpg' %}" alt="execitor-image"> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<p class="nameExecutor"> |
|
|
|
|
<a href="{% url 'users:team-profile' pk=answer.author.pk %}">{{ answer.author.name }}</a> |
|
|
|
|
</p> |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<p class="navv2">На сайте {{ answer.author.created }}</p> |
|
|
|
|
|
|
|
|
|
@ -946,6 +1010,14 @@ |
|
|
|
|
<p>Опубликован: {{ answer.created|date:'M d, Y' }}</p> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="col-lg-3 retts"> |
|
|
|
|
<form action="{% url 'projects:restore-project-answer' pk=answer.pk %}" method="POST" novalidate> |
|
|
|
|
{% csrf_token %} |
|
|
|
|
<input type="hidden" name="next" value="{{ request.path }}"> |
|
|
|
|
<a href="#" onclick="$(this).closest('form').submit(); return false" class="candLink candLink1" title="{{ answer.pk }}">Восстановить</a> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="col-xs-12"> |
|
|
|
|
<ul> |
|
|
|
|
{% for answer_file in answer.files.all %} |
|
|
|
|
|