Sha256: 262af816c533a4fd075393642e71797d770ca81c10b05c474b7601d65605de42

Contents?: true

Size: 458 Bytes

Versions: 85

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    # This cell renders the card for an instance of an Assembly member
    class AssemblyMemberCell < Decidim::ViewModel
      property :designation_date
      property :name
      property :nickname
      property :personal_information
      property :position
      property :profile_url

      private

      def has_profile?
        model.profile_url.present?
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
decidim-assemblies-0.13.0 app/cells/decidim/assemblies/assembly_member_cell.rb
decidim-assemblies-0.12.1 app/cells/decidim/assemblies/assembly_member_cell.rb
decidim-assemblies-0.13.0.pre1 app/cells/decidim/assemblies/assembly_member_cell.rb
decidim-assemblies-0.12.0 app/cells/decidim/assemblies/assembly_member_cell.rb
decidim-assemblies-0.12.0.pre app/cells/decidim/assemblies/assembly_member_cell.rb