{% extends "happenings/base.html" %} {% load markup typogrify_tags cache social_tags event_tags humanize %} {% block extra_title %}Events: {{ object.name }}{% endblock %} {% block bodyclass %}detail{% endblock %} {% block content %}
{% include "includes/top_assets.html" %} {% if object.recap %}

{{ object.name }}

{{ object.recap|markdown|typogrify }} {% else %} {% include "happenings/includes/event_info.html" %} {% endif %} {% social_links object user authenticated_request %}

{% include "happenings/includes/latest_updates.html" %} {% if object.has_started %} {% with object.memories_set.count as memory_count %} {% if memory_count %}
{% endif %} {% if user in object.attending.all %} {% if memory_count == 0 %}

Share your memories

No one has shared any memories yet. You can be the first.

{% endif %} {% if memory_count > 0 %} Add yours {% endif %} {% endif %} {% if memory_count > 0 %}

Memories

{% for m in object.memories_set.all|dictsortreversed:'id'|slice:"2" %} {% if m.thoughts %}

{{ m.thoughts|truncatewords:"30" }}
– {{ m.author.display_name }}

{% else %} {{ m.author.display_name }} shared some photos {% endif %}
{% endfor %}
View all {{ memory_count }} memories {% endif %} {% endwith %} {% endif %}
{% block comments %} {% if object.comment_set.count %} {{ count }} View all comments {% endif %} {% include 'includes/comments/comments.html' %} {% endblock %}

{% endblock %} {% block aside %} {% if event.ended %} {% if user.is_staff or user.id == event.submitted_by.id %}

Add or edit an event recap

{% endif %} {% else %} {% if user.is_staff or user.id == event.submitted_by.id %}

Edit event info

{% endif %} {% endif %} {% if user in event.attending.all %}

Add your memories

{% endif %} {% if event.schedule.count %}

Schedule

{% endif %} {% block event_sidebars %} {% with event.get_sidebars as sidebars %} {% if sidebars %} {% for side in sidebars %}

{{side.title}}

{{ side.text|markdown|typogrify }}
{% endfor %} {% endif %} {% endwith %} {% endblock %} {% with event.related_events.all as related_events %} {% if related_events %}

Related

{% endif %} {% endwith %} {% endblock %}