summaryrefslogtreecommitdiff
path: root/app/views/tournaments/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tournaments/index.html.erb')
-rw-r--r--app/views/tournaments/index.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb
index 129f3de..06e1b25 100644
--- a/app/views/tournaments/index.html.erb
+++ b/app/views/tournaments/index.html.erb
@@ -2,16 +2,20 @@
<div id="tournament-list">
<% if @tournaments.length > 0 %>
+
<%# Each tournament has a div for its listing %>
<% @tournaments.each do |t| %>
<%= render "common/show_tournament", :target => t %>
<% end %>
+
<% else %>
+
<p class="no-entries"> No tournaments going on right now...
<% if current_user.can?(:create_tournament) %>
Why not start your own?
<% end %>
</p>
+
<% end %>
</div>