radiant-event_calendar-extension 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.3.4
@@ -50,8 +50,15 @@
50
50
  - else
51
51
  n/a
52
52
  - tbody.action_cell do
53
- %td
54
- = render :partial => 'actions', :locals => {:calendar => calendar}
53
+ %td.actions
54
+ - if calendar.ical
55
+ = link_to image('redo') + ' ' + t('refresh_calendar'), refresh_admin_ical_url(calendar.ical.id), :method => :put, :class => 'action'
56
+ - else
57
+ %span.action.disabled
58
+ = image('redo_disabled') + ' ' + t('refresh_calendar')
59
+ = link_to image('delta') + ' ' + t('edit_calendar'), edit_admin_calendar_path(calendar), :class => 'action'
60
+ = link_to image('minus') + ' ' + t('delete_calendar'), admin_calendar_path(calendar), :confirm => t('really_delete_calendar', :name => calendar.name), :method => :delete, :class => 'action'
61
+
55
62
 
56
63
  - render_region :bottom do |bottom|
57
64
  - bottom.buttons do
@@ -1,5 +1,5 @@
1
1
  class EventCalendarExtension < Radiant::Extension
2
- version "1.3.3"
2
+ version "1.3.4"
3
3
  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.)"
4
4
  url "http://github.com/radiant/radiant-event_calendar-extension"
5
5
 
@@ -500,6 +500,13 @@ module EventCalendarTags
500
500
  end
501
501
  end
502
502
 
503
+ desc %{
504
+ Renders a simple list of the keywords attached to this event.
505
+ }
506
+ tag 'event:keywords' do |tag|
507
+ %{<span class="keywords">#{tag.locals.event.keywords}</span>}
508
+ end
509
+
503
510
  desc %{
504
511
  Renders a standard block listing the event and adding whatever links and descriptions are available.
505
512
 
Binary file
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-event_calendar-extension}
8
- s.version = "1.3.3"
8
+ s.version = "1.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
@@ -32,7 +32,6 @@ Gem::Specification.new do |s|
32
32
  "app/models/event_recurrence_rule.rb",
33
33
  "app/models/event_venue.rb",
34
34
  "app/models/ical.rb",
35
- "app/views/admin/calendars/_actions.html.haml",
36
35
  "app/views/admin/calendars/_form.html.haml",
37
36
  "app/views/admin/calendars/edit.html.haml",
38
37
  "app/views/admin/calendars/help.html.erb",
@@ -97,6 +96,8 @@ Gem::Specification.new do |s|
97
96
  "lib/tasks/event_calendar_extension_tasks.rake",
98
97
  "public/icals/blank",
99
98
  "public/images/admin/calendar.png",
99
+ "public/images/admin/redo.png",
100
+ "public/images/admin/redo_disabled.png",
100
101
  "public/images/event_calendar/flag.png",
101
102
  "public/images/event_calendar/ical.png",
102
103
  "public/javascripts/admin/event_calendar.js",
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 3
10
- version: 1.3.3
9
+ - 4
10
+ version: 1.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner
@@ -115,7 +115,6 @@ files:
115
115
  - app/models/event_recurrence_rule.rb
116
116
  - app/models/event_venue.rb
117
117
  - app/models/ical.rb
118
- - app/views/admin/calendars/_actions.html.haml
119
118
  - app/views/admin/calendars/_form.html.haml
120
119
  - app/views/admin/calendars/edit.html.haml
121
120
  - app/views/admin/calendars/help.html.erb
@@ -180,6 +179,8 @@ files:
180
179
  - lib/tasks/event_calendar_extension_tasks.rake
181
180
  - public/icals/blank
182
181
  - public/images/admin/calendar.png
182
+ - public/images/admin/redo.png
183
+ - public/images/admin/redo_disabled.png
183
184
  - public/images/event_calendar/flag.png
184
185
  - public/images/event_calendar/ical.png
185
186
  - public/javascripts/admin/event_calendar.js
@@ -1,6 +0,0 @@
1
- - calendar ||= @calendar
2
- %span.calendar_actions
3
- - if calendar.ical
4
- = link_to_unless_current image('refresh', :alt => 'Refresh calendar'), refresh_admin_ical_url(calendar.ical.id), :method => :put
5
- = link_to_unless_current image('edit', :alt => 'Edit calendar'), edit_admin_calendar_path(calendar)
6
- = link_to_unless_current image('remove', :alt => 'Delete calendar'), admin_calendar_path(calendar), :confirm => "Are you sure you want to delete the #{calendar.name} calendar ?", :method => :delete