- <%= 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}
From 4255219e9f08d322524b7aa5b0f6468bb06ae676 Mon Sep 17 00:00:00 2001
From: Laurent GAY
- <%= 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",
"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}
- <%= 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}
- <%= 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}"
)
- ) %>
+ )}
- <%= 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}
- <%= gettext("You may now login using your credentials on the service.") %>
+ {gettext("You may now login using your credentials on the service.")}
- <%= 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}
- <%= 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}
- <%= 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}
- <%= 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}
- <%= 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}
- <%= 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}
- <%= 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}
- <%= 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}
- <%= 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.")}
- <%= 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.")}
- <%= gettext("Get ready for %{title}", title: @participant.event.title) %>
+ {gettext("Get ready for %{title}", title: @participant.event.title)}
- <%= gettext(
+ {gettext(
"If you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button."
- ) %>
+ )}
- <%= 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(
+ {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}
- <%= 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.")}
- <%= gettext(
+ {gettext(
"The email address for your account on %{host} is being changed to:",
host: @instance_name
)
- |> raw %>
+ |> raw}
- <%= 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
- ) %>
+ )}
- <%= 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.")}
<%= pgettext("terms", "What information do we collect?") %>
+{pgettext("terms", "What information do we collect?")}
-<%= pgettext("terms", "What do we use your information for?") %>
+{pgettext("terms", "What do we use your information for?")}
-<%= pgettext("terms", "How do we protect your information?") %>
+{pgettext("terms", "How do we protect your information?")}
<%= pgettext("terms", "What is our data retention policy?") %>
-{pgettext("terms", "What is our data retention policy?")}
+
-<%= pgettext("terms", "Do we use cookies?") %>
+{pgettext("terms", "Do we use cookies?")}
-
-
- <%= pgettext("terms", "Do we disclose any information to outside parties?") %>
+ {pgettext("terms", "Do we disclose any information to outside parties?")}
<%= pgettext("terms", "Site usage by children") %>
+{pgettext("terms", "Site usage by children")}
<%= pgettext("terms", "Changes to our Privacy Policy") %>
+{pgettext("terms", "Changes to our Privacy Policy")}
<%= pgettext("terms", "Accepting these Terms") %>
+{pgettext("terms", "Accepting these Terms")}
- <%= pgettext("terms", "Changes to these Terms") %>
+ {pgettext("terms", "Changes to these Terms")}
<%= pgettext("terms", "Privacy Policy") %>
+{pgettext("terms", "Privacy Policy")}
<%= pgettext("terms", "Creating Accounts") %>
+{pgettext("terms", "Creating Accounts")}
<%= pgettext("terms", "Your Content & Conduct") %>
+{pgettext("terms", "Your Content & Conduct")}
- <%= pgettext("terms", "Our responsibility") %>
+ {pgettext("terms", "Our responsibility")}
<%= pgettext("terms", "Source code") %>
+{pgettext("terms", "Source code")}
<%= pgettext("terms", "Hyperlinks and Third Party Content") %>
+{pgettext("terms", "Hyperlinks and Third Party Content")}
<%= pgettext("terms", "Termination") %>
+{pgettext("terms", "Termination")}
<%= pgettext("terms", "Entire Agreement") %>
+{pgettext("terms", "Entire Agreement")}
<%= pgettext("terms", "Feedback") %>
+{pgettext("terms", "Feedback")}
<%= pgettext("terms", "Questions & Contact Information") %>
+{pgettext("terms", "Questions & Contact Information")}
- <%= gettext("Your participation to %{event} on %{instance} has been cancelled!",
+ {gettext("Your participation to %{event} on %{instance} has been cancelled!",
event: @event.title,
instance: @instance_name
- ) %>
+ )}
@@ -47,7 +47,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("An administrator manually confirmed your account") %>
+ {gettext("An administrator manually confirmed your account")}
@@ -44,11 +44,11 @@
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("An administrator manually changed the email attached to your account") %>
+ {gettext("An administrator manually changed the email attached to your account")}
@@ -44,11 +44,11 @@
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("An administrator manually changed the email attached to your account") %>
+ {gettext("An administrator manually changed the email attached to your account")}
@@ -44,11 +44,11 @@
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("An administrator changed your role") %>
+ {gettext("An administrator changed your role")}
@@ -44,11 +44,11 @@
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
>
@@ -85,14 +85,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("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("Confirm your e-mail") %>
+ {gettext("Confirm your e-mail")}
@@ -44,11 +44,11 @@
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("An event is upcoming!") %>
+ {gettext("An event is upcoming!")}
@@ -44,7 +44,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;"
>
<%= if @event.options.timezone != @timezone do %>
- <%= gettext("🌐 %{timezone} %{offset}",
+ {gettext("🌐 %{timezone} %{offset}",
timezone: @event.options.timezone,
offset:
@date
|> datetime_tz_convert(@event.options.timezone)
|> Cldr.DateTime.Formatter.zone_gmt()
- ) %>
+ )}
<% end %>
<% end %>
diff --git a/lib/web/templates/email/date/event_tz_date_range.html.heex b/lib/web/templates/email/date/event_tz_date_range.html.heex
index 733cb0fca..c3a65a756 100644
--- a/lib/web/templates/email/date/event_tz_date_range.html.heex
+++ b/lib/web/templates/email/date/event_tz_date_range.html.heex
@@ -1,42 +1,42 @@
<%= cond do %>
<% @end_date == nil -> %>
- <%= render("date/event_tz_date.html",
+ {render("date/event_tz_date.html",
date: @start_date,
event: @event,
timezone: @timezone,
locale: @locale
- ) %>
+ )}
<% same_day?(@start_date, @end_date) -> %>
- <%= gettext("On %{date} from %{start_time} to %{end_time}",
+ {gettext("On %{date} from %{start_time} to %{end_time}",
date: datetime_to_date_string(@start_date, @locale),
start_time: datetime_to_time_string(@start_date, @locale),
end_time: datetime_to_time_string(@end_date, @locale)
- ) %>
+ )}
<%= if @event.options.timezone != @timezone do %>
- <%= gettext("🌐 %{timezone} %{offset}",
+ {gettext("🌐 %{timezone} %{offset}",
timezone: @event.options.timezone,
offset: Cldr.DateTime.Formatter.zone_gmt(@start_date)
- ) %>
+ )}
<% end %>
<% true -> %>
- <%= gettext("From the %{start} to the %{end}",
+ {gettext("From the %{start} to the %{end}",
start: datetime_to_string(@start_date, @locale, :short),
end: datetime_to_string(@end_date, @locale, :short)
- ) %>
+ )}
<%= if @event.options.timezone != @timezone do %>
- <%= gettext("🌐 %{timezone} %{offset}",
+ {gettext("🌐 %{timezone} %{offset}",
timezone: @event.options.timezone,
offset: Cldr.DateTime.Formatter.zone_gmt(@start_date)
- ) %>
+ )}
<% end %>
<% end %>
diff --git a/lib/web/templates/email/email.html.heex b/lib/web/templates/email/email.html.heex
index d8a544dcc..0bbdcc6b8 100644
--- a/lib/web/templates/email/email.html.heex
+++ b/lib/web/templates/email/email.html.heex
@@ -1,7 +1,7 @@
-
@@ -102,14 +102,14 @@
style="padding: 30px 30px 30px 30px; border-radius: 4px 4px 4px 4px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
>
@@ -139,7 +139,7 @@
style="padding: 30px 30px 30px 30px; border-radius: 4px 4px 4px 4px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
>
- <%= gettext("Warning") %>
+ {gettext("Warning")}
- <%= gettext("Need help? Is something not working as expected?") %>
+ {gettext("Need help? Is something not working as expected?")}
@@ -179,18 +179,18 @@
<%= if @offer_unsupscription do %>
<% end %>
- <%= gettext("Learn more about Mobilizon here!") %>
+ {gettext("Learn more about Mobilizon here!")}
- <%= @subject %>
+ {@subject}
@@ -47,7 +47,7 @@
align="center"
style="border-radius: 3px; text-align: left; padding: 10px 5% 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400;line-height: 25px;"
>
- <%= dgettext(
+ {dgettext(
"activity",
"%{profile} has posted a public announcement under event %{event}.",
%{
@@ -59,7 +59,7 @@
"
}
)
- |> raw %>
+ |> raw}
@@ -82,7 +82,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")}
@@ -104,7 +104,7 @@
align="center"
style="border-radius: 3px; text-align: left; padding: 10px 5% 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400;line-height: 25px;"
>
- <%= dgettext(
+ {dgettext(
"activity",
"%{profile} has posted a private announcement about event %{event}.",
%{
@@ -114,11 +114,11 @@
" url() |> URI.decode()}\">#{escape_html(@activity.subject_params["conversation_event_title"])}"
}
)
- |> raw %>
- <%= dgettext(
+ |> raw}
+ {dgettext(
"activity",
"It might give details on how to join the event, so make sure to read it appropriately."
- ) %>
+ )}
@@ -133,9 +133,9 @@
@@ -153,10 +153,10 @@
align="center"
style="border-radius: 3px; text-align: left; padding: 10px 5% 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400;line-height: 25px;"
>
- <%= dgettext(
+ {dgettext(
"activity",
"This information is sent privately to you as a person who registered for this event. Share the informations above with other people with caution."
- ) %>
+ )}
@@ -179,7 +179,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")}
diff --git a/lib/web/templates/email/email_changed_new.html.heex b/lib/web/templates/email/email_changed_new.html.heex
index 42131ceac..be52969d4 100644
--- a/lib/web/templates/email/email_changed_new.html.heex
+++ b/lib/web/templates/email/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;"
>
- <%= @activity.subject_params["conversation_text"]
+ {@activity.subject_params["conversation_text"]
|> sanitize_to_basic_html()
- |> raw() %>
+ |> raw()}
- <%= gettext("Confirm new email") %>
+ {gettext("Confirm new email")}
@@ -44,11 +44,11 @@
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("New email confirmation") %>
+ {gettext("New email confirmation")}
@@ -44,11 +44,11 @@
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
>
@@ -76,10 +76,10 @@
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
>
- <%= @new_email %>
+ {@new_email}
- <%= gettext("Well done!") %>
+ {gettext("Well done!")}
@@ -44,9 +44,7 @@
style="padding: 20px 30px 30px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
>
- <%= @subject %>
+ {@subject}
@@ -50,19 +50,19 @@
<% :one_week -> %>
<% dgettext("activity", "Here's your weekly activity recap") %>
<% :one_hour -> %>
- <%= dngettext(
+ {dngettext(
"activity",
"There has been an activity!",
"There has been some activity!",
@total_number_activities
- ) %>
+ )}
<% false -> %>
- <%= dngettext(
+ {dngettext(
"activity",
"There has been an activity!",
"There has been some activity!",
@total_number_activities
- ) %>
+ )}
<% end %>
<%= 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 %>