- <%= pgettext( + {pgettext( "terms", "Some terms, technical or otherwise, used in the text below may cover concepts that are difficult to grasp. We have provided a glossary to help you understand them better." ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/api/privacy.html.heex b/lib/web/templates/api/privacy.html.heex index b54b60f95..8466cc96b 100644 --- a/lib/web/templates/api/privacy.html.heex +++ b/lib/web/templates/api/privacy.html.heex @@ -1,178 +1,178 @@ -
- <%= pgettext( + {pgettext( "terms", "We collect information from you when you register on this instance and gather data when you participate in the platform by reading, writing, and interacting with content shared here. If you register on this instance, you will be asked to enter an email address, a password (hashed) and at least an username. Your email address will be verified by an email containing a unique link. Once the link is activated, we know you control that email address. You may also enter additional profile information such as a display name and biography, and upload a profile picture and header image. The username, display name, biography, profile picture and header image are always listed publicly. You may however visit this instance without registering." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "Your events and comments are delivered to other instances that follow your own, meaning they are delivered to different instances and copies are stored there. When you delete events or comments, this is likewise delivered to these other instances. All interactions related to event features - such as joining an event - or group features - such as managing resources - are federated as well. Please keep in mind that the operators of the instance and any receiving instances may view such messages and information, and that recipients may screenshot, copy or otherwise re-share them." ) - |> raw %> + |> raw}
- <%= pgettext("terms", "Do not share any dangerous information over Mobilizon.") %> + {pgettext("terms", "Do not share any dangerous information over Mobilizon.")}
- <%= pgettext( + {pgettext( "terms", "We also may retain server logs which include the IP address of every request to our server." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "Any of the information we collect from you may be used in the following ways:" - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "We implement a variety of security measures to maintain the safety of your personal information when you enter, submit, or access your personal information. Among other things, your browser session, as well as the traffic between your applications and the API, are secured with SSL/TLS, and your password is hashed using a strong one-way algorithm." - ) %> + )}
-<%= pgettext("terms", "We will make a good faith effort to:") %>
+{pgettext("terms", "We will make a good faith effort to:")}
<%= pgettext("terms", "You may irreversibly delete your account at any time.") %>
-{pgettext("terms", "You may irreversibly delete your account at any time.")}
+- <%= pgettext("terms", "We store the following information on your device when you connect:") %> + {pgettext("terms", "We store the following information on your device when you connect:")}
<%= pgettext("terms", "If you delete this information, you need to login again.") %>
+{pgettext("terms", "If you delete this information, you need to login again.")}
- <%= pgettext( + {pgettext( "terms", "If you're not connected, we don't store any information on your device, unless you participate in an event anonymously. In this specific case we store the hash of an unique identifier for the event and participation status in your browser so that we may display participation status. Deleting this information will only stop displaying participation status in your browser." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "Note: This information is stored in your localStorage and not your cookies." - ) %> + )}- <%= pgettext( + {pgettext( "terms", "No. We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. This does not include trusted third parties who assist us in operating our site, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others rights, property, or safety." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "If this server is in the EU or the EEA: Our site, products and services are all directed to people who are at least 16 years old. If you are under the age of 16, per the requirements of the GDPR (General Data Protection Regulation) do not use this site." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "If this server is in the USA: Our site, products and services are all directed to people who are at least 13 years old. If you are under the age of 13, per the requirements of COPPA (Children's Online Privacy Protection Act) do not use this site." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "Law requirements can be different if this server is in another jurisdiction." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "If we decide to change our privacy policy, we will post those changes on this page." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "This document is licensed under CC BY-SA. It was last updated June 18, 2020." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "Originally adapted from the Mastodon and Discourse privacy policies, also licensed under CC BY-SA." ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/api/terms.html.heex b/lib/web/templates/api/terms.html.heex index 69f89307b..5bbff44e7 100644 --- a/lib/web/templates/api/terms.html.heex +++ b/lib/web/templates/api/terms.html.heex @@ -1,326 +1,326 @@- <%= pgettext( + {pgettext( "terms", "Here are the important things you need to know about accessing and using the %{instance_name} (%{instance_url}) website and service (collectively, \"Service\"). These are our terms of service (\"Terms\"). Please read them carefully.", %{instance_name: @instance_name, instance_url: @instance_url} ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "When we say “we”, “our”, or “us” in this document, we are referring to the owners, operators and administrators of this Mobilizon instance. The Mobilizon software is provided by the team of Mobilizon contributors. Unless explicitly stated, this Mobilizon instance is an independent service using Mobilizon's source code. You may find more information about this instance on the \"About this instance\" page." ) - |> raw %> + |> raw}
-- <%= pgettext( + {pgettext( "terms", "By accessing or using the Service, this means you agree to be bound by all the terms below. If these terms are in any way unclear, please let us know by contacting %{contact}.", %{contact: @instance_contact} ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "We reserve the right to modify these Terms at any time. For instance, we may need to change these Terms if we come out with a new feature." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "If we make major changes, we will notify our users in a clear and prominent manner. Minor changes may only be highlighted in the footer of our website. It is your responsibility to check the website regularly for changes to these Terms." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "If you continue to use the Service after the revised Terms go into effect, you accept the revised Terms." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "For information about how we collect and use information about users of the Service, please check our privacy policy." ) - |> raw %> + |> raw}
-- <%= pgettext( + {pgettext( "terms", "When you create an account you agree to maintain the security and confidentiality of your password and accept all risks of unauthorized access to your account data and any other information you provide to %{instance_name}.", %{instance_name: @instance_name} ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "If you discover or suspect any Service security breaches, please let us know as soon as possible. For security holes in the Mobilizon software itself, please contact its contributors directly." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "We are not liable for any loss you may incur as a result of someone else using your email or password, either with or without your knowledge." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "Our Service allows you and other users to post, link and otherwise make available content. You are responsible for the content that you make available to the Service, including its legality, reliability, and appropriateness." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "When you post, link or otherwise make available content to the Service, you grant us the right and license to display and distribute your content on or through the Service (including via applications). We may format your content for display throughout the Service, but we will not edit or revise the substance of your content itself. The displaying and distribution of your content happens only according to the visibility rules you have set for the content. We will not modify the visibility of the content you have set." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "We cannot be held responsible should a programming or administrative error make your content visible to a larger audience than intended. Aside from our limited right to your content, you retain all of your rights to the content you post, link and otherwise make available on or through the Service." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "You can remove the content that you posted by deleting it. Once you delete your content, it will not appear on the Service, but copies of your deleted content may remain in our system or backups for some period of time. Web server access logs might also be stored for some time in the system." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "Since Mobilizon is a distributed network, it is possible, depending on the visibility rules set to your content, that your content has been distributed to other Mobilizon instances. When you delete your content, we will request those other instances to also delete the content. Our responsibility on the content being deleted from those other instances ends here. If for some reason, some other instance does not delete the content, we cannot be held responsible." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "In order to make %{instance_name} a great place for all of us, please do not post, link and otherwise make available on or through the Service any of the following:", %{instance_name: @instance_name} ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "Also, you agree that you will not do any of the following in connection with the Service or other users:" - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "Finally, your use of the Service is also subject to acceptance of the instance's own specific rules regarding the code of conduct and moderation rules. Breaking those rules may also result in your account being disabled or suspended." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "Instance administrators (and community moderators, given the relevant access) are responsible for monitoring and acting on flagged content and other user reports, and have the right and responsibility to remove or edit content that is not aligned to this Instance set of rules, or to suspend, block or ban (temporarily or permanently) any account, community, or instance for breaking these terms, or for other behaviours that they deem inappropriate, threatening, offensive, or harmful." - ) %> + )}
- <%= pgettext( + {pgettext( "terms", "Instance administrators should ensure that every community hosted on the instance is properly moderated according to the defined rules." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "This Service runs on a Mobilizon instance. This source code is licensed under an AGPLv3 license which means you are allowed to and even encouraged to take the source code, modify it and use it." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "For full details about the Mobilizon software see here." ) - |> raw %> + |> raw}
-- <%= pgettext( + {pgettext( "terms", "%{instance_name} makes no claim or representation regarding, and accepts no responsibility for third party websites accessible by hyperlink from the Service or websites linking to the Service. When you leave the Service, you should be aware that these Terms and our policies no longer govern. The inclusion of any link does not imply endorsement by %{instance_name} of the site. Use of any such linked website is at the user's own risk.", %{instance_name: @instance_name} ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "A lot of the content on the Service is from you and others, and we don't review, verify or authenticate it, and it may include inaccuracies or false information. We make no representations, warranties, or guarantees relating to the quality, suitability, truth, accuracy or completeness of any content contained in the Service. You acknowledge sole responsibility for and assume all risk arising from your use of or reliance on any content." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "If you breach any of these Terms, we have the right to suspend or disable your access to or use of the Service." - ) %> + )}
-- <%= pgettext( + {pgettext( "terms", "These Terms constitute the entire agreement between you and %{instance_name} regarding the use of the Service, superseding any prior agreements between you and %{instance_name} relating to your use of the Service.", %{instance_name: @instance_name} ) - |> raw %> + |> raw}
-- <%= pgettext( + {pgettext( "terms", "We love feedback. Please let us know what you think of the Service, these Terms and, in general, %{instance_name}.", %{instance_name: @instance_name} ) - |> raw %> + |> raw}
-- <%= pgettext( + {pgettext( "terms", "Questions or comments about the Service may be directed to us at %{contact}", %{contact: @instance_contact} ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "This document is licensed under CC BY-SA. It was last updated June 22, 2020." ) - |> raw %> + |> raw}
- <%= pgettext( + {pgettext( "terms", "Originally adapted from the Diaspora* and App.net privacy policies, also licensed under CC BY-SA." ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/activity/_comment_activity_item.html.heex b/lib/web/templates/email/activity/_comment_activity_item.html.heex index 169608daf..fc9f9eef2 100644 --- a/lib/web/templates/email/activity/_comment_activity_item.html.heex +++ b/lib/web/templates/email/activity/_comment_activity_item.html.heex @@ -1,34 +1,34 @@ <%= case @activity.subject do %> <% :event_comment_mention -> %> - <%= dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.", %{ + {dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% :participation_event_comment -> %> - <%= dgettext("activity", "%{profile} has posted an announcement under event %{event}.", %{ + {dgettext("activity", "%{profile} has posted an announcement under event %{event}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% :event_new_comment -> %> <%= if @activity.subject_params["comment_reply_to"] do %> - <%= dgettext("activity", "%{profile} has posted a new reply under your event %{event}.", %{ + {dgettext("activity", "%{profile} has posted a new reply under your event %{event}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}#comment-#{@activity.subject_params["comment_reply_to_uuid"]}-#{@activity.subject_params["comment_uuid"]}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% else %> - <%= dgettext( + {dgettext( "activity", "%{profile} has posted a new comment under your event %{event}.", %{ @@ -39,6 +39,6 @@ " } ) - |> raw %> + |> raw} <% end %> <% end %> diff --git a/lib/web/templates/email/activity/_conversation_activity_item.html.heex b/lib/web/templates/email/activity/_conversation_activity_item.html.heex index 8debdd3db..3f33684ec 100644 --- a/lib/web/templates/email/activity/_conversation_activity_item.html.heex +++ b/lib/web/templates/email/activity/_conversation_activity_item.html.heex @@ -1,16 +1,16 @@ <%= case @activity.subject do %> <% :conversation_created -> %> - <%= dgettext("activity", "%{profile} mentionned you in a %{conversation}.", %{ + {dgettext("activity", "%{profile} mentionned you in a %{conversation}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", conversation: " url() |> URI.decode()}\">conversation" }) - |> raw %> + |> raw} <% :conversation_replied -> %> - <%= dgettext("activity", "%{profile} replied you in a %{conversation}.", %{ + {dgettext("activity", "%{profile} replied you in a %{conversation}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", conversation: " url() |> URI.decode()}\">conversation" }) - |> raw %> + |> raw} <% end %> diff --git a/lib/web/templates/email/activity/_discussion_activity_item.html.heex b/lib/web/templates/email/activity/_discussion_activity_item.html.heex index ce02312c5..04b8ba51b 100644 --- a/lib/web/templates/email/activity/_discussion_activity_item.html.heex +++ b/lib/web/templates/email/activity/_discussion_activity_item.html.heex @@ -1,40 +1,40 @@ <%= case @activity.subject do %> <% :discussion_created -> %> - <%= dgettext("activity", "%{profile} created the discussion %{discussion}.", %{ + {dgettext("activity", "%{profile} created the discussion %{discussion}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", discussion: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["discussion_title"])}" }) - |> raw %> + |> raw} <% :discussion_replied -> %> - <%= dgettext("activity", "%{profile} replied to the discussion %{discussion}.", %{ + {dgettext("activity", "%{profile} replied to the discussion %{discussion}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", discussion: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["discussion_title"])}" }) - |> raw %> + |> raw} <% :discussion_renamed -> %> - <%= dgettext("activity", "%{profile} renamed the discussion %{discussion}.", %{ + {dgettext("activity", "%{profile} renamed the discussion %{discussion}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", discussion: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["discussion_title"])}" }) - |> raw %> + |> raw} <% :discussion_archived -> %> - <%= dgettext("activity", "%{profile} archived the discussion %{discussion}.", %{ + {dgettext("activity", "%{profile} archived the discussion %{discussion}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", discussion: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["discussion_title"])}" }) - |> raw %> + |> raw} <% :discussion_deleted -> %> - <%= dgettext("activity", "%{profile} deleted the discussion %{discussion}.", %{ + {dgettext("activity", "%{profile} deleted the discussion %{discussion}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", discussion: "#{escape_html(@activity.subject_params["discussion_title"])}" }) - |> raw %> + |> raw} <% end %> diff --git a/lib/web/templates/email/activity/_event_activity_item.html.heex b/lib/web/templates/email/activity/_event_activity_item.html.heex index 8d8ba1ae8..c7e8d0e7d 100644 --- a/lib/web/templates/email/activity/_event_activity_item.html.heex +++ b/lib/web/templates/email/activity/_event_activity_item.html.heex @@ -1,53 +1,53 @@ <%= case @activity.subject do %> <% :event_created -> %> - <%= dgettext("activity", "The event %{event} was created by %{profile}.", %{ + {dgettext("activity", "The event %{event} was created by %{profile}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% :event_updated -> %> - <%= dgettext("activity", "The event %{event} was updated by %{profile}.", %{ + {dgettext("activity", "The event %{event} was updated by %{profile}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% :event_deleted -> %> - <%= dgettext("activity", "The event %{event} was deleted by %{profile}.", %{ + {dgettext("activity", "The event %{event} was deleted by %{profile}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: "#{escape_html(@activity.subject_params["event_title"])}" }) - |> raw %> + |> raw} <% :comment_posted -> %> <%= if @activity.subject_params["comment_reply_to"] do %> - <%= dgettext("activity", "%{profile} replied to a comment on the event %{event}.", %{ + {dgettext("activity", "%{profile} replied to a comment on the event %{event}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% else %> - <%= dgettext("activity", "%{profile} posted a comment on the event %{event}.", %{ + {dgettext("activity", "%{profile} posted a comment on the event %{event}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["event_title"])} " }) - |> raw %> + |> raw} <% end %> <% :event_new_participation -> %> - <%= dgettext("activity", "%{profile} joined your event %{event}.", %{ + {dgettext("activity", "%{profile} joined your event %{event}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", event: " url() |> URI.decode()}\">#{escape_html(@activity.subject_params["event_title"])}" }) - |> raw %> + |> raw} <% end %> diff --git a/lib/web/templates/email/activity/_group_activity_item.html.heex b/lib/web/templates/email/activity/_group_activity_item.html.heex index bfd8b2b6b..73e06a0b9 100644 --- a/lib/web/templates/email/activity/_group_activity_item.html.heex +++ b/lib/web/templates/email/activity/_group_activity_item.html.heex @@ -1,20 +1,20 @@ <%= case @activity.subject do %> <% :group_created -> %> - <%= dgettext("activity", "%{profile} created the group %{group}.", %{ + {dgettext("activity", "%{profile} created the group %{group}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", group: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["group_name"])} " }) - |> raw %> + |> raw} <% :group_updated -> %> - <%= dgettext("activity", "%{profile} updated the group %{group}.", %{ + {dgettext("activity", "%{profile} updated the group %{group}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", group: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["group_name"])} " }) - |> raw %> + |> raw} <% end %> diff --git a/lib/web/templates/email/activity/_member_activity_item.html.heex b/lib/web/templates/email/activity/_member_activity_item.html.heex index f51fb6b92..a76dd0d98 100644 --- a/lib/web/templates/email/activity/_member_activity_item.html.heex +++ b/lib/web/templates/email/activity/_member_activity_item.html.heex @@ -1,58 +1,58 @@ <%= case @activity.subject do %> <% :member_request -> %> - <%= dgettext("activity", "%{member} requested to join the group.", %{ + {dgettext("activity", "%{member} requested to join the group.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}" }) - |> raw %> + |> raw} <% :member_invited -> %> - <%= dgettext("activity", "%{member} was invited by %{profile}.", %{ + {dgettext("activity", "%{member} was invited by %{profile}.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}", profile: "#{escaped_display_name_and_username(@activity.author)}" }) - |> raw %> + |> raw} <% :member_accepted_invitation -> %> - <%= dgettext("activity", "%{member} accepted the invitation to join the group.", %{ + {dgettext("activity", "%{member} accepted the invitation to join the group.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}" }) - |> raw %> + |> raw} <% :member_rejected_invitation -> %> - <%= dgettext("activity", "%{member} rejected the invitation to join the group.", %{ + {dgettext("activity", "%{member} rejected the invitation to join the group.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}" }) - |> raw %> + |> raw} <% :member_joined -> %> - <%= dgettext("activity", "%{member} joined the group.", %{ + {dgettext("activity", "%{member} joined the group.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}" }) - |> raw %> + |> raw} <% :member_added -> %> - <%= dgettext("activity", "%{profile} added the member %{member}.", %{ + {dgettext("activity", "%{profile} added the member %{member}.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}", profile: "#{escaped_display_name_and_username(@activity.author)}" }) - |> raw %> + |> raw} <% :member_approved -> %> - <%= dgettext("activity", "%{profile} approved the member %{member}.", %{ + {dgettext("activity", "%{profile} approved the member %{member}.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}", profile: "#{escaped_display_name_and_username(@activity.author)}" }) - |> raw %> + |> raw} <% :member_updated -> %> - <%= dgettext("activity", "%{profile} updated the member %{member}.", %{ + {dgettext("activity", "%{profile} updated the member %{member}.", %{ member: "#{escape_html(@activity.subject_params["member_actor_name"])}", profile: "#{escaped_display_name_and_username(@activity.author)}" }) - |> raw %> + |> raw} <% :member_removed -> %> - <%= dgettext("activity", "%{profile} excluded member %{member}.", %{ + {dgettext("activity", "%{profile} excluded member %{member}.", %{ member: "#{@activity.subject_params["member_actor_name"]}", profile: "#{escaped_display_name_and_username(@activity.author)}" }) - |> raw %> + |> raw} <% :member_quit -> %> - <%= dgettext("activity", "%{profile} quit the group.", %{ + {dgettext("activity", "%{profile} quit the group.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}" }) - |> raw %> + |> raw} <% end %> diff --git a/lib/web/templates/email/activity/_post_activity_item.html.heex b/lib/web/templates/email/activity/_post_activity_item.html.heex index 83a80b1bb..3fd6d3de5 100644 --- a/lib/web/templates/email/activity/_post_activity_item.html.heex +++ b/lib/web/templates/email/activity/_post_activity_item.html.heex @@ -1,26 +1,26 @@ <%= case @activity.subject do %> <% :post_created -> %> - <%= dgettext("activity", "The post %{post} was created by %{profile}.", %{ + {dgettext("activity", "The post %{post} was created by %{profile}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", post: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["post_title"])} " }) - |> raw %> + |> raw} <% :post_updated -> %> - <%= dgettext("activity", "The post %{post} was updated by %{profile}.", %{ + {dgettext("activity", "The post %{post} was updated by %{profile}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", post: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["post_title"])} " }) - |> raw %> + |> raw} <% :post_deleted -> %> - <%= dgettext("activity", "The post %{post} was deleted by %{profile}.", %{ + {dgettext("activity", "The post %{post} was deleted by %{profile}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", post: "#{escape_html(@activity.subject_params["post_title"])}" }) - |> raw %> + |> raw} <% end %> diff --git a/lib/web/templates/email/activity/_resource_activity_item.html.heex b/lib/web/templates/email/activity/_resource_activity_item.html.heex index b4300eabc..c65dbad5e 100644 --- a/lib/web/templates/email/activity/_resource_activity_item.html.heex +++ b/lib/web/templates/email/activity/_resource_activity_item.html.heex @@ -1,27 +1,27 @@ <%= case @activity.subject do %> <% :resource_created -> %> <%= if @activity.subject_params["is_folder"] do %> - <%= dgettext("activity", "%{profile} created the folder %{resource}.", %{ + {dgettext("activity", "%{profile} created the folder %{resource}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", resource: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["resource_title"])} " }) - |> raw %> + |> raw} <% else %> - <%= dgettext("activity", "%{profile} created the resource %{resource}.", %{ + {dgettext("activity", "%{profile} created the resource %{resource}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", resource: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["resource_title"])} " }) - |> raw %> + |> raw} <% end %> <% :resource_renamed -> %> <%= if @activity.subject_params["is_folder"] do %> - <%= dgettext( + {dgettext( "activity", "%{profile} renamed the folder from %{old_resource_title} to %{resource}.", %{ @@ -34,9 +34,9 @@ "#{escape_html(@activity.subject_params["old_resource_title"])}" } ) - |> raw %> + |> raw} <% else %> - <%= dgettext( + {dgettext( "activity", "%{profile} renamed the resource from %{old_resource_title} to %{resource}.", %{ @@ -49,40 +49,40 @@ "#{escape_html(@activity.subject_params["old_resource_title"])}" } ) - |> raw %> + |> raw} <% end %> <% :resource_moved -> %> <%= if @activity.subject_params["is_folder"] do %> - <%= dgettext("activity", "%{profile} moved the folder %{resource}.", %{ + {dgettext("activity", "%{profile} moved the folder %{resource}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", resource: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["resource_title"])} " }) - |> raw %> + |> raw} <% else %> - <%= dgettext("activity", "%{profile} moved the resource %{resource}.", %{ + {dgettext("activity", "%{profile} moved the resource %{resource}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", resource: " url() |> URI.decode()}\"> #{escape_html(@activity.subject_params["resource_title"])} " }) - |> raw %> + |> raw} <% end %> <% :resource_deleted -> %> <%= if @activity.subject_params["is_folder"] do %> - <%= dgettext("activity", "%{profile} deleted the folder %{resource}.", %{ + {dgettext("activity", "%{profile} deleted the folder %{resource}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", resource: "#{escape_html(@activity.subject_params["resource_title"])}" }) - |> raw %> + |> raw} <% else %> - <%= dgettext("activity", "%{profile} deleted the resource %{resource}.", %{ + {dgettext("activity", "%{profile} deleted the resource %{resource}.", %{ profile: "#{escaped_display_name_and_username(@activity.author)}", resource: "#{escape_html(@activity.subject_params["resource_title"])}" }) - |> raw %> + |> raw} <% end %> <% end %> diff --git a/lib/web/templates/email/actor_suspension_participants.html.heex b/lib/web/templates/email/actor_suspension_participants.html.heex index 62f055725..6fd838bc5 100644 --- a/lib/web/templates/email/actor_suspension_participants.html.heex +++ b/lib/web/templates/email/actor_suspension_participants.html.heex @@ -15,10 +15,10 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Your instance's moderation team has decided to suspend %{actor_name} (%{actor_address}). All of their events have been removed and your participation to event %{event} cancelled.", actor_name: @actor.name || @actor.preferred_username, event: @event.title, @@ -56,7 +56,7 @@ do: "@#{@actor.preferred_username}@#{@actor.domain}", else: "@#{@actor.preferred_username}" ) - ) %> + )}
diff --git a/lib/web/templates/email/admin/_role.html.heex b/lib/web/templates/email/admin/_role.html.heex index ecf8c6b2f..313103339 100644 --- a/lib/web/templates/email/admin/_role.html.heex +++ b/lib/web/templates/email/admin/_role.html.heex @@ -1,10 +1,10 @@ <%= case @role do %> <% :administrator -> %> - <%= gettext("Administrator") %> + {gettext("Administrator")} <% :moderator -> %> - <%= gettext("Moderator") %> + {gettext("Moderator")} <% :user -> %> - <%= gettext("User") %> + {gettext("User")} <% :pending -> %> - <%= gettext("Pending") %> + {gettext("Pending")} <% end %> diff --git a/lib/web/templates/email/admin_user_confirmation.html.heex b/lib/web/templates/email/admin_user_confirmation.html.heex index 80ff98dcb..0662c5bef 100644 --- a/lib/web/templates/email/admin_user_confirmation.html.heex +++ b/lib/web/templates/email/admin_user_confirmation.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Hi there! We just wanted to inform you that an administrator from %{instance} just manually confirmed your account.", %{instance: @instance_name} ) - |> raw %> + |> raw}
@@ -59,7 +59,7 @@ style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext("You may now login using your credentials on the service.") %> + {gettext("You may now login using your credentials on the service.")}
@@ -76,7 +76,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Login on %{instance}", %{instance: @instance_name}) %> + {gettext("Login on %{instance}", %{instance: @instance_name})} @@ -93,14 +93,14 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext( + {gettext( "If something doesn't feel right to you, please contact the instance administrator through the contact methods %{start_link}on the instance's about page%{end_link}.", %{ start_link: "", end_link: "" } ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/admin_user_email_changed_new.html.heex b/lib/web/templates/email/admin_user_email_changed_new.html.heex index 97a7b476a..fa9c40125 100644 --- a/lib/web/templates/email/admin_user_email_changed_new.html.heex +++ b/lib/web/templates/email/admin_user_email_changed_new.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Hi there! We just wanted to inform you that an administrator from %{instance} just manually changed your account email from %{old_email} to %{new_email} (this one).", %{instance: @instance_name, old_email: @old_email, new_email: @new_email} ) - |> raw %> + |> raw}
@@ -59,14 +59,14 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext( + {gettext( "If something doesn't feel right to you, please contact the instance administrator through the contact methods %{start_link}on the instance's about page%{end_link}.", %{ start_link: "", end_link: "" } ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/admin_user_email_changed_old.html.heex b/lib/web/templates/email/admin_user_email_changed_old.html.heex index 513b4779b..2912c4204 100644 --- a/lib/web/templates/email/admin_user_email_changed_old.html.heex +++ b/lib/web/templates/email/admin_user_email_changed_old.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Hi there! We just wanted to inform you that an administrator from %{instance} just manually changed your account email from %{old_email} (this one) to %{new_email}.", %{instance: @instance_name, old_email: @old_email, new_email: @new_email} ) - |> raw %> + |> raw}
@@ -59,14 +59,14 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext( + {gettext( "If something doesn't feel right to you, please contact the instance administrator through the contact methods %{start_link}on the instance's about page%{end_link}.", %{ start_link: "", end_link: "" } ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/admin_user_role_changed.html.heex b/lib/web/templates/email/admin_user_role_changed.html.heex index 5dfcb85b1..f45b708e2 100644 --- a/lib/web/templates/email/admin_user_role_changed.html.heex +++ b/lib/web/templates/email/admin_user_role_changed.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Hi there! We just wanted to inform you that an administrator from %{instance} just changed your account role.", %{instance: @instance_name} ) - |> raw %> + |> raw}
@@ -61,18 +61,18 @@| - <%= gettext("Old role") %> + {gettext("Old role")} | - <%= render("admin/_role.html", role: @old_role) %> + {render("admin/_role.html", role: @old_role)} |
| - <%= gettext("New role") %> + {gettext("New role")} | - <%= render("admin/_role.html", role: @new_role) %> + {render("admin/_role.html", role: @new_role)} |
- <%= gettext( + {gettext( "If something doesn't feel right to you, please contact the instance administrator through the contact methods %{start_link}on the instance's about page%{end_link}.", %{ start_link: "", end_link: "" } ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/anonymous_participation_confirmation.html.heex b/lib/web/templates/email/anonymous_participation_confirmation.html.heex index 50f4f9e8e..5b60b8d1d 100644 --- a/lib/web/templates/email/anonymous_participation_confirmation.html.heex +++ b/lib/web/templates/email/anonymous_participation_confirmation.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Hi there! You just registered to join this event: « %{title} ». Please confirm the e-mail address you provided:", title: escape_html(@participant.event.title) ) - |> raw %> + |> raw}
@@ -70,7 +70,7 @@ target="_blank" style="font-size: 20px; font-family: 'Roboto', Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Confirm my e-mail address") %> + {gettext("Confirm my e-mail address")} @@ -87,9 +87,7 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( - "If you wish to cancel your participation, simply click on the link below." - ) %> + {gettext("If you wish to cancel your participation, simply click on the link below.")}
@@ -110,7 +108,7 @@ target="_blank" style="font-size: 20px; font-family: 'Roboto', Helvetica, Arial, sans-serif; color: #3C376E; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Cancel my attendance") %> + {gettext("Cancel my attendance")} @@ -127,7 +125,7 @@ style="padding: 20px 30px 40px 30px; color: #757199; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext("If you didn't trigger this email, you may safely ignore it.") %> + {gettext("If you didn't trigger this email, you may safely ignore it.")}
diff --git a/lib/web/templates/email/before_event_notification.html.heex b/lib/web/templates/email/before_event_notification.html.heex index fbb22607b..4bcd35cff 100644 --- a/lib/web/templates/email/before_event_notification.html.heex +++ b/lib/web/templates/email/before_event_notification.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext("Get ready for %{title}", title: @participant.event.title) %> + {gettext("Get ready for %{title}", title: @participant.event.title)}
@@ -62,7 +62,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Go to event page") %> + {gettext("Go to event page")} @@ -79,9 +79,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext( + {gettext( "If you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button." - ) %> + )}
diff --git a/lib/web/templates/email/date/event_tz_date.html.heex b/lib/web/templates/email/date/event_tz_date.html.heex index 679f6f66a..4fcee0c85 100644 --- a/lib/web/templates/email/date/event_tz_date.html.heex +++ b/lib/web/templates/email/date/event_tz_date.html.heex @@ -1,21 +1,21 @@ <%= if @event.options.timezone == nil do %> - <%= @date |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale, :short) %> + {@date |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale, :short)} <% else %> - <%= @date + {@date |> datetime_tz_convert(@event.options.timezone) - |> datetime_to_string(@locale, :short) %> + |> datetime_to_string(@locale, :short)}- <%= gettext("This is a demonstration site to test Mobilizon.") %> + {gettext("This is a demonstration site to test Mobilizon.")}
- <%= gettext("Please do not use it for real purposes.") %> + {gettext("Please do not use it for real purposes.")}
- <%= gettext("%{instance} is powered by Mobilizon.",
+ {gettext("%{instance} is powered by Mobilizon.",
instance: @instance_name
)
- |> raw %>
+ |> raw}
- <%= gettext("Learn more about Mobilizon here!") %>
+ {gettext("Learn more about Mobilizon here!")}
- <%= @activity.subject_params["conversation_text"] + {@activity.subject_params["conversation_text"] |> sanitize_to_basic_html() - |> raw() %> + |> raw()}
- <%= gettext( + {gettext( "Hi there! It seems like you wanted to change the email address linked to your account on %{instance}. If you still wish to do so, please click the button below to confirm the change. You will then be able to log in to %{instance} with this new email address.", %{instance: @instance_name} ) - |> raw %> + |> raw}
@@ -65,7 +65,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Verify your email address") %> + {gettext("Verify your email address")} @@ -82,7 +82,7 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext("If you didn't trigger the change yourself, please ignore this message.") %> + {gettext("If you didn't trigger the change yourself, please ignore this message.")}
diff --git a/lib/web/templates/email/email_changed_old.html.heex b/lib/web/templates/email/email_changed_old.html.heex index 55b578f18..a6bf9516c 100644 --- a/lib/web/templates/email/email_changed_old.html.heex +++ b/lib/web/templates/email/email_changed_old.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "The email address for your account on %{host} is being changed to:", host: @instance_name ) - |> raw %> + |> raw}
@@ -60,7 +60,7 @@| - <%= @new_email %> + {@new_email} |
- <%= gettext( + {gettext( "If you did not trigger this change yourself, it is likely that someone has gained access to your %{host} account. Please log in and change your password immediately. If you cannot login, contact the admin on %{host}.", host: @instance_name - ) %> + )}
diff --git a/lib/web/templates/email/email_configuration_test.html.heex b/lib/web/templates/email/email_configuration_test.html.heex index 8c20806cb..ac576fbc8 100644 --- a/lib/web/templates/email/email_configuration_test.html.heex +++ b/lib/web/templates/email/email_configuration_test.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( - "If you received this email, the email configuration seems to be correct." - ) %> + {gettext("If you received this email, the email configuration seems to be correct.")}
diff --git a/lib/web/templates/email/email_direct_activity.html.heex b/lib/web/templates/email/email_direct_activity.html.heex index 1a3af16ed..3b078f830 100644 --- a/lib/web/templates/email/email_direct_activity.html.heex +++ b/lib/web/templates/email/email_direct_activity.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" ><%= case activity.type do %> <% :discussion -> %> - <%= render("activity/_discussion_activity_item.html", + {render("activity/_discussion_activity_item.html", activity: activity - ) %> + )} <% :conversation -> %> - <%= render("activity/_conversation_activity_item.html", + {render("activity/_conversation_activity_item.html", activity: activity - ) %> + )} <% :event -> %> - <%= render("activity/_event_activity_item.html", + {render("activity/_event_activity_item.html", activity: activity - ) %> + )} <% :group -> %> - <%= render("activity/_group_activity_item.html", + {render("activity/_group_activity_item.html", activity: activity - ) %> + )} <% :member -> %> - <%= render("activity/_member_activity_item.html", + {render("activity/_member_activity_item.html", activity: activity - ) %> + )} <% :post -> %> - <%= render("activity/_post_activity_item.html", + {render("activity/_post_activity_item.html", activity: activity - ) %> + )} <% :resource -> %> - <%= render("activity/_resource_activity_item.html", + {render("activity/_resource_activity_item.html", activity: activity - ) %> + )} <% :comment -> %> - <%= render("activity/_comment_activity_item.html", + {render("activity/_comment_activity_item.html", activity: activity - ) %> + )} <% end %>
<%= unless @single_activity do %> - <%= datetime_to_string(activity.inserted_at, @locale, :short) %> + {datetime_to_string(activity.inserted_at, @locale, :short)} <% end %> @@ -227,13 +227,13 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= dngettext( + {dngettext( "activity", "View one more activity", "View %{count} more activities", length(group_activities) - 5, %{count: length(group_activities) - 5} - ) %> + )} @@ -257,7 +257,7 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= dgettext( + {dgettext( "activity", "Don't want to receive activity notifications? You may change frequency or disable them in %{tag_start}your settings%{tag_end}.", %{ @@ -265,7 +265,7 @@ tag_end: "" } ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/event_group_follower_notification.html.heex b/lib/web/templates/email/event_group_follower_notification.html.heex index 6feabd81e..1fbbe2a71 100644 --- a/lib/web/templates/email/event_group_follower_notification.html.heex +++ b/lib/web/templates/email/event_group_follower_notification.html.heex @@ -15,9 +15,9 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext("You recently requested to attend %{title}.", + {gettext("You recently requested to attend %{title}.", title: escape_html(@event.title) ) - |> raw %> + |> raw}
@@ -58,9 +58,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "Good news: one of the event organizers just approved your request. Update your calendar, because you're on the guest list now!" - ) %> + )}
@@ -78,7 +78,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Visit event page") %> + {gettext("Visit event page")} @@ -95,9 +95,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext( + {gettext( "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." - ) %> + )}
diff --git a/lib/web/templates/email/event_participation_confirmed.html.heex b/lib/web/templates/email/event_participation_confirmed.html.heex index 5279d55d8..997aacf65 100644 --- a/lib/web/templates/email/event_participation_confirmed.html.heex +++ b/lib/web/templates/email/event_participation_confirmed.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext("You recently requested to attend %{title}.", + {gettext("You recently requested to attend %{title}.", title: escape_html(@event.title) ) - |> raw %> + |> raw}
@@ -58,9 +58,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "You have now confirmed your participation. Update your calendar, because you're on the guest list now!" - ) %> + )}
@@ -78,7 +78,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Visit event page") %> + {gettext("Visit event page")} @@ -96,9 +96,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "If you wish to cancel your participation, simply click on the link below." - ) %> + )}
@@ -119,7 +119,7 @@ target="_blank" style="font-size: 20px; font-family: 'Roboto', Helvetica, Arial, sans-serif; color: #3C376E; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Cancel my attendance") %> + {gettext("Cancel my attendance")} @@ -137,9 +137,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." - ) %> + )}
diff --git a/lib/web/templates/email/event_participation_rejected.html.heex b/lib/web/templates/email/event_participation_rejected.html.heex index 8d2d673fa..429cdd790 100644 --- a/lib/web/templates/email/event_participation_rejected.html.heex +++ b/lib/web/templates/email/event_participation_rejected.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext("You issued a request to attend %{title}.", + {gettext("You issued a request to attend %{title}.", title: escape_html(@event.title) ) - |> raw %> + |> raw}
@@ -58,7 +58,7 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext("Unfortunately, the organizers rejected your request.") %> + {gettext("Unfortunately, the organizers rejected your request.")}
diff --git a/lib/web/templates/email/event_updated.html.heex b/lib/web/templates/email/event_updated.html.heex index b6af2e869..71ebd0d5f 100644 --- a/lib/web/templates/email/event_updated.html.heex +++ b/lib/web/templates/email/event_updated.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "There have been changes for %{title} so we'd thought we'd let you know.", title: escape_html(@old_event.title) ) - |> raw %> + |> raw}
@@ -65,13 +65,13 @@ <%= case @event.status do %> <% :confirmed -> %> - <%= gettext("This event has been confirmed") %> + {gettext("This event has been confirmed")} <% :tentative -> %> - <%= gettext( + {gettext( "This event has yet to be confirmed: organizers will let you know if they do confirm it." - ) %> + )} <% :cancelled -> %> - <%= gettext("This event has been cancelled by its organizers. Sorry!") %> + {gettext("This event has been cancelled by its organizers. Sorry!")} <% end %> @@ -80,57 +80,57 @@ <%= if MapSet.member?(@changes, :title) do %>- <%= Mobilizon.Addresses.Address.representation(@event.physical_address) %> + {Mobilizon.Addresses.Address.representation(@event.physical_address)}
- <%= ngettext( + {ngettext( "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button.", "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button.", 1 - ) %> + )}
diff --git a/lib/web/templates/email/group_invite.html.heex b/lib/web/templates/email/group_invite.html.heex index 1dcd13441..8b394a80e 100644 --- a/lib/web/templates/email/group_invite.html.heex +++ b/lib/web/templates/email/group_invite.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "%{inviter} just invited you to join their group %{link_start}%{group}%{link_end}", group: escape_html(display_name(@group)), inviter: escape_html(display_name(@inviter)), link_start: "", link_end: "" ) - |> raw %> + |> raw}
@@ -62,7 +62,7 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext("To accept this invitation, head over to your groups.") %> + {gettext("To accept this invitation, head over to your groups.")}
@@ -80,7 +80,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("See my groups") %> + {gettext("See my groups")} diff --git a/lib/web/templates/email/group_member_removal.html.heex b/lib/web/templates/email/group_member_removal.html.heex index 001c8a127..f6502b3ad 100644 --- a/lib/web/templates/email/group_member_removal.html.heex +++ b/lib/web/templates/email/group_member_removal.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "You have been removed from group %{link_start}%{group}%{link_end}. You will not be able to access this group's private content anymore.", group: escape_html(display_name(@group)), link_start: "", link_end: "" ) - |> raw %> + |> raw}
@@ -61,9 +61,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "If you feel this is an error, you may contact the group's administrators so that they can add you back." - ) %> + )}
diff --git a/lib/web/templates/email/group_membership_approval.html.heex b/lib/web/templates/email/group_membership_approval.html.heex index 02992d216..f89b19341 100644 --- a/lib/web/templates/email/group_membership_approval.html.heex +++ b/lib/web/templates/email/group_membership_approval.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Your membership request for group %{link_start}%{group}%{link_end} has been approved.", group: escape_html(display_name(@group)), link_start: " url() |> URI.decode()}\">", link_end: "" ) - |> raw %> + |> raw}
@@ -73,7 +73,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("View the group") %> + {gettext("View the group")} diff --git a/lib/web/templates/email/group_membership_rejection.html.heex b/lib/web/templates/email/group_membership_rejection.html.heex index 76dfa0b73..ae060795a 100644 --- a/lib/web/templates/email/group_membership_rejection.html.heex +++ b/lib/web/templates/email/group_membership_rejection.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Your membership request for group %{link_start}%{group}%{link_end} has been rejected.", group: escape_html(display_name(@group)), link_start: " url() |> URI.decode()}\">", link_end: "" ) - |> raw %> + |> raw}
diff --git a/lib/web/templates/email/group_suspension.html.heex b/lib/web/templates/email/group_suspension.html.heex index 828bb7c6f..1553c8078 100644 --- a/lib/web/templates/email/group_suspension.html.heex +++ b/lib/web/templates/email/group_suspension.html.heex @@ -15,10 +15,10 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "Your instance's moderation team has decided to suspend %{group_name} (%{group_address}). You are no longer a member of this group.", group_name: escape_html(display_name(@group)), group_address: preferred_username_and_domain(@group) ) - |> raw %> + |> raw}
@@ -64,9 +64,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "As this group was located on this instance, all of its data has been irretrievably deleted." - ) %> + )}
@@ -78,9 +78,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >- <%= gettext( + {gettext( "As this group was located on another instance, it will continue to work for other instances than this one." - ) %> + )}
diff --git a/lib/web/templates/email/instance_follow.html.heex b/lib/web/templates/email/instance_follow.html.heex index 67e9a94bb..859285a82 100644 --- a/lib/web/templates/email/instance_follow.html.heex +++ b/lib/web/templates/email/instance_follow.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >
- <%= gettext("%{name} just requested to follow your instance.",
+ {gettext("%{name} just requested to follow your instance.",
name: escape_html(display_name_and_username(@follower))
)
- |> raw %>
+ |> raw}
<%= if @follower.type == :Application do %>
- <%= gettext("If you accept, this instance will receive all of your public events.") %>
+ {gettext("If you accept, this instance will receive all of your public events.")}
<% else %>
- <%= gettext("If you accept, this profile will receive all of your public events.") %>
+ {gettext("If you accept, this profile will receive all of your public events.")}
<% end %>
- <%= gettext( + {gettext( "Note: %{name} following you doesn't necessarily imply that you follow this instance, but you can ask to follow them too.", name: escape_html(display_name_and_username(@follower)) - ) %> + )}
@@ -81,11 +81,9 @@ ><%= if @follower.type == :Application do %> - <%= gettext( - "To accept this invitation, head over to the instance's admin settings." - ) %> + {gettext("To accept this invitation, head over to the instance's admin settings.")} <% else %> - <%= gettext("To accept this invitation, head over to the profile's admin page.") %> + {gettext("To accept this invitation, head over to the profile's admin page.")} <% end %>
@@ -107,7 +105,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("View the details") %> + {gettext("View the details")} <% else %> - <%= gettext("View the details") %> + {gettext("View the details")} <% end %> diff --git a/lib/web/templates/email/notification_each_week.html.heex b/lib/web/templates/email/notification_each_week.html.heex index 288010db9..6ea2ef9d3 100644 --- a/lib/web/templates/email/notification_each_week.html.heex +++ b/lib/web/templates/email/notification_each_week.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= ngettext( + {ngettext( "You have one event this week:", "You have %{total} events this week:", @total, total: @total - ) %> + )}
@@ -63,22 +63,22 @@- <%= ngettext( + {ngettext( "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button.", "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button.", @total - ) %> + )}
diff --git a/lib/web/templates/email/on_day_notification.html.heex b/lib/web/templates/email/on_day_notification.html.heex index 9c37baa51..5fef318aa 100644 --- a/lib/web/templates/email/on_day_notification.html.heex +++ b/lib/web/templates/email/on_day_notification.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= ngettext("You have one event today:", "You have %{total} events today:", @total, + {ngettext("You have one event today:", "You have %{total} events today:", @total, total: @total - ) %> + )}
@@ -60,22 +60,22 @@- <%= ngettext( + {ngettext( "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button.", "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button.", @total - ) %> + )}
diff --git a/lib/web/templates/email/participation/card/_metadata.html.heex b/lib/web/templates/email/participation/card/_metadata.html.heex index 9d2a87402..da0a2d1f2 100644 --- a/lib/web/templates/email/participation/card/_metadata.html.heex +++ b/lib/web/templates/email/participation/card/_metadata.html.heex @@ -49,14 +49,14 @@ style="color: rgb(87,100,108); font-family: Helvetica,Arial,sans-serif; font-weight: 300; line-height: 1.5; font-size: 16px; vertical-align: baseline; margin: 0; padding: 0; border: 0;" align="left" > - <%= render("date/event_tz_date_range.html", + {render("date/event_tz_date_range.html", event: @event, start_date: datetime_tz_convert(@event.begins_on, @event.options.timezone), end_date: datetime_tz_convert(@event.ends_on, @event.options.timezone), timezone: @timezone, locale: @locale - ) %> + )} @@ -87,7 +87,7 @@ style="color: rgb(87,100,108); font-family: Helvetica,Arial,sans-serif; font-weight: 300; line-height: 1.5; font-size: 16px; vertical-align: baseline; margin: 0; padding: 0; border: 0;" align="left" > - <%= render_address(@event.physical_address) %> + {render_address(@event.physical_address)} @@ -118,7 +118,7 @@ style="color: rgb(87,100,108); font-family: Helvetica,Arial,sans-serif; font-weight: 300; line-height: 1.5; font-size: 16px; vertical-align: baseline; margin: 0; padding: 0; border: 0;" align="left" > - <%= gettext("Online event") %> + {gettext("Online event")} diff --git a/lib/web/templates/email/participation/card/_title.html.heex b/lib/web/templates/email/participation/card/_title.html.heex index 8b202ceb8..8c686faf4 100644 --- a/lib/web/templates/email/participation/card/_title.html.heex +++ b/lib/web/templates/email/participation/card/_title.html.heex @@ -11,7 +11,7 @@ style="color: rgb(66,81,90); font-family: Helvetica,Arial,sans-serif; font-weight: 700; text-align: left; line-height: 1.4; text-decoration: none; vertical-align: baseline; font-size: 22px; letter-spacing: 0.2px; margin: 0 0 30px; padding: 0; border: 0;" target="_blank" > - <%= @event.title %> + {@event.title}- <%= process_description(@event.description) %> + {process_description(@event.description)}
<%= if String.length(@event.description) > 200 do %>- <%= gettext("Read more") %> + {gettext("Read more")}
<% end %> diff --git a/lib/web/templates/email/password_reset.html.heex b/lib/web/templates/email/password_reset.html.heex index e6bace00e..4d4c44490 100644 --- a/lib/web/templates/email/password_reset.html.heex +++ b/lib/web/templates/email/password_reset.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext("You requested a new password for your account on %{instance}.", + {gettext("You requested a new password for your account on %{instance}.", instance: @instance_name ) - |> raw %> + |> raw}
- <%= gettext( + {gettext( "Resetting your password is easy. Just press the button below and follow the instructions. We'll have you up and running in no time." - ) %> + )}
@@ -63,9 +63,9 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext( + {gettext( "If you didn't request this, please ignore this email. Your password won't change until you access the link below and create a new one." - ) %> + )}
@@ -83,7 +83,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #474467; display: inline-block;" > - <%= gettext("Reset Password") %> + {gettext("Reset Password")} diff --git a/lib/web/templates/email/pending_participation_notification.html.heex b/lib/web/templates/email/pending_participation_notification.html.heex index fb493f4fd..fa853027e 100644 --- a/lib/web/templates/email/pending_participation_notification.html.heex +++ b/lib/web/templates/email/pending_participation_notification.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= ngettext( + {ngettext( "You have one pending attendance request to process for the following event:", "You have %{number_participation_requests} attendance requests to process for the following event:", @total, number_participation_requests: @total - ) %> + )}
@@ -59,12 +59,12 @@ align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" > - <%= render("participation/event_card.html", + {render("participation/event_card.html", event: @event, timezone: @timezone, locale: @locale, action: nil - ) %> + )}- <%= gettext( + {gettext( "You are receiving this email because you chose to get notifications for pending attendance requests to your events. You can disable or change your notification settings in your user account settings under « Notifications »." - ) %> + )}
diff --git a/lib/web/templates/email/registration_confirmation.html.heex b/lib/web/templates/email/registration_confirmation.html.heex index 2c1381772..497e1d7e1 100644 --- a/lib/web/templates/email/registration_confirmation.html.heex +++ b/lib/web/templates/email/registration_confirmation.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" >- <%= gettext( + {gettext( "You created an account on %{host} with this email address. You are one click away from activating it.", host: @instance_name ) - |> raw %> + |> raw}
@@ -59,7 +59,7 @@ style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >- <%= gettext("If you didn't trigger this email, you may safely ignore it.") %> + {gettext("If you didn't trigger this email, you may safely ignore it.")}
@@ -77,7 +77,7 @@ target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;" > - <%= gettext("Activate my account") %> + {gettext("Activate my account")} diff --git a/lib/web/templates/email/report.html.heex b/lib/web/templates/email/report.html.heex index 002e81ac5..ae198340d 100644 --- a/lib/web/templates/email/report.html.heex +++ b/lib/web/templates/email/report.html.heex @@ -15,7 +15,7 @@ style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;" ><%= if @report.reporter.type == :Application and @report.reporter.preferred_username == "relay" do %> - <%= gettext( + {gettext( "Someone on %{instance} reported the following content for you to analyze:", instance: escape_html(@report.reporter.domain) ) - |> raw %> + |> raw} <% else %> - <%= gettext("%{reporter} reported the following content.", + {gettext("%{reporter} reported the following content.", reporter: escape_html(display_name_and_username(@report.reporter)) ) - |> raw %> + |> raw} <% end %>
@@ -68,18 +68,18 @@ ><%= if @report.reported.type == :Group do %> -
| <%= column %> | +{column} | <% end %>
|---|---|
| <%= cell %> | +{cell} | <% end %>