Skip to content

Commit

Permalink
remove wrong button
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed May 2, 2024
1 parent 5b46322 commit 0bacaab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<h2 class="card-title">
<%= t("code_groups.index.title", scope: "decidim.anonymous_codes.admin") %>
<% if allowed_to?(:create, :anonymous_code_group) %>
<a class="button tiny button--title new-access" href="<%= bulk_code_group_path %>"><%= t("code_groups.index.bulk_access_code_group_button", scope: "decidim.anonymous_codes.admin") %></a>

<a class="button tiny button--title new-access" href="<%= new_code_group_path %>"><%= t("code_groups.index.new_access_code_group_button", scope: "decidim.anonymous_codes.admin") %></a>
<% end %>
</h2>
Expand Down
6 changes: 4 additions & 2 deletions app/views/decidim/anonymous_codes/admin/codes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
<%= render "export_dropdown" %>
</div>

<a class="button tiny button--title new-access" href="<%= bulk_code_group_code_path(code_group) %>"><%= t("codes.index.bulk_codes_button", scope: "decidim.anonymous_codes.admin") %></a>
<% if allowed_to?(:create, :anonymous_code_token) %>
<a class="button tiny button--title new-access" href="<%= bulk_code_group_code_path(code_group) %>"><%= t("codes.index.bulk_codes_button", scope: "decidim.anonymous_codes.admin") %></a>

<a class="button tiny button--title new-access" href="<%= new_code_group_code_path(code_group) %>"><%= t("codes.index.new_codes_button", scope: "decidim.anonymous_codes.admin") %></a>
<a class="button tiny button--title new-access" href="<%= new_code_group_code_path(code_group) %>"><%= t("codes.index.new_codes_button", scope: "decidim.anonymous_codes.admin") %></a>
<% end %>
</div>
</h2>
</div>
Expand Down

0 comments on commit 0bacaab

Please sign in to comment.