% add_decidim_page_title(t(".title")) %>
<%= t("models.debate.fields.title", scope: "decidim.debates") %> | <%= t("models.debate.fields.start_time", scope: "decidim.debates") %> | <%= t("models.debate.fields.end_time", scope: "decidim.debates") %> | <%= th_resource_scope_label %><%= t("actions.title", scope: "decidim.debates") %> |
---|---|---|---|
<% if allowed_to? :update, :debate, debate: debate %>
<%= link_to present(debate).title(html_escape: true), edit_debate_path(debate) %>
<% else %>
<%= present(debate).title(html_escape: true) %> <% end %> |
<% if debate.start_time %> <%= l debate.start_time, format: :long %> <% end %> | <% if debate.end_time %> <%= l debate.end_time, format: :long %> <% end %> | <%= td_resource_scope_for(debate.scope) %><% if allowed_to? :update, :debate, debate: debate %> <%= icon_link_to "pencil-line", edit_debate_path(debate), t("actions.edit", scope: "decidim.debates"), class: "action-icon--edit" %> <% else %> <% end %> <% if allowed_to? :close, :debate, debate: debate %> <%= icon_link_to "lock-line" , edit_debate_debate_close_path(debate_id: debate.id, id: debate.id), t("actions.close", scope: "decidim.debates"), class: "action-icon--close" %> <% else %> <% end %> <%= icon_link_to "eye-line", resource_locator(debate).path, t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: :blank, data: { "external-link": false } %> <%= resource_permissions_link(debate) %> <% if allowed_to? :delete, :debate, debate: debate %> <%= icon_link_to "delete-bin-line", debate_path(debate), t("actions.destroy", scope: "decidim.debates"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.debates") } %> <% else %> <% end %> |