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

17 lines
791 B
Plaintext
Raw Normal View History

2020-03-19 09:30:30 +00:00
<% @writings.each do |writing| %>
2020-03-19 09:13:01 +00:00
<tr id="<%= dom_id writing %>" class="<%= writing.is_hidden ? "checkHide" : "" %>">
2020-03-19 14:35:41 +00:00
<td><%= writing.category.title rescue "" %></td>
2020-03-19 09:13:01 +00:00
<td><%= writing.year %></td>
2020-03-19 14:35:41 +00:00
<td><%= writing.month %></td>
2020-03-19 09:13:01 +00:00
<td>
2020-03-19 09:30:30 +00:00
<%= link_to writing.writing_title, OrbitHelper.url_to_plugin_show(writing.to_param,'personal_writing'), target: "blank"%>
2020-03-19 09:13:01 +00:00
<div class="quick-edit">
<ul class="nav nav-pills hide">
2020-03-19 09:30:30 +00:00
<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>
2020-03-19 09:13:01 +00:00
</ul>
</div>
</td>
<td><%= writing.member_profile.name rescue "" %></td>
</tr>
<% end %>