<%=h @map.name %>
<% if @map.picture.length > 0 %>
<%= image_tag @map.picture.url %>
<% end %>
<% if @map.download.length > 0 %>
Download
<%= link_to (h @map.download), (h @map.download) %>
<% end %>
Played in these matches (<%= @map.matches.count %>):
<%= render partial: 'matches/list', locals: {matches: @map.matches} %>
Played in Contests
<% @map.contests.each do |contest| %>
- <%= namelink contest %>
<% end %>
<%= link_to 'Edit Map', edit_map_path(@map), class: 'button' %>