Sha256: 1106f7b3bc690784e68bf92d426edcb1ca698bc937a1428bbfa0d3573fc5061d
Contents?: true
Size: 816 Bytes
Versions: 5
Compression:
Stored size: 816 Bytes
Contents
# frozen_string_literal: true module Decidim class ProfileCell < Decidim::ViewModel include Decidim::ApplicationHelper include Decidim::Core::Engine.routes.url_helpers include Decidim::UserProfileHelper include Decidim::AriaSelectedLinkToHelper include ActiveLinkTo delegate :current_organization, :current_user, :user_groups_enabled?, to: :controller def show render :show end def profile_holder model end def content_cell context[:content_cell] end def active_content context[:active_content] end def own_profile? current_user && current_user == profile_holder end def profile_tabs return render :user_group_tabs if profile_holder.is_a?(Decidim::UserGroup) render :user_tabs end end end
Version data entries
5 entries across 5 versions & 1 rubygems