{% extends "layout.html" %} {% import "macros/_event.html" as misc %} {% block page_title %}{{current_event.name}}{% endblock %} {% block page_meta %} {% if current_event %} {% endif %} {% endblock %} {% block body_class %}home{% endblock %} {% block content %} {% cache 300, 'home-page' %} {% if may_certify %}
{% endif %} {% if current_event %}
{% if current_event.countdown and 'up' in config.DRIBDAT_CLOCK %}
{% endif %}
{% endif %}
{% if current_event and current_event.countdown and 'down' in config.DRIBDAT_CLOCK %}
{% endif %} {% if my_projects %} {% cache 300, 'home-user-%d' % current_user.id %}
{% for project in my_projects %} {{ misc.render_project_hexagon(project) }} {% endfor %}
{% endcache %} {% endif %} {% if events_tips %}
{% for event in events_tips %} {{ misc.render_home_event(event) }} {% endfor %}
{% endif %} {% if events_next %}

Upcoming

{% for event in events_next %} {{ misc.render_home_event(event) }} {% endfor %}
{% endif %} {% if events_past %}

Past events

{% for event in events_past %} {{ misc.render_home_event(event) }} {% endfor %}
{% if events_past_next %}
Browse all past events
{% endif %} {% endif %} {% endcache %} {% if current_user and current_user.active %}
{% if not current_event and not events_next and not events_past and not events_tips %}

Thank you for using Dribdat <3 <3 <3
Read the docs or contact us if you need help.

Click here to start your first event 🎉

{% endif %} {% if config.DRIBDAT_ALLOW_EVENTS or current_user.is_admin %} Share upcoming event {% endif %}
{% endif %} {% endblock %}