<% 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 %>
|
<% end %>