{% extends "layout.html" %} {% import "macros/_event.html" as evnt %} {% import "macros/_project.html" as proj %} {% block page_title %}{{featured_event.name}} ⬡⬢ {% endblock %} {% block page_meta %} {% if featured_event %} {% endif %} {% endblock %} {% block body_class %}home{% endblock %} {% block content_class %}{% endblock %} {% block content %} {% if my_projects %} {% cache 300, 'home-user-%d' % current_user.id %}
{% for project in my_projects %} {{ proj.render_project_hexagon(project) }} {% endfor %}

{% endcache %} {% endif %} {% cache 300, 'home-page' %} {% if featured_event %}
{% if featured_event.countdown and 'up' in config.DRIBDAT_CLOCK %}
{% endif %}
{% endif %}
{% if featured_event and featured_event.countdown and 'down' in config.DRIBDAT_CLOCK %}
{% endif %} {% if events_tips or events_next %}
{% for event in events_tips %} {{ evnt.render_home_event(event) }} {% endfor %} {% for event in events_next %} {{ evnt.render_home_event(event) }} {% endfor %}
{% endif %} {% if events_past %}

{% for event in events_past %} {{ evnt.render_home_event(event) }} {% endfor %}
{% if events_past_next %}
Browse all past events
{% endif %} {% endif %}
{% if not featured_event and not events_next and not events_past and not events_tips %}

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

< Click here to get started >

We hope you have an awesome hackathon!

{% elif config.DRIBDAT_ALLOW_EVENTS and current_user and current_user.active %} Share an event {% endif %}
{% endcache %} {% endblock %}