Skip to content

Commit 53e6c99

Browse files
committed
Use helper instead of partial for contact text
1 parent 29220a0 commit 53e6c99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/helpers/home_helper.rb

+8
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ def next_event_date
88
def localized_recurring_event_date
99
Whitelabel[:localized_recurring]
1010
end
11+
12+
def contact_text
13+
''.html_safe.tap do |out|
14+
out << t('home.send_us_an_email', mail_to: mail_to(Whitelabel[:email], 'E-Mail', title: 'E-Mail'))
15+
out << " #{t('home.or_message_on_twitter', twitter_link: link_to_twitter(Whitelabel[:twitter]))}" if Whitelabel[:twitter]
16+
out << '.'
17+
end
18+
end
1119
end

0 commit comments

Comments
 (0)