Sha256: f0065379a85711fdbd1a48e22177cdcd123eef64c0ba2140fe6dba4a216f37b2

Contents?: true

Size: 344 Bytes

Versions: 73

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    #
    # Decorator for conference speakers
    #
    class ConferenceSpeakerPresenter < SimpleDelegator
      def name
        if user
          "#{user.name} (#{Decidim::UserPresenter.new(user).nickname})"
        else
          full_name
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.4 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.27.9 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.29.0 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.3 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.27.8 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.29.0.rc4 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.29.0.rc3 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.29.0.rc2 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.29.0.rc1 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.2 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.27.7 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.1 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.27.6 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.26.10 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.26.9 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.0 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.27.5 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.0.rc5 app/presenters/decidim/admin/conference_speaker_presenter.rb
decidim-conferences-0.28.0.rc4 app/presenters/decidim/admin/conference_speaker_presenter.rb