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_postsForumPostDrop

Returns:

#idInteger

Returns:

  • (Integer)

#intro_textString

Returns:

  • (String)

#labelString

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_settingNotificationSettingDrop

#pathString

Returns:

  • (String)

#posts_countInteger

Returns:

  • (Integer)

#urlString

Returns:

  • (String)

#visited_since_newest_post?Boolean

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

Returns:

  • (Boolean)