app/helpers/notifications_helper.rb
# provide text or link for header of notification card
provide text or link for header of notification card
provide text or link for header of notification card
def notification_header(notification)
    notifiable = notification.notifiable
    text = if notification.medium?
             medium_notification_card_header(notifiable)
           elsif notification.course? || notification.lecture?
             t('notifications.course_selection')
           elsif notification.lecture_announcement?
             announcement_notification_card_header(notifiable)
           else
             link_to t('mampf_news.title'), news_path, class: 'text-dark'
           end
    text.html_safe
  end
def notification_header ( notification ) notifiable = notification . notifiable text = if notification . medium? medium_notification_card_header ( notifiable ) elsif notification . course? || notification . lecture? t ( 'notifications.course_selection' ) elsif notification . lecture_announcement? announcement_notification_card_header ( notifiable ) else link_to t ( 'mampf_news.title' ) , news_path , class : 'text-dark' end text . html_safe end
provide text or link for header of notification card
provide text or link for header of notification card
notification
<not_specific>