<%= t ".title" %>

<%= t ".help" %>

<% if share_tokens.any? %>
<% share_tokens.each do |share_token| %> <% end %>
<%= t("models.share_token.fields.token", scope: "decidim.admin") %> <%= t("models.share_token.fields.user", scope: "decidim.admin") %> <%= t("models.share_token.fields.times_used", scope: "decidim.admin") %> <%= t("models.share_token.fields.last_used_at", scope: "decidim.admin") %> <%= t("models.share_token.fields.created_at", scope: "decidim.admin") %> <%= t("models.share_token.fields.expires_at", scope: "decidim.admin") %>
<%= share_token.token %> <%= share_token.user.name %> <%= share_token.times_used %> <%= l share_token.last_used_at, format: :short if share_token.last_used_at.present? %> <%= l share_token.created_at, format: :short %> <%= l share_token.expires_at, format: :short if share_token.expires_at.present? %> <%= icon_link_to "share-line", share_token.url, t("actions.share", scope: "decidim.admin.share_tokens"), class: "action-icon--share", target: :blank %> <%= icon_link_to "delete-bin-line", decidim_admin.share_token_path(share_token, url: request.fullpath), t("actions.destroy", scope: "decidim.admin.share_tokens"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin.share_tokens") } %>
<% else %>

<%= t ".empty" %>

<% end %>