Skip to content

Commit

Permalink
don't show scopes on top
Browse files Browse the repository at this point in the history
  • Loading branch information
valzav committed Jun 27, 2017
1 parent 2d38de9 commit 9aa3686
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 21 deletions.
4 changes: 2 additions & 2 deletions app/admin/account.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ActiveAdmin.register Account do
scope :all
scope :bot
# scope :all
# scope :bot
index do
column :id
column :user_id
Expand Down
4 changes: 2 additions & 2 deletions app/admin/arec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ActiveAdmin.register Arec do
menu label: 'Account recovery'
scope :all
scope :by_email
# scope :all
# scope :by_email

index do
column :id
Expand Down
24 changes: 12 additions & 12 deletions app/admin/dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@
panel "Recent Users" do
table_for User.order("created_at desc").limit(30) do
column :email do |u|
link_to u.email, admin_user_path(u)
link_to u.display_email, admin_user_path(u)
end
column :created_at
end
strong { link_to "View All Users", admin_users_path }
end
end

column do
panel "Recent Accounts" do
table_for Account.order("created_at desc").limit(30) do
column :name do |a|
link_to a.name, admin_account_path(a)
end
column :created_at
end
strong { link_to "View All Accounts", admin_accounts_path }
end
end
# column do
# panel "Recent Accounts" do
# table_for Account.order("created_at desc").limit(30) do
# column :name do |a|
# link_to a.name, admin_account_path(a)
# end
# column :created_at
# end
# strong { link_to "View All Accounts", admin_accounts_path }
# end
# end
end


Expand Down
2 changes: 1 addition & 1 deletion app/admin/identity.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ActiveAdmin.register Identity do
scope :all
# scope :all
includes :user

index do
Expand Down
4 changes: 2 additions & 2 deletions app/admin/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def issues_to_status_tags(warnings)
end

ActiveAdmin.register User do
scope :all
scope :waiting_list
# scope :all
# scope :waiting_list
includes :identities

index do
Expand Down
6 changes: 5 additions & 1 deletion app/assets/stylesheets/active_admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@

.table_actions > a {
margin-right: 10px;
}
}

table.index_table td.col-value {
word-break: break-all !important;
}
2 changes: 1 addition & 1 deletion config/initializers/active_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
#
# Enable and disable Batch Actions
#
config.batch_actions = true
config.batch_actions = false

# == Controller Filters
#
Expand Down

0 comments on commit 9aa3686

Please sign in to comment.