mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
f6b30be278
Improve brackets Update gitignore and docs.
30 lines
744 B
Text
30 lines
744 B
Text
<div id="map">
|
|
<h1 class="fancy">
|
|
<span><%=h @map.name %></span>
|
|
</h1>
|
|
|
|
<% if @map.picture.length > 0 %>
|
|
<div class="preview">
|
|
<%= image_tag @map.picture %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if @map.download.length > 0 %>
|
|
<strong>Download</strong><br>
|
|
<p><%= link_to (h @map.download), (h @map.download) %></p>
|
|
<% end %>
|
|
|
|
<h4>Played in these matches (<%= @map.matches.count %>):</h4>
|
|
<ul class="disc">
|
|
<%= render partial: 'matches/list', locals: {matches: @map.matches} %>
|
|
</ul>
|
|
|
|
<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>
|