<%= render_navbar do %> <%= link_to t('lines.buttons.new_author').html_safe, new_admin_author_path, class: "btn btn-new-author highlight" %> <%= link_to 'Dashboard', lines.admin_root_path, class: "btn btn-view-blog" %> <% end %> <% if defined?(@author) && @author.errors.any? %>

<%= pluralize(@author.errors.count, "error") %> prohibited this author from being saved:

x
<% end %>

<%= t('lines.buttons.all_authors').html_safe %>

<% @authors.each do |author| %>
<%= link_to author.name, admin_author_path(author) %>
<%= link_to t('lines.buttons.edit').html_safe, edit_admin_author_path(author), class: "btn-edit" %>
<%= link_to "", {controller: :authors, action: 'destroy', id: author.id}, data: { confirm: t('lines.confirm').html_safe }, class: "btn-delete icon-delete", method: :delete %>
<% end %>