% @writing_books.each do |writing_book| %>
<%= writing_book.year %> |
<%= link_to writing_book.create_link, page_for_book(writing_book), target: "blank" %>
<% if current_user.is_admin? %>
- <%= link_to t('edit'), edit_admin_book_path(writing_book) %>
- <%= link_to t(:delete_), admin_book_path(writing_book), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %>
<% end %>
|
<%= writing_book.authors%> |
<% end %>