Include shot name in task list, before the task name.

This commit is contained in:
2016-10-05 14:52:50 +02:00
parent d9a41c11b7
commit eafcacde36
3 changed files with 5 additions and 2 deletions

View File

@@ -96,7 +96,7 @@
color: $color-text-dark-primary color: $color-text-dark-primary
+text-overflow-ellipsis +text-overflow-ellipsis
.name .name, .shotname
margin: 10px margin: 10px
+text-overflow-ellipsis +text-overflow-ellipsis

View File

@@ -18,6 +18,9 @@
class="status-{{ task.properties.status }} task-link", class="status-{{ task.properties.status }} task-link",
href="{{ url_for('attract.tasks.perproject.view_task', project_url=project.url, task_id=task._id) }}") href="{{ url_for('attract.tasks.perproject.view_task', project_url=project.url, task_id=task._id) }}")
span.status-indicator span.status-indicator
| {% if task._parent_info %}
span.shotname {{ task._parent_info.name }}
| {% endif %}
span.name {{ task.name }} span.name {{ task.name }}
span.type {{ task.properties.task_type }} span.type {{ task.properties.task_type }}
| {% endfor %} | {% endfor %}

View File

@@ -10,10 +10,10 @@
title="In project '{{ task._project_info.name }}'", title="In project '{{ task._project_info.name }}'",
href="{{ url_for('attract.tasks.perproject.view_task', project_url=task._project_info.url, task_id=task._id) }}") href="{{ url_for('attract.tasks.perproject.view_task', project_url=task._project_info.url, task_id=task._id) }}")
span.status-indicator span.status-indicator
span.name {{ task.name }}
| {% if include_shotname and task._parent_info %} | {% if include_shotname and task._parent_info %}
span.shotname {{ task._parent_info.name }} span.shotname {{ task._parent_info.name }}
| {% endif %} | {% endif %}
span.name {{ task.name }}
span.type {{ task.properties.task_type }} span.type {{ task.properties.task_type }}
| {% endfor %} | {% endfor %}
| {%- endmacro %} | {%- endmacro %}