Name | Start | End | Rules | Status | <% if cuser and cuser.admin? %>Options | <% end %>|
---|---|---|---|---|---|---|
<%= link_to (h contest.name), contest %> | <%= longtime contest.start %> | <%= longtime contest.end %> | <% if contest.rules and contest.rules.title then %><%= link_to (h contest.rules.title), contest.rules %> | <% else %><%= "No ruleset specified" %> | <% end %><%= contest.statuses[contest.status] %> | <% if cuser and cuser.admin? %><%= link_to 'Edit', edit_contest_path(contest) %> <%= link_to 'Destroy', contest, :confirm => 'Are you sure?', :method => :delete %> | <% end %>
Name | Start | End | Winner | Status | <% if cuser and cuser.admin? %>Options | <% end %>|||
---|---|---|---|---|---|---|---|---|
<%= link_to (h contest.name), contest %> | <%= longtime contest.start %> | <%= longtime contest.end %> | <% if contest.winner then %><%= flag contest.winner.team.country %> | <%= link_to (h contest.winner.team.name), contest.winner %> | <% else %><%= %> | <%= %> | <% end %><%= contest.statuses[contest.status] %> | <% if cuser and cuser.admin? %><%= link_to 'Edit', edit_contest_path(contest) %> <%= link_to 'Destroy', contest, :confirm => 'Are you sure?', :method => :delete %> | <% end %>