{% extends "aircox/base.html" %}
{% load i18n aircox %}

{% block head_title %}
    {% block title %}{{ user.username }}{% endblock %}
{% endblock %}

{% block content-container %}
<div class="container content page-content">
  <h2 class="subtitle">Mon Profil</h2>
  {% translate "Username" %} : {{ user.username|title }}<br/>
  <!-- Connexion: {{ user.last_login }} -->

  <h2 class="subtitle is-1">Mes émissions</h2>
  {% if programs|length %}
  <ul>
  {% for p in programs %}
  <li>{{ p.title }} :
      &nbsp;
      <a href="{% url 'program-detail' slug=p.slug %}">
          <span title="{% translate 'View' %} {{ page }}">{% translate 'View' %}</span>
      </a>
      &nbsp;
      <a href="{% url 'program-edit' pk=p.pk %}">
          <span title="{% translate 'Edit' %} {{ page }}">{% translate 'Edit' %} </span>
      </a>
  </li>
  {% endfor %}
  </ul>
  {% else %}
  {% trans 'You are not listed as a program editor yet' %}
  {% endif %}
</div>
{% endblock %}
