ensl.org/app/views/maps/index.html.erb
Luke Barratt 01d83fd95c Updates to matches page
Tweaked layout for contest page
Various styling updates
2014-04-21 19:19:03 +01:00

22 lines
487 B
Text

<h1>Listing maps</h1>
<table class="striped">
<tr>
<th>Name</th>
<th>Download</th>
<th>Options</th>
</tr>
<% @maps.each do |map| %>
<tr>
<td><%= namelink map %></td>
<td><%= h map.download %></td>
<td>
<%= link_to icon('pencil'), edit_map_path(map) %>
<%= link_to icon('times'), map, confirm: 'Are you sure?', method: :delete %>
</td>
</tr>
<% end %>
</table>
<%= link_to 'New Map', new_map_path, class: 'button' %>