Sha256: 6bb17a51843892f8a6036adc6c0dd675ad0b02a3ad225c165d7492af8c87a5a5

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This cell renders the author of a resource. It is intended to be used
  # below resource titles to indicate its authorship & such, and is intended
  # for resources that have a single author.
  class AuthorBoxCell < Decidim::ViewModel
    include LayoutHelper
    include Messaging::ConversationHelper

    def show
      render
    end

    delegate :user_signed_in?, :current_user, to: :parent_controller

    def author_box_classes
      (["author-data"] + options[:extra_classes].to_a).join(" ")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-core-0.11.2 app/cells/decidim/author_box_cell.rb
decidim-core-0.11.1 app/cells/decidim/author_box_cell.rb
decidim-core-0.11.0.pre1 app/cells/decidim/author_box_cell.rb