{% extends "happenings/base.html" %} {% load typogrify_tags social_tags event_tags humanize comments %} {% 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_formatted|typogrify }} {% else %} {% include "happenings/includes/event_info.html" %} {% endif %} {% if not event.ended %} {% if user.is_authenticated %}

I'm going, sign me up!

{% endif %} {% endif %} {% social_links object user authenticated_request %}

{% include "happenings/includes/latest_updates.html" %} {% if object.has_started %} {% with object.memory_set.count as memory_count %} {% if user in object.attending.all %} Since you attended, you can add your thoughts and photos: {% endif %}

Attendees said...

{% if memory_count == 0 %}

No attendees have shared their memories yet.

{% else %}
{% for m in object.memory_set.all|dictsortreversed:'id'|slice:"6" %} {% with m.photos.all.0 as pic %} {% if pic %} {% endif %} {% if m.text %}

{{ m.text|truncatewords:"30" }}
– {{ m.user.display_name }}

{% else %} {{ m.user.display_name }} shared some photos {% endif %} {% endwith %}
{% endfor %}
View all {{ memory_count }} memories {% endif %} {% endwith %}
{% endif %} {% block comments %} {% include "happenings/includes/latest_comments.html" %}
{% if authenticated_request %} {% render_comment_form for object %} {% else %} {% include "includes/signin_reg.html" %} {% endif %}
{% endblock %}

{% endblock %} {% block complementary %} {% 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 %} {% with event.related_events.all as related_events %} {% if related_events %}

Related

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

{{ side.title }}

{{ side.text_formatted|typogrify }}
{% endfor %} {% endif %} {% endwith %} {% endblock %}