mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
This reverts commit 6f8ae925ba.
Conflicts:
app/assets/stylesheets/bootplus_overrides.css.less
29 lines
898 B
Plaintext
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>
|
|
|