Sha256: 5715e09c4782554113ab649e928b281ed0b251d52748c0bfcd514d1f9cb5ccf7

Contents?: true

Size: 635 Bytes

Versions: 16

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Plans
    class CoauthorshipsCell < Decidim::CoauthorshipsCell
      def show
        if authorable?
          cell "decidim/plans/author", presenter_for_author(model), extra_classes.merge(has_actions: has_actions?, from: model)
        else
          cell(
            "decidim/plans/collapsible_authors",
            presenters_for_identities(model),
            cell_name: "decidim/plans/author",
            cell_options: extra_classes,
            size: size,
            from: model,
            has_actions: has_actions?
          )
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
decidim-plans-0.18.2 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.18.1 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.18.0 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.17.0 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.9 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.8 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.7 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.6 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.5 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.4 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.3 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.2 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.1 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.16.0 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.15.1 app/cells/decidim/plans/coauthorships_cell.rb
decidim-plans-0.15.0 app/cells/decidim/plans/coauthorships_cell.rb