app/helpers/announcements_helper.rb
# create text for notification about new announcement in notification dropdown
# menu
create text for notification about new announcement in notification dropdown
menu
create text for notification about new announcement in notification dropdown menu
def announcement_notification_item_header(announcement)
    unless announcement.lecture.present?
      return t('notifications.mampf_announcement')
    end
    t('notifications.lecture_announcement',
      title: announcement.lecture.title_for_viewers)
  end
def announcement_notification_item_header ( announcement ) unless announcement . lecture . present? return t ( 'notifications.mampf_announcement' ) end t ( 'notifications.lecture_announcement' , title : announcement . lecture . title_for_viewers ) end
create text for notification about new announcement in notification dropdown
menu
create text for notification about new announcement in notification dropdown menu
announcement
<not_specific>