Sha256: b400c328bd467271dd45da2839bc6299fdc1fd393c1328223be0114729b9762b

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

<!-- note: switch for past / upcoming games view -->

<% if @show_upcoming %>
<h3>Upcoming Games</h3>
<% else %>
<h3>Past Games</h3>
<% end %>

<%= render partial: 'games', locals: { :games  => @games } %>

<% if @games.count > 0 %>
<p>
  <% if @show_upcoming %>
     <%= link_to 'Mehr Spiele »', games_path( limit: 100 ) %>
  <% else %>
     <%= link_to 'Mehr Spiele »', past_games_path( limit: 100 ) %>
  <% end %>
</p>
<% else %>
<p>Keine Spiele gefunden.</p>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sportdb-admin-0.3.0 app/views/sport_db_admin/games/index.html.erb
sportdb-admin-0.2.0 app/views/sport_db_admin/games/index.html.erb