Sha256: e7600bde02be76b162e9789a599c16c9728f6fa38426513aa0db31d26c5733d3

Contents?: true

Size: 664 Bytes

Versions: 39

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    # A cell to display when actions happen on a meeting.
    class MeetingActivityCell < ActivityCell
      def title
        case action
        when "update"
          I18n.t(
            "decidim.meetings.last_activity.meeting_updated_at_html",
            link: participatory_space_link
          )
        else
          I18n.t(
            "decidim.meetings.last_activity.new_meeting_at_html",
            link: participatory_space_link
          )
        end
      end

      def resource_link_text
        Decidim::Meetings::MeetingPresenter.new(resource).title
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
decidim-meetings-0.27.9 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.8 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.7 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.6 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.10 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.9 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.5 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.8 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.4 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.3 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.7 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.5 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.2 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.1 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.4 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.0 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.3 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.0.rc2 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.27.0.rc1 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.26.2 app/cells/decidim/meetings/meeting_activity_cell.rb