Sha256: af5b3dd6ba84e1b027b179b1752f3521bf21518a6156dc9a7c09e9f051f73935

Contents?: true

Size: 595 Bytes

Versions: 12

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Budgets
    # A cell to display when actions happen on an order.
    class OrderActivityCell < ActivityCell
      def title
        I18n.t(
          "decidim.budgets.last_activity.new_vote_at_html",
          link: participatory_space_link
        )
      end

      def resource_link_path
        resource_locator(budget).path
      end

      def resource_link_text
        decidim_html_escape(translated_attribute(budget.title))
      end

      private

      def budget
        @budget ||= resource.budget
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-budgets-0.27.9 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.8 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.7 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.6 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.5 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.4 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.3 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.2 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.1 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.0 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.0.rc2 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.27.0.rc1 app/cells/decidim/budgets/order_activity_cell.rb