Skip to content

Commit

Permalink
Use helper instead of partial for contact text
Browse files Browse the repository at this point in the history
  • Loading branch information
richardboehme committed Oct 31, 2024
1 parent 29220a0 commit 53e6c99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/helpers/home_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ def next_event_date
def localized_recurring_event_date
Whitelabel[:localized_recurring]
end

def contact_text
''.html_safe.tap do |out|
out << t('home.send_us_an_email', mail_to: mail_to(Whitelabel[:email], 'E-Mail', title: 'E-Mail'))
out << " #{t('home.or_message_on_twitter', twitter_link: link_to_twitter(Whitelabel[:twitter]))}" if Whitelabel[:twitter]
out << '.'
end
end
end

0 comments on commit 53e6c99

Please sign in to comment.