radiant-event_calendar-extension 1.4.12 → 1.4.14
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/events_controller.rb +2 -2
- data/app/views/admin/event_venues/_event_venue.html.haml +1 -1
- data/app/views/events/_event.html.haml +1 -1
- data/event_calendar_extension.rb +1 -4
- data/lib/event_calendar_admin_ui.rb +6 -3
- data/lib/radiant-event_calendar-extension.rb +1 -1
- metadata +5 -5
@@ -28,7 +28,7 @@ class EventsController < SiteController
|
|
28
28
|
ical = RiCal.Calendar do |cal|
|
29
29
|
events.each { |event| cal.add_subcomponent(event.to_ri_cal) }
|
30
30
|
end
|
31
|
-
send_data ical, :filename => "#{filename}.ics"
|
31
|
+
send_data ical, :filename => "#{filename}.ics", :type => "text/calendar"
|
32
32
|
}
|
33
33
|
end
|
34
34
|
end
|
@@ -42,7 +42,7 @@ class EventsController < SiteController
|
|
42
42
|
}
|
43
43
|
format.ics {
|
44
44
|
ical = RiCal.Calendar { |cal| cal.add_subcomponent(@event.to_ri_cal) }
|
45
|
-
send_data ical.to_s, :filename => "#{@event.title.slugify}.ics"
|
45
|
+
send_data ical.to_s, :filename => "#{@event.title.slugify}.ics", :type => "text/calendar"
|
46
46
|
}
|
47
47
|
end
|
48
48
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
%h3.title
|
6
6
|
= link_to event_venue.title, edit_admin_event_venue_url(event_venue)
|
7
7
|
%p.description
|
8
|
-
= link_to
|
8
|
+
= link_to pluralize(event_venue.events.count, t('event_venues_admin.index.event')), admin_event_venue_events_url(event_venue)
|
9
9
|
- tbody.location_cell do
|
10
10
|
%td.location
|
11
11
|
= event_venue.address
|
@@ -18,7 +18,7 @@
|
|
18
18
|
= link_to event.title, event.url, :class => 'title'
|
19
19
|
- else
|
20
20
|
= event.title
|
21
|
-
-
|
21
|
+
- unless event.facebook_id.blank?
|
22
22
|
= link_to t('event_calendar_extension.view_on_facebook'), event.facebook_url, :class => 'facebook event'
|
23
23
|
= render :partial => 'events/keywords', :locals => {:event => event}
|
24
24
|
|
data/event_calendar_extension.rb
CHANGED
@@ -20,10 +20,7 @@ class EventCalendarExtension < Radiant::Extension
|
|
20
20
|
UserActionObserver.instance.send :add_observer!, Calendar # adds ownership and update hooks to the calendar data
|
21
21
|
UserActionObserver.instance.send :add_observer!, Event # adds ownership and update hooks to the event data
|
22
22
|
Radiant::AdminUI.send :include, EventCalendarAdminUI # defines shards for further extension of the calendar admin pages
|
23
|
-
|
24
|
-
admin.calendar = Radiant::AdminUI.load_default_calendar_regions
|
25
|
-
admin.event = Radiant::AdminUI.load_default_event_regions
|
26
|
-
admin.event_venue = Radiant::AdminUI.load_default_event_venue_regions
|
23
|
+
Radiant::AdminUI.load_event_calendar_regions
|
27
24
|
admin.configuration.show.add :config, 'admin/configuration/calendar_show', :after => 'defaults'
|
28
25
|
admin.configuration.edit.add :form, 'admin/configuration/calendar_edit', :after => 'edit_defaults'
|
29
26
|
|
@@ -8,14 +8,17 @@ module EventCalendarAdminUI
|
|
8
8
|
alias_method :events, :event
|
9
9
|
alias_method :event_venues, :event_venue
|
10
10
|
|
11
|
-
def
|
12
|
-
load_default_regions_without_event_calendar
|
11
|
+
def load_event_calendar_regions
|
13
12
|
@calendar = load_default_calendar_regions
|
14
13
|
@event = load_default_event_regions
|
15
14
|
@event_venue = load_default_event_venue_regions
|
16
15
|
end
|
17
16
|
|
18
|
-
|
17
|
+
# def load_default_regions_with_event_calendar
|
18
|
+
# load_default_regions_without_event_calendar
|
19
|
+
# load_event_calendar_regions
|
20
|
+
# end
|
21
|
+
# alias_method_chain :load_default_regions, :event_calendar
|
19
22
|
|
20
23
|
protected
|
21
24
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantEventCalendarExtension
|
2
|
-
VERSION = '1.4.
|
2
|
+
VERSION = '1.4.14'
|
3
3
|
SUMMARY = %Q{Event Calendar Extension for Radiant CMS}
|
4
4
|
DESCRIPTION = "An event calendar extension that administers events locally or draws them from any ical or CalDAV publishers (Google Calendar, .Mac, Darwin Calendar Server, etc.)"
|
5
5
|
URL = "http://github.com/radiant/radiant-event_calendar-extension"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-event_calendar-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 14
|
10
|
+
version: 1.4.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Loren Johnson
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-07-
|
20
|
+
date: 2011-07-28 00:00:00 +01:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -202,7 +202,7 @@ has_rdoc: true
|
|
202
202
|
homepage: http://github.com/radiant/radiant-event_calendar-extension
|
203
203
|
licenses: []
|
204
204
|
|
205
|
-
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_calendar-extension', :version => '~> 1.4.
|
205
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_calendar-extension', :version => '~> 1.4.14'\n\n "
|
206
206
|
rdoc_options: []
|
207
207
|
|
208
208
|
require_paths:
|