Source

django-basic-events / events / templates / events / view.html

Full commit
{% extends 'base.html' %}
{% block title %}Event: {{ event.name }}{% endblock %}
{% block content %}
    
    {% if not event.is_upcoming %}
        <div id="archived-event">
            This is an archived event. Please visit <strong><a href='{% url list_events %}'>Events and Meetings</a></strong> for current and upcoming events.
        </div>
    {% endif %}
    
    <h1>{{ event }}{% if perms.events.change_event %} <a class='edit' href='{% url admin:events_event_change event.id %}'>(Edit)</a>{% endif %}</h1>
    
    <p class='meta'>
	{{ event.display_date }}
        {% if event.location %}
	at {{ event.location }}
            {% if event.address %}
                <a href='http://maps.google.com/maps?q={{ event.address|urlencode }}'>(map)</a>
            {% else %}
                {{ event.location}}
            {% endif %}
        {% endif %}
    </p>
    <div class='description'>{{ event.description|safe }}</div>

    {% if event.attachments.all %}
	<h2>Files</h2>
	<ul class='events-attachments'>
	{% for attachment in ordered_attachments %}
	  <li><a href='{{ attachment.file.url }}'>{{ attachment.name }}</a></li>
	{% endfor %}
	</ul>
    {% endif %}
    
{% endblock %}