Skip to content

Commit

Permalink
Merge pull request #663 from CTPUG/bugfix/fix_empty_talk_templates
Browse files Browse the repository at this point in the history
Improve the 'no talks submitted' display for talks and speakers
  • Loading branch information
drnlm committed Jun 8, 2023
2 parents 15b67e9 + b3852cc commit afe7b79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 11 additions & 0 deletions wafer/talks/templates/wafer.talks/speakers.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ <h1>{% blocktrans %}{{ talk_type }} Speakers{% endblocktrans %}</h1>
</div>
{% endfor %}
</div>
{% empty %}
<!-- We show an empty entry wo a) there's some content here and
b) it's easier to check some of the styling -->
<h1>{% trans 'Speakers' %}</h1>
<div class="container speakers-list">
<div class="row">
<div class="wafer-speakers-name">
<p>No accepted talks yet</p>
</div>
</div>
</div>
{% endfor %}
</section>
{% endblock %}
13 changes: 11 additions & 2 deletions wafer/talks/templates/wafer.talks/talks.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,19 @@
</tr>
{% endfor %}
{% empty %}
<thead class='thead-dark'>
<tr>
<th>
{% trans "Talk" %}
</th>
{% if languages %}<th>{% trans "Language" %}</th>{% endif %}
<th>{% trans "Speakers" %}</th>
</tr>
</thead>
<tr>
<th colspan="{% if languages %}3{% else %}2{% endif %}">
<td colspan="{% if languages %}3{% else %}2{% endif %}">
{% trans 'No talks accepted yet.' %}
</th>
</td>
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit afe7b79

Please sign in to comment.