Skip to content

Commit

Permalink
admin events index
Browse files Browse the repository at this point in the history
  • Loading branch information
zonque committed Mar 8, 2024
1 parent 41bb522 commit 9d3cc73
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/admin/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@
end
end

index do
selectable_column
column :id do |event|
link_to event.id, admin_event_path(event)
end
column :name
column :description
column :end_date do |event|
event.end_date.to_date
end
column :created_at
column :confirmed_at
column :offers do |event|
event.offers.count
end
column :requests do |event|
event.requests.count
end
end

show do
panel "Offers (way there)" do
table_for event.offers_way_there do
Expand Down

0 comments on commit 9d3cc73

Please sign in to comment.