{% load i18n %}
<tr>
  <td></td>
  <td>{% include "booking_star.html" %}
  <td>{{ booking.day.date|date }}</td>
  <td>
      {{ booking.project|truncatewords:5 }} {% if booking.project.is_closed %}({% trans 'closed' %}){% endif %}
  </td>
  <td>{{ booking.step }}</td>
  <td style="text-align: center;">{{ booking.duration|format_minutes_to_time }}</td>
  <td>
    {% if booking.is_closed %}
      {{ booking.get_title|truncatewords:5 }}
    {% else %}
      <a href="/time/edit/{{ booking.id }}">{{ booking.get_title|truncatewords:5 }}</a>
    {% endif %}
  </td>
</tr>
