<%= link_to translated_attribute(page.title), ["edit", page] %>
|
<%= l page.created_at, format: :short %>
|
<% if allowed_to? :update_notable_changes, :static_page, static_page: page %>
<%= @tos_version_formatted %>
<% end %>
|
<% if allowed_to? :update, :static_page, static_page: page %>
<%= icon_link_to "pencil", ["edit", page], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
<% end %>
<%= icon_link_to "eye", decidim.page_path(page), t("actions.view", scope: "decidim.admin.static_pages"), class: "action-icon--preview" %>
<% if allowed_to? :destroy, :static_page, static_page: page %>
<%= icon_link_to "circle-x", page, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
<% end %>
|
<% end %>