Sha256: 45dc9ddf2ebbcfd9028ef9259ff5d7f66f5f8bba7984eb29475e533519047ae3

Contents?: true

Size: 407 Bytes

Versions: 10

Compression:

Stored size: 407 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

10 entries across 10 versions & 1 rubygems

Version Path
mumuki-laboratory-9.16.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.15.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.14.1 app/helpers/notifications_helper.rb
mumuki-laboratory-9.14.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.13.2 app/helpers/notifications_helper.rb
mumuki-laboratory-9.13.1 app/helpers/notifications_helper.rb
mumuki-laboratory-9.13.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.12.1 app/helpers/notifications_helper.rb
mumuki-laboratory-9.12.0 app/helpers/notifications_helper.rb
mumuki-laboratory-9.11.0 app/helpers/notifications_helper.rb