ensl.org/app/views/contests/current.html.erb
Luke Barratt 5487854a6c Start to cleanup old assets
Added new ISO country code flag icons to asset pipeline
Lots and lots of new style changes
Began converting to JS to coffeescript
2014-04-09 00:28:53 +01:00

11 lines
390 B
Text

<h1>Current Contests</h1>
<% @contests.each do |contest| %>
<h3><%= link_to contest.name, contest %></h3>
<% if contest.contest_type == Contest::TYPE_BRACKET %>
<%= render partial: "bracket", locals: { contest: contest } %>
<% else %>
<%= render partial: "contesters/list", locals: { contesters: contest.contesters.active.ordered, actions: true } %>
<% end %>
<% end %>