2014-09-16 01:57:34 +00:00
|
|
|
<div id="yield">
|
|
|
|
<div class='blackBox'>
|
|
|
|
<%= render :partial => 'admin/adminpanel' %>
|
|
|
|
<br />
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Icon</th>
|
2014-09-30 02:26:12 +00:00
|
|
|
<th>Color</th>
|
2014-09-16 01:57:34 +00:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
2014-05-17 18:57:03 +00:00
|
|
|
|
2014-09-16 01:57:34 +00:00
|
|
|
<% @metacodes.each do |metacode| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= metacode.name %></td>
|
2016-02-25 06:41:47 +00:00
|
|
|
<td class="iconURL"><%= metacode.icon %></td>
|
2014-09-30 02:26:12 +00:00
|
|
|
<% if metacode.color %>
|
|
|
|
<td class="iconColor" style="background-color: <%= metacode.color %>">
|
|
|
|
<%= metacode.color %>
|
|
|
|
</td>
|
|
|
|
<% else %>
|
|
|
|
<td></td>
|
|
|
|
<% end %>
|
2016-02-25 06:41:47 +00:00
|
|
|
<td><%= image_tag metacode.icon, width: 40 %></td>
|
2014-09-16 01:57:34 +00:00
|
|
|
<td><%= link_to 'Edit', edit_metacode_path(metacode), :data => { :bypass => 'true'} %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-09-22 14:27:34 +00:00
|
|
|
</div>
|