Sha256: 6b345f0877590081c48deb8ffe404aa3e6a158fee24a5dee64e3d6ee38b20714

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

<tr data-id="<%= post.id %>">
  <td>
    <%= check_box_tag "post_ids_s[]", post.id, false, class: "js-check-all-post js-post-list-check  js-post-id-#{post.id}" %><br>
  </td>
  <td class="!text-left">
    <% if allowed_to? :edit, :post, post: post %>
      <%= link_to present(post).title(html_escape: true), post_path(post) %><br>
    <% else %>
      <%= present(post).title(html_escape: true) %><br>
    <% end %>
    <div class="flex items-center gap-x-1 mt-2">
      <%= icon "price-tag-3-line", class: "fill-gray w-4 h-4" %>
      <%= post.category %>
    </div>
  </td>
  <td class="table-list__date">
    <%= l post.created_at, format: :decidim_short %>
  </td>

  <td>
    <%= post.reactions_count  %>
  </td>

  <td>
    <%= post.comments_count %>
  </td>

  <td>
    <%= post.status %>
  </td>

  <td class="table-list__actions">
    <% if allowed_to? :edit, :post, post: post %>
      <%= icon_link_to "pencil-line", edit_post_path(post), t("actions.edit_post", scope: "decidim.posts"), class: "action-icon--edit-post" %>
    <% else %>
      <span class="action-space icon"></span>
    <% end %>

    <%#= icon_with_link_to_post(post) %>

    <%= icon_link_to "eye-line", resource_locator(post).path, t("actions.preview", scope: "decidim.posts.admin"), class: "action-icon--preview", target: :blank, data: { "external-link": false } %>

    <%= resource_permissions_link(post) %>
  </td>
</tr>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-posts-1.0.0 app/views/decidim/posts/admin/posts/_post-tr.html.erb