Skip to content

Commit c894283

Browse files
committed
tasks/detail.html corrected
1 parent 2e83a97 commit c894283

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

task_manager/templates/tasks/detail.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
11
{% extends "base.html" %}
22
{% block content %}
33
<h1>{{ task.name }}</h1>
4+
45
<p><strong>Статус:</strong> {{ task.status }}</p>
5-
<p><strong>Автор:</strong> {{ task.author }}</p>
6-
<p><strong>Исполнитель:</strong> {{ task.executor|default:"—" }}</p>
6+
7+
<p><strong>Автор:</strong>
8+
{% if task.author.get_full_name %}
9+
{{ task.author.get_full_name }}
10+
{% else %}
11+
{{ task.author.username }}
12+
{% endif %}
13+
</p>
14+
15+
<p><strong>Исполнитель:</strong>
16+
{% if task.executor %}
17+
{% if task.executor.get_full_name %}
18+
{{ task.executor.get_full_name }}
19+
{% else %}
20+
{{ task.executor.username }}
21+
{% endif %}
22+
{% else %}
23+
24+
{% endif %}
25+
</p>
26+
727
<hr>
8-
<p style="white-space: pre-wrap">{{ task.description|default:"(без описания)" }}</p>
28+
29+
<p style="white-space: pre-wrap">
30+
{{ task.description|default:"(без описания)" }}
31+
</p>
932

1033
{% if task.labels.exists %}
1134
<p><strong>Метки:</strong>

0 commit comments

Comments
 (0)