Sha256: 24cf453879d5244a62333fd0683cb64f31a9f2213da1799da6b52dabeb8c38c4

Contents?: true

Size: 405 Bytes

Versions: 9

Compression:

Stored size: 405 Bytes

Contents

module NotificationsHelper
  def background_for_notification(notification)
    notification.read? ? '' : 'bg-light'
  end

  def notification_preview_item(icon, name, url, **translation_params)
    menu_item icon, name, url, 'mu-notification-preview', translation_params
  end

  def notification_text_preview_item(icon, text, url)
    menu_text_item(icon, text, url, 'mu-notification-preview')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.22.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.21.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.20.1 app/helpers/notifications_helper.rb
mumuki-laboratory-9.20.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.19.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.18.1 app/helpers/notifications_helper.rb
mumuki-laboratory-9.18.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.17.0 app/helpers/notifications_helper.rb