Name | Start | Status | <% if cuser and cuser.admin? %><% end %> |
---|---|---|---|
<%= link_to (h contest.name), contest %> | <%= longdate contest.start %> | <%= contest.statuses[contest.status] %> | <% if cuser and cuser.admin? %><%= link_to icon('pencil'), edit_contest_path(contest) %> <%= link_to icon('times'), contest, confirm: 'Are you sure?', method: :delete %> | <% end %>
Name | Date | Winner | <% if cuser and cuser.admin? %><% end %> | |
---|---|---|---|---|
<%= link_to (h contest.name), contest %> | <%= longdate contest.start %> | <% if contest.winner then %><%= flag contest.winner.team.country %> <%= link_to (h contest.winner.team.name), contest.winner %> | <% else %><% end %> <% if cuser and cuser.admin? %> | <%= link_to icon('pencil'), edit_contest_path(contest) %> <%= link_to icon('times'), contest, confirm: 'Are you sure?', method: :delete %> | <% end %>