Skip to content

Commit e4c08eb

Browse files
committed
Handle no more events
1 parent a78fcfc commit e4c08eb

File tree

1 file changed

+4
-0
lines changed
  • python-flask-directory-sync-example/templates

1 file changed

+4
-0
lines changed

python-flask-directory-sync-example/templates/events.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
</div>
2323
</div>
2424
<div class="flex">
25+
{% if events|length > 0 %}
2526
<div class="logged_in_div_left">
2627
<div class='flex_column'>
2728
<table>
@@ -57,6 +58,9 @@
5758
</pre>
5859
{% endfor %}
5960
</div>
61+
{% else %}
62+
<div class="card width-40vw"><code>No more events</code></div>
63+
{% endif %}
6064
</div>
6165
<script type="text/javascript" charset="utf-8">
6266
function deselectEvent(element) {

0 commit comments

Comments
 (0)