{% extends 'heliosinstitution/templates/base-bootstrap.html' %} {% load i18n %} {% block title %}{{ settings.SITE_TITLE }}{% endblock %} {% load institution_extras %} {% block header %} {% block js %} {% endblock %} {% endblock %} {% block content %}

{{settings.WELCOME_MESSAGE|safe}}

{% if user %}
{% trans "Welcome" %} {{user.pretty_name|safe}}
{% if create_p %} {% endif %} {% endif %}
{% if institutions %}
{% with drop_type='year' %} {% dropdown %} {% endwith %}
{% include "elections_summary.html" %}
{% else %}

{% trans "no featured elections at the moment" %}

{% endif %}
{% if user %} {% if elections_administered %}

{% trans "Your elections" %}

{% trans "See all" %} {% endif %}

{% if elections_voted %}

{% trans "Recent Votes" %}

{% trans "See all" %} {% endif %}

{% if user.institutionuserprofile_set.get.institution %}

{% trans "Contact information" %}

{% with institution=user.institutionuserprofile_set.get.institution %}
{% trans "Main Phone: +55" %} {{ institution.main_phone}}
{% trans "Secondary Phone: +55" %} {{ institution.sec_phone}}
{% trans "Address:" %} {{ institution.address }}
{% if institution.admins %}
{% trans "Your institution admins are:" %}

{% for admin in institution.admins %} {{admin.name }}
{% trans "E-mail" %} {{ admin.email }}

{% endfor %} {% else %}
{% trans "No institution admin" %} {% endif %} {% endwith %}

{% endif %} {% endif %}

{% endblock %}