{% extends "_includes/page.html" %}

{% block body %}
  <div class="container">
    <h1>{{ project.name }}</h1>

    <table class="table">
      {% for block in chart.blocks %}
        <tr>
          <th>{{ block.task.name }}</th>
          {% for i in range((block.start - chart.start).days) %}
            <td></td>
          {% endfor %}
          {% for i in range((block.end - block.start).days) %}
            <td class="bg-primary"></td>
          {% endfor %}
          {% for i in range((chart.end - block.end).days) %}
            <td></td>
          {% endfor %}
        </tr>
      {% endfor %}
    </table>
{% endblock %}

{% extends "_includes/page.html" %}

{% block body %}
  <div class="container">
    <h1>{{ project.name }}</h1>

    <table class="table">
      {% for block in chart.blocks %}
        <tr>
          <th>{{ block.task.name }}</th>
          {% for i in range((block.start - chart.start).days) %}
            <td></td>
          {% endfor %}

          <td class="bg-primary" colspan="{{ (block.end - block.start).days }}">
            {{ block.task.name }}
          </td>

          {% for i in range((chart.end - block.end).days) %}
            <td></td>
          {% endfor %}
        </tr>
      {% endfor %}
    </table>
{% endblock %}

Include task name in box
Include task name in box
