{% load static %}

<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
    <table>
        {% for task in latest_task_list %}

            <tr href="{{task.href}}" target="_blank" >
                <td style="vertical-align: top;"class="td_key" >
                    <a href="{{task.href}}" target="_blank" style="text-decoration: none;color: white" ><span style="font-weight: bold;">{{task.key}}</span><br><br></a>
                    {{task.str_start_date}} - {{task.str_end_date}}<br>
                    {{task.str_start_time}} - {{task.str_end_time}}<br>

                </td>&nbsp;&nbsp;&nbsp;&nbsp;
                <td style="{% if task.done %}text-decoration:line-through{% endif %}">
                    <a href="{{task.href}}" target="_blank" style="text-decoration: none;color: white" >{{ task.name }}<br></a>
                    {{task.desc}}
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
        {% endfor %}
    </table>
{% else %}
    <p>Aucune info route</p>
{% endif %}
</div>