File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed
task_manager/templates/tasks Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments