Sha256: 5dfe9ebfe378468bd086a838cd82005743da71493c935181f43941d689cf4654

Contents?: true

Size: 528 Bytes

Versions: 7

Compression:

Stored size: 528 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")
      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

7 entries across 7 versions & 1 rubygems

Version Path
decidim-budgets-0.28.4 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.28.3 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.28.2 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.28.1 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.28.0 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.28.0.rc5 app/cells/decidim/budgets/order_activity_cell.rb
decidim-budgets-0.28.0.rc4 app/cells/decidim/budgets/order_activity_cell.rb