Sha256: 434f95e23793a126e3ece9a0e940bf38c0ad8004241cc5abd7b4a65e71b72224

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

<% if @articles.empty? %>
  <tr>
    <td colspan="7">
      <%= t('.no_articles') %>
    </td>
  </tr>
<% end %>
<% for article in @articles %>
  <tr>
    <td>
      <% if article.published? %>
        <%= link_to_permalink(article, article.title, style: 'published') %>
      <% else %>
        <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %>
      <% end %>
    </td>
    <td>
      <%= author_link(article) %>
    </td>
    <td>
      <%= l(article.created_at) %>
    </td>
    <td>
      <%= l(article.published_at) if article.published_at %>
    </td>
    <td>
      <% if article.allow_comments? %>
        <%= link_to("#{article.comments.ham.size} #{t(".feedback")}".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') %>
      <% else %>
        -
      <% end %>
    </td>
    <td>
      <%= article.text_filter&.name %>
    </td>
    <td>
      <%= show_actions article %>
    </td>
  </tr>
<% end %>
<%= display_pagination(@articles, 7, 'first', 'last') %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
publify_core-10.0.2 app/views/admin/articles/_article_list.html.erb
publify_core-10.0.1 app/views/admin/articles/_article_list.html.erb
publify_core-10.0.0 app/views/admin/articles/_article_list.html.erb