Skip to content

Commit 089ce4b

Browse files
committed
default page
1 parent fd7b2bd commit 089ce4b

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

dummy_app/app/admin/admin_users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
filter :created_at
1818

1919
form do |f|
20-
f.inputs do
20+
f.inputs "Admin Details" do
2121
f.input :email
2222
f.input :password
2323
f.input :password_confirmation

dummy_app/app/admin/dashboard.rb

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,13 @@
11
ActiveAdmin.register_page "Dashboard" do
22

3-
menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") }
3+
menu priority: 1, label: proc { I18n.t("active_admin.dashboard") }
44

5-
content title: proc{ I18n.t("active_admin.dashboard") } do
5+
content title: proc { I18n.t("active_admin.dashboard") } do
66
div class: "blank_slate_container", id: "dashboard_default_message" do
77
span class: "blank_slate" do
8-
span I18n.t("active_admin.dashboard_welcome.welcome")
9-
small I18n.t("active_admin.dashboard_welcome.call_to_action")
8+
h1 "default"
109
end
1110
end
11+
end
1212

13-
# Here is an example of a simple dashboard with columns and panels.
14-
#
15-
# columns do
16-
# column do
17-
# panel "Recent Posts" do
18-
# ul do
19-
# Post.recent(5).map do |post|
20-
# li link_to(post.title, admin_post_path(post))
21-
# end
22-
# end
23-
# end
24-
# end
25-
26-
# column do
27-
# panel "Info" do
28-
# para "Welcome to ActiveAdmin."
29-
# end
30-
# end
31-
# end
32-
end # content
33-
end
13+
end

0 commit comments

Comments
 (0)