%= render 'backend/breadcrumbs' %>
<%= link_to icon(:plus, t('b.add')), new_backend_article_path, class: 'btn btn-primary btn-sm' %>
<% if @articles.any? %><%= t 'b.title' %> | <%= t 'b.author' %> | <%= t 'b.published_at' %> | <%= t 'b.visible' %> | <%= t 'b.press_release' %> | |
---|---|---|---|---|---|
<% if a.title.blank? %> <%= link_to edit_translation_backend_article_path(a, default_app_locale) do %> <%= icon(:exclamation_triangle) %> <%= t('b.msg.no_title_set') %> <% end %> <% else %> <%= truncate a.title, length: 40 %> <% end %> | <% if a.user.present? %> <%= link_to icon(:user, a.user.full_name), edit_backend_user_path(a.user) %> <% else %> <%= t 'b.not_set' %> <% end %> | <%= l a.published_at if a.published_at %> | <%= t a.visible?.to_s %> | <%= t a.press_release?.to_s %> | <%= link_to_edit_translation [:backend, a] %> <%= link_to_delete [:backend, a] %> |
<%= t 'b.msg.no_items' %>
<% end %>