notebook/app/views/magic/_list.html.erb
Andrew Brown 3fd6d604fe Revert "Revert "Resolve merge with master""
This reverts commit 6f8ae925ba.

Conflicts:
	app/assets/stylesheets/bootplus_overrides.css.less
2015-03-13 22:46:31 -05:00

29 lines
898 B
Plaintext

<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<% if session[:user] %>
<th><%=t '.actions', :default => t("helpers.actions") %></th>
<% end %>
</tr>
</thead>
<tbody>
<% @magics.each do |magic| %>
<tr>
<td style="width: 160px;"><%= simple_format link_to magic.name, magic_path(magic) %></td>
<td><%= simple_format magic.type_of %></td>
<td style="width: 240px;">
<% if session[:user] and session[:user] == magic.user.id %>
<%= link_to t('.view', :default => t("helpers.links.view")),
magic_path(magic), :class => 'btn' %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
magic_edit_path(magic), :class => 'btn' %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>