diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-22 18:04:41 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-22 18:04:41 -0400 |
commit | 266602ea1e97d886f031b80add7a760034221f76 (patch) | |
tree | 8954ef28ad5d54e45515416f7dca9d371f41c0c2 /app/views/tournaments | |
parent | 27ed02ceaafe466307fc5a5d584aa329ea147be5 (diff) |
basic search complete
Diffstat (limited to 'app/views/tournaments')
-rw-r--r-- | app/views/tournaments/index.html.erb | 4 |
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> |