mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
ability to view individual event #71:close
This commit is contained in:
parent
781e85f908
commit
b822d4345b
1 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,14 @@
|
||||||
get '/activity' do
|
get '/activity' do
|
||||||
#expires 7200, :public, :must_revalidate if self.class.production? # 2 hours
|
#expires 7200, :public, :must_revalidate if self.class.production? # 2 hours
|
||||||
params[:activity] = 'global' # FIXME this is a bad hack
|
params[:activity] = 'global' # FIXME this is a bad hack
|
||||||
@events = Event.global_dataset.all
|
|
||||||
|
global_dataset = Event.global_dataset
|
||||||
|
|
||||||
|
if params[:event_id]
|
||||||
|
global_dataset.where! Sequel.qualify(:events, :id) => params[:event_id]
|
||||||
|
end
|
||||||
|
|
||||||
|
@events = global_dataset.all
|
||||||
|
|
||||||
erb :'activity'
|
erb :'activity'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue