{% load static %} 
{% include "header.html" %}
{% include "navigation.html" with main_path='/main/' %}

<br/>
<br/>

<div class="container">
  <div class="dashboard">
    <div class="span8 offset2">
      
      {% if data.task %}
      <h1><a href="/tasks">Tasks</a> <span style="font-size:18px"> / {{ data.task.name }}</span></h1>      
      {% else %}
      <h1>Tasks</h1>
      {% endif %}

      <hr>
      <div class="row" style="padding:5px">
      {% if data.task %}
      {% include "components/task.html" with task=data.task details=True %}
      {% else %}
      {% for task in data.tasks %}
      {% include "components/task.html" with task=task %}
      {% endfor %}
      {% endif %}
      </div>

      {% if not data.task and not data.tasks %}
      <div class="row" style="padding:10px; padding-left:15px">
      <i>Nothing here. To create a new task, choose a container from the "containers" menu entry and run it by hitting the play button.</i>
      </div>
      {% endif %}

      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      
    </div>
  </div>
</div>

{% include "footer.html" %}





