metamaps--metamaps/app/views/metacodes/index.html.erb

31 lines
743 B
Plaintext
Raw Normal View History

2014-09-16 01:57:34 +00:00
<div id="yield">
2017-10-14 19:55:50 +00:00
<div class='centerContent'>
<br />
<table>
<tr>
<th>Name</th>
<th>Icon</th>
<th>Color</th>
<th></th>
<th></th>
</tr>
2017-10-14 19:55:50 +00:00
<% @metacodes.each do |metacode| %>
<tr>
<td><%= metacode.name %></td>
<td class="iconURL"><%= metacode.icon %></td>
<% if metacode.color %>
<td class="iconColor" style="background-color: <%= metacode.color %>">
<%= metacode.color %>
</td>
<% else %>
<td></td>
<% end %>
<td><%= image_tag metacode.icon, width: 40 %></td>
<td><%= link_to 'Edit', edit_metacode_path(metacode) %></td>
</tr>
<% end %>
</table>
2014-09-16 01:57:34 +00:00
</div>
</div>