openstreetmap-website/app/helpers/notifier_helper.rb
Herve Saint-Amand ac081305f2 Remove HTML markup from locale file
Rather than including HTML markup in the locale file (which also has the inconvenience of requiring both a plain-text and an HTML duplicate of the same string), move the markup to the template. Also added a helper to reduce clutter in the template slightly.
2017-01-03 22:38:58 +00:00

14 lines
310 B
Ruby

module NotifierHelper
def fp(text)
format_paragraph(text, 72, 0)
end
def link_to_user(display_name)
link_to(
display_name,
user_url(display_name, :host => SERVER_URL),
:target => "_blank",
:style => "text-decoration: none; color: #222; font-weight: bold"
)
end
end