forked from saurabh/personal-book
18 lines
763 B
Plaintext
18 lines
763 B
Plaintext
<% @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">
|
|
<%= link_to Nokogiri::HTML(writing_book.create_link).text, OrbitHelper.url_to_plugin_show(writing_book.to_param,'personal_book'), target: "blank" %>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills hide">
|
|
<% if current_user.is_admin? %>
|
|
<li><%= link_to t('edit'), edit_admin_book_path(writing_book) %></li>
|
|
<li><%= link_to t(:delete_), admin_book_path(id: writing_book.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><%= get_member_show(writing_book).html_safe %></td>
|
|
</tr>
|
|
<% end %>
|