Check for upcoming matches before showing the calendar

This commit is contained in:
Luke Barratt 2014-08-11 00:10:40 +01:00
parent eee3c1c905
commit 68b6c15b4f

View file

@ -1,4 +1,5 @@
<div class="widget calendar"> <% if upcoming_matches.size > 0 %>
<div class="widget calendar">
<h4><%= t('widget.schedule') %></h4> <h4><%= t('widget.schedule') %></h4>
<div class="widget-content-wrapper"> <div class="widget-content-wrapper">
@ -16,4 +17,5 @@
<% end %> <% end %>
<% end %> <% end %>
</div> </div>
</div> </div>
<% end %>