Sha256: 4ab9d1e3c85f50420cc6b47a9c8b2d51a6267348713fb47941e32183fabfd691

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This cell renders the avatar, name and nickname of
  # the given user or user group, and adds some links
  # to potential actions on the given profile.
  class ProfileCell < Decidim::ViewModel
    include LayoutHelper
    include Messaging::ConversationHelper

    def show
      render
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

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