Sha256: 4004c70ebaa103cb628763ca22429195ab4aee6eb97e2ece6f3703de059e4455

Contents?: true

Size: 422 Bytes

Versions: 9

Compression:

Stored size: 422 Bytes

Contents

class Plugins::Sidebars::CategoryController < Sidebars::ComponentPlugin
  model :category

  display_name "Categories"
  description "List of categories for this blog"

  setting :count, true,  :label => 'Show article count',    :input_type => :checkbox
  setting :empty, false, :label => 'Show empty categories', :input_type => :checkbox

  def content
    @categories = Category.find_all_with_article_counters
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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