Method: Thredded::ApplicationHelper#topic_follow_reason_text
- Defined in:
- app/helpers/thredded/application_helper.rb
#topic_follow_reason_text(follow_reason) ⇒ Object
96 97 98 99 100 101 102 103 104 105 |
# File 'app/helpers/thredded/application_helper.rb', line 96 def topic_follow_reason_text(follow_reason) if follow_reason # rubocop:disable Metrics/LineLength # i18n-tasks-use t('thredded.topics.following.manual') t('thredded.topics.following.posted') t('thredded.topics.following.mentioned') t('thredded.topics.following.auto') # rubocop:enable Metrics/LineLength t("thredded.topics.following.#{follow_reason}") else t('thredded.topics.not_following') end end |