app/helpers/notifications_helper.rb
# provide text for body of notification card
provide text for body of notification card
provide text for body of notification card
def notification_text(notification)
    notifiable = notification.notifiable
    text = if notification.medium?
             t('notifications.new_medium')
           elsif notification.course?
             course_notification_card_text(notifiable)
           elsif notification.lecture?
             lecture_notification_card_text(notifiable)
           else
             t('notifications.new_announcement')
           end
    text.html_safe
  end
def notification_text ( notification ) notifiable = notification . notifiable text = if notification . medium? t ( 'notifications.new_medium' ) elsif notification . course? course_notification_card_text ( notifiable ) elsif notification . lecture? lecture_notification_card_text ( notifiable ) else t ( 'notifications.new_announcement' ) end text . html_safe end
provide text for body of notification card
provide text for body of notification card
notification
<not_specific>