event_cal 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ module ::EventCal::CalendarHelper
10
10
 
11
11
  def hightlight_classes(date, calendar)
12
12
  classes = []
13
+ classes << 'today' if date == Date.today
13
14
  events = calendar.events_on(date)
14
15
  classes << 'has_events' if events.present?
15
16
  events.map(&:class).uniq.each {|event_class| classes << event_class.to_s.underscore }
@@ -1,3 +1,3 @@
1
1
  module EventCal
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
@@ -180,10 +180,13 @@ $line_height: 1.5 !default;
180
180
  }
181
181
  }
182
182
  &.selected {
183
- @include box-shadow(none);
184
- background-color: lighten($event_highlight_color, 10%);
183
+ @include box-shadow(0 0 8px -1px $light_gray inset);
185
184
  font-weight: bold;
186
185
  }
186
+ &.today {
187
+ background: url(/assets/calendar_today.png) 50% 0px no-repeat;
188
+ background-size: 30px;
189
+ }
187
190
  .header {
188
191
  font-size: 14px;
189
192
  text-align: center;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_cal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -222,6 +222,7 @@ files:
222
222
  - lib/tasks/event_calendar_tasks.rake
223
223
  - vendor/assets/images/calendar_next.png
224
224
  - vendor/assets/images/calendar_prev.png
225
+ - vendor/assets/images/calendar_today.png
225
226
  - vendor/assets/images/icon_config.png
226
227
  - vendor/assets/javascripts/calendarApplication.js.coffee
227
228
  - vendor/assets/javascripts/controllers/calendarDatesController.js.coffee
@@ -256,7 +257,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
257
  version: '0'
257
258
  segments:
258
259
  - 0
259
- hash: 519849361277941248
260
+ hash: 2410190652992192974
260
261
  required_rubygems_version: !ruby/object:Gem::Requirement
261
262
  none: false
262
263
  requirements:
@@ -265,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
266
  version: '0'
266
267
  segments:
267
268
  - 0
268
- hash: 519849361277941248
269
+ hash: 2410190652992192974
269
270
  requirements: []
270
271
  rubyforge_project:
271
272
  rubygems_version: 1.8.24