Skip to content

Commit

Permalink
Show some acknowledgement/explanation if no talks found
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed Mar 19, 2015
1 parent d7c7e97 commit 3c8075c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions talks/templates/events/event-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,23 @@ <h3 class="panel-title">{{ event_group.title }}</h3>
{% endfor %}<br>
<strong>Host{{ event.hosts|pluralize }}</strong>: {% for host in event.hosts %}<a href="{% url 'show-person' host.slug %}">{{ host.name }}{% if host.bio %} ({{ host.bio }}){% endif %}</a>{% if not forloop.last %}, {% endif %}
{% empty %} TBA
{% endfor %}<br>
{% endfor %}<br>

</li>
{% empty %}
<div class="panel-footer">
{% if show_all %}
There are no talks for this series yet
{% else %}
No upcoming talks to display for this series. Press the button below to show all talks.
{% endif %}
</div>
{% endfor %}
<div class="panel-body">
<div class="panel-footer">
{% if show_all %}
<strong>Showing all talks </strong><a class="btn btn-default navbar-btn pull-right" href="{% url 'show-event-group' event_group.slug %}">Show upcoming talks only</a>
<strong>Showing all talks </strong><a class="btn btn-default navbar-btn" href="{% url 'show-event-group' event_group.slug %}">Show upcoming talks only</a>
{% else %}
<strong>Only showing upcoming talks </strong><a class="btn btn-default navbar-btn pull-right" href="{% url 'show-event-group' event_group.slug %}?show_all=true">Show all talks in this series</a>
<strong>Only showing upcoming talks </strong><a class="btn btn-default navbar-btn" href="{% url 'show-event-group' event_group.slug %}?show_all=true">Show all talks in this series</a>
{% endif %}
</div>
</ul>
Expand Down

0 comments on commit 3c8075c

Please sign in to comment.