Sha256: 35c3fea75aaf4c4e8e2243010f86f4891adecc05a1e5ed425295ce856e56b33e

Contents?: true

Size: 456 Bytes

Versions: 13

Compression:

Stored size: 456 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
        action == "update" ? I18n.t("decidim.meetings.last_activity.meeting_updated") : I18n.t("decidim.meetings.last_activity.new_meeting")
      end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.4 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.29.0 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.3 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.29.0.rc4 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.29.0.rc3 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.29.0.rc2 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.29.0.rc1 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.2 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.1 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.0 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.0.rc5 app/cells/decidim/meetings/meeting_activity_cell.rb
decidim-meetings-0.28.0.rc4 app/cells/decidim/meetings/meeting_activity_cell.rb