Sha256: c33982bbfffea9bab4a372cd6d0ca4691bdb82472dce5454ac182b06862deb75

Contents?: true

Size: 363 Bytes

Versions: 9

Compression:

Stored size: 363 Bytes

Contents

class Plugins::Sidebars::UpcomingController < Sidebars::ComponentPlugin
  description 'Events from <a href="http://www.upcoming.org">upcoming.org</a>'

  setting :feed, '', :label => 'Feed URL'
  setting :count, 4, :label => 'Items Limit'

  def content
    response.lifetime = 6.hours
    @upcoming=check_cache(Upcoming, @sb_config['feed']) rescue nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-3.99.0 components/plugins/sidebars/upcoming_controller.rb
typo-3.99.2 components/plugins/sidebars/upcoming_controller.rb
typo-3.99.3 components/plugins/sidebars/upcoming_controller.rb
typo-3.99.1 components/plugins/sidebars/upcoming_controller.rb
typo-4.0.2 components/plugins/sidebars/upcoming_controller.rb
typo-4.0.0 components/plugins/sidebars/upcoming_controller.rb
typo-3.99.4 components/plugins/sidebars/upcoming_controller.rb
typo-4.0.1 components/plugins/sidebars/upcoming_controller.rb
typo-4.0.3 components/plugins/sidebars/upcoming_controller.rb