2014-07-18 06:29:33 +00:00
|
|
|
<% @writing_books.each do |writing_book| %>
|
|
|
|
<tr id="<%= dom_id writing_book %>" class="with_action">
|
|
|
|
<td class="span1"><%= writing_book.year %></td>
|
|
|
|
<td class="span1">
|
2019-11-10 16:13:52 +00:00
|
|
|
<%= link_to Nokogiri::HTML(writing_book.create_link).text, OrbitHelper.url_to_plugin_show(writing_book.to_param,'personal_book'), target: "blank" %>
|
2014-07-18 06:29:33 +00:00
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills hide">
|
2014-07-31 13:51:25 +00:00
|
|
|
<% if current_user.is_admin? %>
|
2014-07-18 06:29:33 +00:00
|
|
|
<li><%= link_to t('edit'), edit_admin_book_path(writing_book) %></li>
|
2015-01-09 07:38:49 +00:00
|
|
|
<li><%= link_to t(:delete_), admin_book_path(id: writing_book.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
|
2014-07-31 13:51:25 +00:00
|
|
|
<% end %>
|
2014-07-18 06:29:33 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
2019-11-13 04:26:30 +00:00
|
|
|
<td><%= get_member_show(writing_book).html_safe %></td>
|
2014-07-18 06:29:33 +00:00
|
|
|
</tr>
|
2015-01-09 07:38:49 +00:00
|
|
|
<% end %>
|