app/views/decidim/results/admin/results/index.html.erb in decidim-results-0.4.3 vs app/views/decidim/results/admin/results/index.html.erb in decidim-results-0.4.4
- old
+ new
@@ -20,10 +20,10 @@
<tr data-id="<%= result.id %>">
<td>
<%= translated_attribute(result.title) %><br />
</td>
<td class="table-list__actions">
- <%= icon_link_to "eye", decidim_results.result_path(id: result, feature_id: current_feature, participatory_process_id: current_participatory_process), t("actions.preview", scope: "decidim.results"), class: "action-icon--preview", target: :blank %>
+ <%= icon_link_to "eye", resource_locator(result).path, t("actions.preview", scope: "decidim.results"), class: "action-icon--preview", target: :blank %>
<% if can? :update, current_feature %>
<%= icon_link_to "pencil", edit_result_path(result), t("actions.edit", scope: "decidim.results"), class: "action-icon--edit" %>
<% end %>