Shot list: don't show task creation button when there is no task of that type

This commit is contained in:
2016-09-22 11:08:02 +02:00
parent c4c6f6ccad
commit 504fa17910

View File

@@ -27,9 +27,11 @@
class="status-{{ task.properties.status }}") {{ task.name }} class="status-{{ task.properties.status }}") {{ task.name }}
br br
| {% endfor %} | {% endfor %}
| {% if not tasks_for_shots[shot._id][task_type] %}
a( a(
href="javascript:task_create('{{ shot._id }}', '{{ project.url }}', '{{ task_type }}');") href="javascript:task_create('{{ shot._id }}', '{{ project.url }}', '{{ task_type }}');")
| + Task | + Task
| {% endif %}
| {% endfor %} | {% endfor %}
| {% endfor %} | {% endfor %}