Skip to content

Commit

Permalink
Improved presentation of event-group page. Also added whether publish…
Browse files Browse the repository at this point in the history
…ed, and an edit link. #198
  • Loading branch information
ahaith committed Jan 13, 2015
1 parent 40f5eb6 commit c502ec9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions talks/templates/events/event-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ <h3 class="panel-title">{{ event_group.title }}</h3>
<li class="list-group-item"><strong>Organising department</strong>: {{ event_group.api_organisation.name }}</li>
{% endif %}
{% for event in event_group.events.all %}
<li class="list-group-item"><a href="{{ event.get_absolute_url }}">{% if event.title %}{{ event.title }}{% else %}Untitled Event{% endif %}</a> ({{ event.formatted_date }})
<br>
<strong>Speaker{{ event.speakers|pluralize }}</strong>: {% for speaker in event.speakers %}<a href="{% url 'show-person' speaker.slug %}">{{ speaker.name}}{% if speaker.bio %} ({{ speaker.bio }}){% endif %}</a>{% if not forloop.last %}, {% endif %}
{% empty %} TBA
{% endfor %}
<li class="list-group-item">
{% if perms.events.edit_event %}<a class="btn btn-default navbar-btn" style="float:right" href="{% url 'edit-event' event.slug %}">Edit</a>{% endif %}
<strong>{{ event.formatted_date }}</strong>{% if perms.events.edit_event %}<span style="padding-left: 20px"><strong>Status</strong>:{% if event.published %} published{% else %}In Preparation{% endif %}</span>{% endif %}<br>
<a href="{{ event.get_absolute_url }}">{% if event.title %}{{ event.title }}{% else %}Untitled Event{% endif %}</a><br>
<strong>Speaker{{ event.speakers|pluralize }}</strong>: {% for speaker in event.speakers %}<a href="{% url 'show-person' speaker.slug %}">{{ speaker.name}}{% if speaker.bio %} ({{ speaker.bio }}){% endif %}</a>{% if not forloop.last %}, {% endif %}
{% empty %} TBA
{% endfor %}
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit c502ec9

Please sign in to comment.