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.
14 lines
310 B
Ruby
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
|