{% extends "base.html" %}
{% block title %}home{% endblock %}
{% block content %}
{% if debug %}
<p> DEBUG: {{ debug }}</p>
{% endif %}
<p>Welcome to the HomePage of the GeCo GeDi project. Its aim is to collect the contributions of the several research groups in subjects related to Geometry. <!--Look <a href='{{  root_url }}research/'>here</a> to know more about us.--> Please, feel free to use all the material you find interesting and to contribute actively. If you want to receive regularly the group news, subscribe to our mailing list in the <a href='{{ root_url }}mail/'>mail</a> section. If you want to receive an account, fill-in the <a href='{{ root_url }}request/'>account request</a>.
</p>

<p>
{{ seminar_html_admin_buttons }}
{{ event_html_admin_buttons }}
{{ position_html_admin_buttons }}
{{ news_html_admin_buttons }}
</p>

{% if projects %}
<h2>Projects</h2>
<ul>
{% for project in projects %}
<li><a class='external' href='{{ project.external_url }}'>{{ project.title }}</a>
    {% if project.principal_investigator %}({{ project.principal_investigator }}){% endif %}
    {% if project.tag %}&gt; <a href='/papers/?tag={{ project.tag }}'>papers</a></li>{% endif %}
{% endfor %}
</ul>
{% endif %}

{% if news %}
<h2>News</h2>
<ul>
{% for item in news %}
<li> {{ item.html() }} {{ item.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% endif %}

{% if positions %}
<h2>Open Positions</h2>
<ul>
{% for item in positions %}
<li> {{ item.html() }} {{ item.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% endif %}

{% if seminars %}
<h2>Forthcoming Seminars</h2>
<ul>
{% for item in seminars %}
<li> {{ item.html() }} {{ item.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% endif %}

{% if events %}
<h2>Forthcoming Events</h2>
<ul>
{% for item in events %}
<li> {{ item.html() }} {{ item.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% endif %}

{% if last_added_papers %}
<h2>Recently Added Papers</h2>
<ul>
{% for paper in last_added_papers %}
<li> {{ paper.html() }} {{ paper.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% endif %}

{% if last_modified_papers %}
<h2>Recently Modified Papers</h2>
<ul>
{% for paper in last_modified_papers %}
<li> {{ paper.html() }} {{ paper.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% endif %}

{% endblock %}
