personal_writing/app/views/admin/writings/_writing.html.erb

17 lines
791 B
Plaintext

<% @writings.each do |writing| %>
<tr id="<%= dom_id writing %>" class="<%= writing.is_hidden ? "checkHide" : "" %>">
<td><%= writing.category.title rescue "" %></td>
<td><%= writing.year %></td>
<td><%= writing.month %></td>
<td>
<%= link_to writing.writing_title, OrbitHelper.url_to_plugin_show(writing.to_param,'personal_writing'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_writing_path(writing) %></li>
<li><%= link_to t(:delete_), admin_writing_path(id: writing.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td><%= writing.member_profile.name rescue "" %></td>
</tr>
<% end %>