Sha256: f3f9141ac76441f1ec6a4a084defc94440f5eaa51f197b52dffb4023a78891b5
Contents?: true
Size: 815 Bytes
Versions: 7
Compression:
Stored size: 815 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
7 entries across 7 versions & 1 rubygems