radiant-event_calendar-extension 1.4.14 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -5
- data/app/views/events/_event.html.haml +1 -0
- data/config/routes.rb +6 -6
- data/event_calendar_extension.rb +0 -6
- data/lib/radiant-event_calendar-extension.rb +1 -1
- data/public/images/event_calendar/facebook_small.png +0 -0
- data/public/images/event_calendar/ical_small.png +0 -0
- data/public/images/event_calendar/twitter_small.png +0 -0
- data/public/stylesheets/sass/event_calendar.sass +15 -2
- metadata +9 -6
data/README.md
CHANGED
@@ -8,13 +8,15 @@ See the [event_map](http://github.com/spanner/radiant-event_map-extension) exten
|
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
|
11
|
-
|
11
|
+
From v1.5 onward event_calendar is only compatible with Radiant 1 and should be installed as a gem. Its dependencies will be brought in automatically.
|
12
12
|
|
13
|
-
sudo
|
14
|
-
|
15
|
-
|
13
|
+
sudo gem install radiant-event_calendar-extension
|
14
|
+
|
15
|
+
and then in your radiant application's Gemfile:
|
16
|
+
|
17
|
+
gem "radiant-event_calendar-extennsion", "~>1.5.0"
|
16
18
|
|
17
|
-
There is a 0.81
|
19
|
+
There is a 0.91 and 0.81 tags in the repository for the last versions good with those versions of radiant.
|
18
20
|
|
19
21
|
This version includes some optional experiments in dashboard integration. If you're using dashboard you need the spanner fork.
|
20
22
|
|
@@ -18,6 +18,7 @@
|
|
18
18
|
= link_to event.title, event.url, :class => 'title'
|
19
19
|
- else
|
20
20
|
= event.title
|
21
|
+
= link_to t('event_calendar_extension.download_event'), event_url(event, :format => :ics), :class => 'ical download'
|
21
22
|
- unless event.facebook_id.blank?
|
22
23
|
= link_to t('event_calendar_extension.view_on_facebook'), event.facebook_url, :class => 'facebook event'
|
23
24
|
= render :partial => 'events/keywords', :locals => {:event => event}
|
data/config/routes.rb
CHANGED
@@ -7,10 +7,10 @@ ActionController::Routing::Routes.draw do |map|
|
|
7
7
|
cal.calendars_home '/', :controller => 'events', :action => 'index'
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
map.
|
12
|
-
map.calendar "#{
|
13
|
-
map.calendar_year "#{
|
14
|
-
map.calendar_month "#{
|
15
|
-
map.calendar_day "#{
|
10
|
+
calendar_prefix = Radiant.config['event_calendar.path'] || "/calendar"
|
11
|
+
map.resources :events, :path_prefix => calendar_prefix, :only => [:index, :show]
|
12
|
+
map.calendar "#{calendar_prefix}.:format", :controller => 'events', :action => 'index'
|
13
|
+
map.calendar_year "#{calendar_prefix}/:year", :controller => 'events', :action => 'index'
|
14
|
+
map.calendar_month "#{calendar_prefix}/:year/:month", :controller => 'events', :action => 'index'
|
15
|
+
map.calendar_day "#{calendar_prefix}/:year/:month/:mday", :controller => 'events', :action => 'index'
|
16
16
|
end
|
data/event_calendar_extension.rb
CHANGED
@@ -8,12 +8,6 @@ class EventCalendarExtension < Radiant::Extension
|
|
8
8
|
description RadiantEventCalendarExtension::DESCRIPTION
|
9
9
|
url RadiantEventCalendarExtension::URL
|
10
10
|
|
11
|
-
extension_config do |config|
|
12
|
-
config.gem "ri_cal"
|
13
|
-
config.gem "chronic"
|
14
|
-
config.gem "uuidtools"
|
15
|
-
end
|
16
|
-
|
17
11
|
def activate
|
18
12
|
Page.send :include, EventCalendarTags # defines a wide range of events: tags for use on normal and calendar pages
|
19
13
|
Status.send :include, EventStatuses # adds support for draft and submitted events
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantEventCalendarExtension
|
2
|
-
VERSION = '1.
|
2
|
+
VERSION = '1.5.0'
|
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"
|
Binary file
|
Binary file
|
Binary file
|
@@ -59,11 +59,11 @@ $link: $red
|
|
59
59
|
+functionalfonts
|
60
60
|
text-align: center
|
61
61
|
line-height: 1.05
|
62
|
-
background-color:
|
62
|
+
background-color: $page
|
63
63
|
border:
|
64
64
|
style: solid
|
65
65
|
width: 1px
|
66
|
-
color:
|
66
|
+
color: $verypale
|
67
67
|
span.month, span.dow
|
68
68
|
display: block
|
69
69
|
font-weight: lighter
|
@@ -81,6 +81,19 @@ $link: $red
|
|
81
81
|
margin-top: 0
|
82
82
|
font-size: 90%
|
83
83
|
line-height: 1.4
|
84
|
+
a.facebook, a.twitter, a.ical
|
85
|
+
display: inline-block
|
86
|
+
width: 11px
|
87
|
+
height: 12px
|
88
|
+
margin: 6px 0
|
89
|
+
overflow: hidden
|
90
|
+
text-indent: -500px
|
91
|
+
a.ical
|
92
|
+
background: transparent url(/images/event_calendar/ical_small.png) no-repeat top left
|
93
|
+
a.facebook
|
94
|
+
background: transparent url(/images/event_calendar/facebook_small.png) no-repeat top left
|
95
|
+
a.twitter
|
96
|
+
background: transparent url(/images/event_calendar/twitter_small.png) no-repeat top left
|
84
97
|
p.venue
|
85
98
|
font-style: italic
|
86
99
|
margin-bottom: 6px
|
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: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 1.5.0
|
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-
|
20
|
+
date: 2011-09-02 00:00:00 +01:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -174,8 +174,11 @@ files:
|
|
174
174
|
- public/images/admin/calendar.png
|
175
175
|
- public/images/admin/redo.png
|
176
176
|
- public/images/admin/redo_disabled.png
|
177
|
+
- public/images/event_calendar/facebook_small.png
|
177
178
|
- public/images/event_calendar/flag.png
|
178
179
|
- public/images/event_calendar/ical.png
|
180
|
+
- public/images/event_calendar/ical_small.png
|
181
|
+
- public/images/event_calendar/twitter_small.png
|
179
182
|
- public/javascripts/admin/event_calendar.js
|
180
183
|
- public/stylesheets/sass/admin/event_calendar.sass
|
181
184
|
- public/stylesheets/sass/admin/event_calendar_dashboard.sass
|
@@ -202,7 +205,7 @@ has_rdoc: true
|
|
202
205
|
homepage: http://github.com/radiant/radiant-event_calendar-extension
|
203
206
|
licenses: []
|
204
207
|
|
205
|
-
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_calendar-extension', :version => '~> 1.
|
208
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_calendar-extension', :version => '~> 1.5.0'\n\n "
|
206
209
|
rdoc_options: []
|
207
210
|
|
208
211
|
require_paths:
|