2014-05-17 18:57:03 +00:00
|
|
|
<div class='blackBox'>
|
|
|
|
<%= render :partial => 'admin/adminpanel' %>
|
|
|
|
<br />
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Icon</th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @metacodes.each do |metacode| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= metacode.name %></td>
|
2014-06-08 20:26:25 +00:00
|
|
|
<td class="iconURL"><%= metacode.icon %></td>
|
2014-05-17 18:57:03 +00:00
|
|
|
<td><img width='40' src='<%= metacode.icon %>' /></td>
|
|
|
|
<td><%= link_to 'Edit', edit_metacode_path(metacode) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
2014-06-11 00:22:35 +00:00
|
|
|
$('.blackBox').height( (parseInt($('body').height()) - 40) ).mCustomScrollbar({
|
|
|
|
mouseWheelPixels: 200,
|
|
|
|
advanced: { updateOnContentResize: true }
|
|
|
|
});
|
2014-05-17 18:57:03 +00:00
|
|
|
});
|
|
|
|
</script>
|