27 lines
876 B
HTML
27 lines
876 B
HTML
{%- from "templates/includes/projects/macros.html" import back_link -%}
|
|
|
|
{% for task in doc.tasks %}
|
|
<div class='task'>
|
|
<div class='row project-item'>
|
|
<div class='col-xs-9'>
|
|
<a class="no-decoration" href="/tasks?name={{ task.name }}{{ back_link(doc) }}">
|
|
<span class="indicator {{ "orange" if task.status=="Open" else "green" }}">
|
|
{% if task.status == "Closed" %}
|
|
{{ task.subject }} completed on {{ task.closing_date }}
|
|
{% else %}
|
|
{{ task.subject }}
|
|
{% endif %}
|
|
</span>
|
|
</a>
|
|
</div>
|
|
<div class='col-xs-3'>
|
|
<div class='pull-right'>
|
|
{% if task.todo %} <span class="avatar avatar-small" title="{{ task.todo.owner }}"> <img src="{{ task.todo.user_image }}"></span>
|
|
{% else %}
|
|
<span class="avatar avatar-small avatar-empty"></span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %} |