Sha256: 0e2a9e84a4b9488cc4dc3d18aeb59038aafcb2926c5300dc44c0d7d5bc47aa95

Contents?: true

Size: 642 Bytes

Versions: 29

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Workflow
    class PendingReviewNotification < AbstractNotification
      private

      def subject
        I18n.t('hyrax.notifications.workflow.pending_review.subject')
      end

      def message
        I18n.t('hyrax.notifications.workflow.pending_review.message', title: title,
                                                                      link: (link_to work_id, document_path),
                                                                      user: user.user_key, comment: comment)
      end

      def users_to_notify
        super << user
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.4 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.3 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.2 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.0 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.0.rc3 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.0.rc2 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-5.0.0.rc1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.6.0 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-4.0.0 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-4.0.0.rc3 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-4.0.0.rc2 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-4.0.0.rc1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.5.0 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-4.0.0.beta2 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.4.2 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-4.0.0.beta1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.4.1 app/services/hyrax/workflow/pending_review_notification.rb
hyrax-3.4.0 app/services/hyrax/workflow/pending_review_notification.rb