Class: ForumCategoryDrop

Inherits:
Liquid::Simplero::Drop show all
Includes:
NotificationSettingProvidingDropConcern
Defined in:
app/drops/forum_category_drop.rb

Overview

ForumCategoryDrop represents a category for ForumPostDrops. It's available as category on forum-specific pages, as a reference on ForumPostDrop, and as a collection on ForumDrop.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#active? ⇒ Boolean

Returns true if this forum category is the one currently being displayed.

Returns:

  • (Boolean)

#archived? ⇒ Boolean

Returns:

  • (Boolean)

#forum_posts ⇒ ForumPostDrop

Returns:

#id ⇒ Integer

Returns:

  • (Integer)

#intro_text ⇒ String

Returns:

  • (String)

#label ⇒ String

Returns:

  • (String)

#new_posts? ⇒ Boolean

Returns true if the current request is from a SiteMemberDrop and they have not read all the ForumCategoryDrop's ForumPostDrops.

Returns:

  • (Boolean)

#notification_setting ⇒ NotificationSettingDrop

#path ⇒ String

Returns:

  • (String)

#posts_count ⇒ Integer

Returns:

  • (Integer)

#url ⇒ String

Returns:

  • (String)

#visited_since_newest_post? ⇒ Boolean

Returns true if the current SiteMemberDrop has visited the ForumCategoryDrop since its latest #ForumPostDrop.

Returns:

  • (Boolean)