Sha256: 7e0df0e10246fed7eb0f74b3d9e8a27926860b1f68c3147d7b0e05d2d9734b17

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 Bytes

Contents

class AuthorsSidebar < Sidebar
  display_name "Authors"
  description "Displays a list of authors ordered by name with links to their articles and profile"

  setting :count, true,  :label => 'Show articles number',      :input_type => :checkbox

  def authors
    @authors = User.find(:all, :conditions => {:state => 'active'}, :order => 'name')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.5 vendor/plugins/authors_sidebar/lib/authors_sidebar.rb
typo-5.4.4 vendor/plugins/authors_sidebar/lib/authors_sidebar.rb
typo-5.4.3 vendor/plugins/authors_sidebar/lib/authors_sidebar.rb
typo-5.4.2 vendor/plugins/authors_sidebar/lib/authors_sidebar.rb
typo-5.4.1 vendor/plugins/authors_sidebar/lib/authors_sidebar.rb
typo-5.4 vendor/plugins/authors_sidebar/lib/authors_sidebar.rb