% add_decidim_page_title(t("responses", scope: "decidim.admin.titles")) %>
<%= t("models.response.fields.title", scope: "decidim.admin") %> | <% if allowed_to? :create, :response_group, question: current_question %><%= t("models.response.fields.response_group", scope: "decidim.admin") %> | <% end %><%= t("models.response.fields.created_at", scope: "decidim.admin") %> | |
---|---|---|---|
<% if allowed_to? :update, :response, response: response %> <%= link_to translated_attribute(response.title), edit_response_path(current_question, response) %> <% else %> <%= translated_attribute(response.title) %> <% end %> | <% if allowed_to? :create, :response_group, question: current_question %><%= translated_attribute(response&.response_group&.title) %> | <% end %><%= l response.created_at, format: :short %> | <% if allowed_to? :update, :response, response: response %> <%= icon_link_to "pencil", edit_response_path(current_question, response), t("actions.configure", scope: "decidim.admin"), class: "action-icon--edit" %> <% else %> <% end %> |