{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block title %}{% trans "User" %}{% endblock %}

{% block page-title %}
  {% trans "Profile for" %}: {{ user_to_show }}
{% endblock %}

{% block sub-navigation %}

{% endblock %}

{% block content %}
  <table>
    {% if user_to_show.get_profile.communication %}
      <tr><td><h3>{% trans "Communication" %}</h3></td></tr>
      {% if user_to_show.get_profile.communication.url %}
        <tr>
          <th><label for="id_first_name">{% trans "Homepage" %}:</label></th>
          <td><a href="{{ user_to_show.get_profile.communication.url }}">{{ user_to_show.get_profile.communication.url }}</a></td>
        </tr>
      {% endif %}
      {% if user_to_show.get_profile.communication.email %}
        <tr>
          <th><label for="id_first_name">{% trans "Email" %}:</label></th>
          <td><a href="mailto:{{ user_to_show.get_profile.communication.email }}">{{ user_to_show.get_profile.communication.email }}</a></td>
        </tr>
      {% endif %}
      {% if user_to_show.get_profile.communication.phone_landline %}
        <tr>
          <th><label for="id_first_name">{% trans "Telephone" %}:</label></th>
          <td>{{ user_to_show.get_profile.communication.phone_landline }}</td>
        </tr>
      {% endif %}
      {% if user_to_show.get_profile.communication.phone_mobile %}
        <tr>
          <th><label for="id_first_name">{% trans "Telephone (mobile)" %}:</label></th>
          <td>{{ user_to_show.get_profile.communication.phone_mobile }}</td>
        </tr>
      {% endif %}
      {% if user_to_show.get_profile.communication.fax %}
        <tr>
          <th><label for="id_first_name">{% trans "Fax" %}:</label></th>
          <td>{{ user_to_show.get_profile.communication.fax }}</td>
        </tr>
      {% endif %}
    {% endif %}
    <tr><td><h3>{% trans "Projects" %}</h3></td></tr>
	{% for project in projects %}
    <tr>
      <td></td>
	<td>{{ project }}</td>
    </tr>
	{% endfor %}
  </table>
{% endblock %}
