Sha256: 5c1d613e0cbd93fea57f7cb89b81f8e83cca7035d5b629657cbe4cfd740262e5

Contents?: true

Size: 766 Bytes

Versions: 19

Compression:

Stored size: 766 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module AdminLog
    # This class holds the logic to present a `Decidim::UserGroup`
    # for the `AdminLog` log.
    #
    # Usage should be automatic and you shouldn't need to call this class
    # directly, but here's an example:
    #
    #    action_log = Decidim::ActionLog.last
    #    view_helpers # => this comes from the views
    #    UserGroupPresenter.new(action_log, view_helpers).present
    class UserGroupPresenter < Decidim::Log::BasePresenter
      private

      def has_diff?
        false
      end

      def action_string
        case action
        when "verify", "reject"
          "decidim.admin_log.user_group.#{action}"
        else
          super
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-core-0.15.2 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.15.1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.15.0 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.14.4 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.14.3 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.14.2 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.14.1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.13.1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.12.2 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.13.0 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.12.1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.13.0.pre1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.12.0 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.11.2 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.12.0.pre app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.11.1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.11.0.pre1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.10.1 app/presenters/decidim/admin_log/user_group_presenter.rb
decidim-core-0.10.0 app/presenters/decidim/admin_log/user_group_presenter.rb