2014-04-21 18:19:03 +00:00
|
|
|
<div id="map">
|
|
|
|
<h1 class="fancy">
|
|
|
|
<span><%=h @map.name %></span>
|
|
|
|
</h1>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-21 18:19:03 +00:00
|
|
|
<% if @map.picture.length > 0 %>
|
|
|
|
<div class="preview">
|
|
|
|
<%= image_tag @map.picture %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-21 18:19:03 +00:00
|
|
|
<% if @map.download.length > 0 %>
|
|
|
|
<strong>Download</strong><br>
|
|
|
|
<p><%= link_to (h @map.download), (h @map.download) %></p>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
|
2020-03-28 20:39:41 +00:00
|
|
|
<h4>Played in these matches (<%= @map.matches.count %>):</h4>
|
|
|
|
<ul class="disc">
|
|
|
|
<%= render partial: 'matches/list', locals: {matches: @map.matches} %>
|
|
|
|
</ul>
|
|
|
|
|
2014-04-21 18:19:03 +00:00
|
|
|
<h4>Played in Contests</h4>
|
|
|
|
<ul class="disc">
|
|
|
|
<% @map.contests.each do |contest| %>
|
|
|
|
<li><%= namelink contest %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<%= link_to 'Edit Map', edit_map_path(@map), class: 'button' %>
|
|
|
|
</div>
|