Skip to content

Commit

Permalink
add survey icon to code_goups view
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Apr 30, 2024
1 parent 832797a commit 88aca4e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
<%= icon_link_to "list", code_group_codes_path(group), t("actions.list_tokens", scope: "decidim.anonymous_codes.admin"), class: "action-icon--preview#{allowed_to?(:view, :anonymous_code_token) ? '':' invisible'}" %>
<%= icon_link_to "pencil", edit_code_group_path(group), t("actions.edit", scope: "decidim.anonymous_codes.admin"), class: "action-icon--edit#{allowed_to?(:update, :anonymous_code_group, code_group: group) ? '' : ' invisible'}" %>
<%= icon_link_to "circle-x", code_group_path(group), t("actions.destroy", scope: "decidim.anonymous_codes.admin"), method: :delete, class: "action-icon--remove#{allowed_to?(:destroy, :anonymous_code_group, code_group: group) ? '' : ' invisible'}", data: { confirm: t("actions.confirm_destroy", scope: "decidim.anonymous_codes.admin") } %>
<%= icon_link_to "share", surveys.group[:edit_path], t("actions.survey", scope: "decidim.anonymous_codes.admin"), class: "#{group.tokens_count > 0 ? '' : ' invisible'}", target: "_blank" %>
<% surveys.each do |survey| %>
<%= icon_link_to "share", survey[:edit_path], t("actions.survey", scope: "decidim.anonymous_codes.admin"), class: "#{survey[:group].tokens_count > 0 ? '' : ' invisible'}", target: "_blank" %>
<% end %>
</td>
</tr>
<% end %>
Expand Down

0 comments on commit 88aca4e

Please sign in to comment.