Sha256: 708e2e86e097403e0b9fb5e5f1c6d64b48bee671f09ae06487211d78a1351a3a

Contents?: true

Size: 649 Bytes

Versions: 4

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DecidimAwesome
    module Voting
      class VotingCardsProposalModalCell < VotingCardsBaseCell
        include Decidim::Proposals::Engine.routes.url_helpers

        def show
          render :show
        end

        def vote_instructions
          translated_attribute(current_component.settings.voting_cards_instructions).presence || t("decidim.decidim_awesome.voting.voting_cards.default_instructions_html",
                                                                                                   organization: current_organization.name)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb
decidim-decidim_awesome-0.10.2 app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb
decidim-decidim_awesome-0.10.1 app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb
decidim-decidim_awesome-0.10.0 app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb