Url sent in mails are now enclosed in angled brackets,
as recommended in RFC 3986 section C (ftp://ftp.rfc-editor.org/in-notes/rfc3986.txt) Close #77
This commit is contained in:
parent
0b4f398f61
commit
d574b1624a
@ -1,17 +1,22 @@
|
||||
= t '.body', moderator: @current_user
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= event_url @event
|
||||
\
|
||||
= t '.edit_link'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= edit_event_url @event, secret: @event.secret
|
||||
\
|
||||
= t '.delete_link'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= cancel_event_url @event, secret: @event.secret
|
||||
\
|
||||
- if @event.repeat > 0 && !@event.event_id
|
||||
= t '.repeat_helper', count: @event.repeat
|
||||
- @event.events.each do |e|
|
||||
= e
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= edit_event_url e, secret: e.secret
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= cancel_event_url e, secret: e.secret
|
||||
\
|
||||
= render file: '/events/show'
|
||||
|
@ -1,8 +1,10 @@
|
||||
= t '.body', subject: @event.title,
|
||||
start_time: l(@event.start_time, format: :at)
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= edit_event_url @event, secret: @event.secret
|
||||
\
|
||||
= t '.delete_link'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= cancel_event_url @event, secret: @event.secret
|
||||
\
|
||||
= t '.signature'
|
||||
|
@ -3,6 +3,7 @@
|
||||
= render file: '/events/show'
|
||||
\
|
||||
= t '.access'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= event_url @event
|
||||
\
|
||||
= t '.signature'
|
||||
|
@ -1,5 +1,6 @@
|
||||
= t '.body', subject: @event.title, start_time: l(@event.start_time,
|
||||
format: :at)
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= moderations_url
|
||||
\
|
||||
= render file: '/events/show'
|
||||
|
@ -13,6 +13,7 @@
|
||||
Differ.format = Differ::Format::Patch
|
||||
= Differ.diff new, prev
|
||||
\
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
- if @current_user
|
||||
= edit_moderation_url @event
|
||||
- else
|
||||
|
@ -2,6 +2,7 @@
|
||||
\
|
||||
= strip_tags @note.contents
|
||||
\
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= moderations_url
|
||||
\
|
||||
= t '.signature'
|
||||
|
@ -6,6 +6,7 @@
|
||||
\
|
||||
= t '.edit_link'
|
||||
\
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= edit_event_url @note.event, secret: @note.event.secret
|
||||
\
|
||||
= t '.signature'
|
||||
|
@ -3,6 +3,7 @@
|
||||
= render file: '/orgas/show'
|
||||
\
|
||||
= t '.access'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= orga_url @orga
|
||||
\
|
||||
= t '.signature'
|
||||
|
@ -1,7 +1,9 @@
|
||||
= t '.body', subject: @orga.name
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= edit_orga_url @orga, secret: @orga.secret
|
||||
\
|
||||
= t '.delete_link'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= cancel_orga_url @orga, secret: @orga.secret
|
||||
\
|
||||
= t '.signature'
|
||||
|
@ -14,6 +14,7 @@
|
||||
= Differ.diff new, prev
|
||||
|
||||
= t '.access'
|
||||
= surround '<'.html_safe, '>'.html_safe do
|
||||
= orga_url @orga
|
||||
\
|
||||
= t '.signature'
|
||||
|
Loading…
Reference in New Issue
Block a user