Skip to content

Commit 4809ea0

Browse files
committed
Use content_for :toolbar instead of toolbar
This has been removed in Alchemy 5.1
1 parent 85a1276 commit 4809ea0

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

app/views/alchemy/admin/users/index.html.erb

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
<%= toolbar(
2-
buttons: [
3-
{
4-
icon: :plus,
5-
label: Alchemy.t(:create_user),
6-
url: alchemy.new_admin_user_path,
1+
<%= content_for :toolbar do %>
2+
<%= toolbar_button(
3+
icon: :plus,
4+
label: Alchemy.t(:create_user),
5+
url: alchemy.new_admin_user_path,
6+
title: Alchemy.t(:create_user),
7+
hotkey: 'alt+n',
8+
dialog_options: {
79
title: Alchemy.t(:create_user),
8-
hotkey: 'alt+n',
9-
dialog_options: {
10-
title: Alchemy.t(:create_user),
11-
size: "430x560"
12-
},
13-
if_permitted_to: [:create, Alchemy::User]
14-
}
15-
]
16-
) %>
10+
size: "430x560"
11+
},
12+
if_permitted_to: [:create, Alchemy::User]
13+
) %>
14+
<% end %>
1715

1816
<div id="archive_all" class="resources-table-wrapper">
1917
<%= resources_header %>

0 commit comments

Comments
 (0)