diff --git a/lib/web/templates/api/privacy.html.heex b/lib/web/templates/api/privacy.html.heex
index f57205f4c..b54b60f95 100644
--- a/lib/web/templates/api/privacy.html.heex
+++ b/lib/web/templates/api/privacy.html.heex
@@ -1,25 +1,32 @@
- <%= 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 %>
+ <%= 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 %>
<%= pgettext("terms", "What information do we collect?") %>
-
<%= pgettext("terms", "Basic account information") %>
-
<%= 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 %>
+
+ <%= 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 %>
-
<%= pgettext("terms", "Published events and comments") %>
<%= 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 %>
+ "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 %>
<%= pgettext("terms", "Do not share any dangerous information over Mobilizon.") %>
@@ -28,47 +35,71 @@
-
<%= pgettext("terms", "IPs and other metadata") %>
- <%= pgettext("terms", "We also may retain server logs which include the IP address of every request to our server.") %>
+ <%= pgettext(
+ "terms",
+ "We also may retain server logs which include the IP address of every request to our server."
+ ) %>
<%= pgettext("terms", "What do we use your information for?") %>
-<%=
- pgettext(
- "terms",
- "Any of the information we collect from you may be used in the following ways:"
- )
- %>
+
+ <%= pgettext(
+ "terms",
+ "Any of the information we collect from you may be used in the following ways:"
+ ) %>
+
- - <%= pgettext("terms", "To provide the core functionality of Mobilizon. Depending on this instance's policy you may only be able to
- interact with other people's content and post your own content if you are logged in.") %>
- - <%= pgettext("terms", "To aid moderation of the community, for example comparing your IP address with other known ones to determine ban
- evasion or other violations.") %>
- - <%= pgettext("terms", "The email address you provide may be used to send you information, updates and notifications about other people
+
-
+ <%= pgettext(
+ "terms",
+ "To provide the core functionality of Mobilizon. Depending on this instance's policy you may only be able to
+ interact with other people's content and post your own content if you are logged in."
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "To aid moderation of the community, for example comparing your IP address with other known ones to determine ban
+ evasion or other violations."
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "The email address you provide may be used to send you information, updates and notifications about other people
interacting with your content or sending you messages and to respond to inquiries, and/or other requests or
- questions.") %>
+ questions."
+ ) %>
+
<%= pgettext("terms", "How do we protect your information?") %>
- <%=
- 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 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", "What is our data retention policy?") %>
<%= pgettext("terms", "We will make a good faith effort to:") %>
-
- <%= pgettext("terms", "Retain server logs containing the IP address of all requests to this server, insofar as such logs are kept, no more than 90 days.")%>
+ <%= pgettext(
+ "terms",
+ "Retain server logs containing the IP address of all requests to this server, insofar as such logs are kept, no more than 90 days."
+ ) %>
-
- <%= pgettext("terms", "Retain the IP addresses associated with registered users no more than 12 months.") %>
+ <%= pgettext(
+ "terms",
+ "Retain the IP addresses associated with registered users no more than 12 months."
+ ) %>
<%= pgettext("terms", "You may irreversibly delete your account at any time.") %>
<%= pgettext("terms", "Do we use cookies?") %>
-<%=
- 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", "An internal user ID") %>
@@ -76,44 +107,72 @@
- <%= pgettext("terms", "Tokens to authenticate you") %>
<%= pgettext("terms", "If you delete this information, you need to login again.") %>
-<%=
- 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(
+ "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("terms", "Note: This information is stored in your localStorage and not your cookies.") %>
+ <%= pgettext(
+ "terms",
+ "Note: This information is stored in your localStorage and not your cookies."
+ ) %>
-<%=
- pgettext("terms", "Do we disclose any information to outside parties?")
- %>
+
+ <%= pgettext("terms", "Do we disclose any information to outside parties?") %>
+
- <%=
- 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(
+ "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("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(
+ "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("terms", "Site usage by children")
- %>
+<%= pgettext("terms", "Site usage by children") %>
- <%= 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 %>
+ <%= 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 %>
- <%= 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 %>
+ <%= 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 %>
- <%= pgettext("terms", "Law requirements can be different if this server is in another jurisdiction.") %>
+ <%= pgettext(
+ "terms",
+ "Law requirements can be different if this server is in another jurisdiction."
+ ) %>
+
+<%= pgettext("terms", "Changes to our Privacy Policy") %>
+
+ <%= pgettext(
+ "terms",
+ "If we decide to change our privacy policy, we will post those changes on this page."
+ ) %>
+
+
+ <%= pgettext(
+ "terms",
+ "This document is licensed under CC BY-SA. It was last updated June 18, 2020."
+ )
+ |> raw %>
+
+
+ <%= pgettext(
+ "terms",
+ "Originally adapted from the Mastodon and Discourse privacy policies, also licensed under CC BY-SA."
+ )
+ |> raw %>
-<%=
- pgettext("terms", "Changes to our Privacy Policy")
- %>
-<%= pgettext("terms", "If we decide to change our privacy policy, we will post those changes on this page.") %>
-<%= pgettext("terms", "This document is licensed under CC BY-SA. It was last updated June 18, 2020.") |> raw %>
-<%= pgettext("terms", "Originally adapted from the Mastodon and Discourse privacy policies, also licensed under CC BY-SA.") |> raw %>
diff --git a/lib/web/templates/api/terms.html.heex b/lib/web/templates/api/terms.html.heex
index a38f84b55..8f7f8366f 100644
--- a/lib/web/templates/api/terms.html.heex
+++ b/lib/web/templates/api/terms.html.heex
@@ -3,96 +3,324 @@
<%= pgettext("terms", "Short version") %>
- <%= pgettext("terms", "Your content is yours") %>
- - <%= pgettext("terms", "%{instance_name} will not use or transmit or resell your personal data", %{instance_name: @instance_name}) |> raw %>
- - <%= pgettext("terms", "You must respect the law when using %{instance_name}", %{instance_name: @instance_name}) |> raw %>
- - <%= pgettext("terms", "You must respect other people and %{instance_name}'s rules when using the service", %{instance_name: @instance_name}) |> raw %>
- - <%= pgettext("terms", "The service is provided without warranties and these terms may change in the future") %>
+ -
+ <%= pgettext(
+ "terms",
+ "%{instance_name} will not use or transmit or resell your personal data",
+ %{instance_name: @instance_name}
+ )
+ |> raw %>
+
+ -
+ <%= pgettext("terms", "You must respect the law when using %{instance_name}", %{
+ instance_name: @instance_name
+ })
+ |> raw %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "You must respect other people and %{instance_name}'s rules when using the service",
+ %{instance_name: @instance_name}
+ )
+ |> raw %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "The service is provided without warranties and these terms may change in the future"
+ ) %>
+
- <%= 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 %>
+ <%= 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 %>
-<%= 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 %>
- <%= 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, supported by Framasoft, a French not-for-profit organization advocating for Free/Libre Software. 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 %>
+ <%= 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 %>
+
+
+ <%= 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, supported by Framasoft, a French not-for-profit organization advocating for Free/Libre Software. 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 %>
<%= pgettext("terms", "Accepting these Terms") %>
-<%= 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 %>
+
+ <%= 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 %>
+
<%= pgettext("terms", "Changes to these Terms") %>
- <%= 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(
+ "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("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(
+ "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("terms", "If you continue to use the Service after the revised Terms go into effect, you accept the revised Terms.") %>
+ <%= pgettext(
+ "terms",
+ "If you continue to use the Service after the revised Terms go into effect, you accept the revised Terms."
+ ) %>
<%= pgettext("terms", "Privacy Policy") %>
-<%= pgettext("terms", "For information about how we collect and use information about users of the Service, please check our privacy policy.") |> raw %>
+
+ <%= pgettext(
+ "terms",
+ "For information about how we collect and use information about users of the Service, please check our privacy policy."
+ )
+ |> raw %>
+
<%= pgettext("terms", "Creating Accounts") %>
-<%= 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 %>
-<%= 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 %>
-<%= 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(
+ "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 %>
+
+
+ <%= 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 %>
+
+
+ <%= 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("terms", "Your Content & Conduct") %>
-<%= 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("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("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("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("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("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 %>
+
+ <%= 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(
+ "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(
+ "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(
+ "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(
+ "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(
+ "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 %>
+
- - <%= pgettext("terms", "Content that is illegal or unlawful, that would otherwise create liability;") %>
- - <%= pgettext("terms", "Content that may infringe or violate any patent, trademark, trade secret, copyright, right of privacy, right of publicity or other intellectual or other right of any party;") %>
- - <%= pgettext("terms", "Private information of any third party (e.g., addresses, phone numbers, email addresses, Social Security numbers and credit card numbers); and") %>
- - <%= pgettext("terms", "Viruses, corrupted data or other harmful, disruptive or destructive files or code.") %>
-
-<%= pgettext("terms", "Also, you agree that you will not do any of the following in connection with the Service or other users:") %>
-
- - <%= pgettext("terms", "Use the Service in any manner that could interfere with, disrupt, negatively affect or inhibit other users from fully enjoying the Service or that could damage, disable, overburden or impair the functioning of the Service;") %>
- - <%= pgettext("terms", "Impersonate or post on behalf of any person or entity or otherwise misrepresent your affiliation with a person or entity;") %>
- - <%= pgettext("terms", "Collect any personal information about other users, or intimidate, threaten, stalk or otherwise harass other users of the Service;") %>
- - <%= pgettext("terms", "Circumvent or attempt to circumvent any filtering, security measures, rate limits or other features designed to protect the Service, users of the Service, or third parties.") %>
+ -
+ <%= pgettext(
+ "terms",
+ "Content that is illegal or unlawful, that would otherwise create liability;"
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "Content that may infringe or violate any patent, trademark, trade secret, copyright, right of privacy, right of publicity or other intellectual or other right of any party;"
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "Private information of any third party (e.g., addresses, phone numbers, email addresses, Social Security numbers and credit card numbers); and"
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "Viruses, corrupted data or other harmful, disruptive or destructive files or code."
+ ) %>
+
- <%= 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 %>
+ <%= pgettext(
+ "terms",
+ "Also, you agree that you will not do any of the following in connection with the Service or other users:"
+ ) %>
+
+
+ -
+ <%= pgettext(
+ "terms",
+ "Use the Service in any manner that could interfere with, disrupt, negatively affect or inhibit other users from fully enjoying the Service or that could damage, disable, overburden or impair the functioning of the Service;"
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "Impersonate or post on behalf of any person or entity or otherwise misrepresent your affiliation with a person or entity;"
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "Collect any personal information about other users, or intimidate, threaten, stalk or otherwise harass other users of the Service;"
+ ) %>
+
+ -
+ <%= pgettext(
+ "terms",
+ "Circumvent or attempt to circumvent any filtering, security measures, rate limits or other features designed to protect the Service, users of the Service, or third parties."
+ ) %>
+
+
+
+ <%= 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 %>
<%= pgettext("terms", "Our responsibility") %>
- <%= 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(
+ "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("terms", "Instance administrators should ensure that every community hosted on the instance is properly moderated according to the defined rules.") %>
+ <%= pgettext(
+ "terms",
+ "Instance administrators should ensure that every community hosted on the instance is properly moderated according to the defined rules."
+ ) %>
<%= pgettext("terms", "Source code") %>
-<%= 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 %>
-<%= pgettext("terms", "For full details about the Mobilizon software see here.") |> raw %>
+
+ <%= 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 %>
+
+
+ <%= pgettext(
+ "terms",
+ "For full details about the Mobilizon software see here."
+ )
+ |> raw %>
+
<%= pgettext("terms", "Hyperlinks and Third Party Content") %>
-<%= 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 %>
-<%= 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(
+ "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 %>
+
+
+ <%= 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("terms", "Termination") %>
-<%= 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(
+ "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("terms", "Entire Agreement") %>
-<%= 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 %>
+
+ <%= 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 %>
+
<%= pgettext("terms", "Feedback") %>
-<%= 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 %>
+
+ <%= 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 %>
+
<%= pgettext("terms", "Questions & Contact Information") %>
-<%= pgettext("terms", "Questions or comments about the Service may be directed to us at %{contact}", %{contact: @instance_contact}) |> raw %>
-<%= pgettext("terms", "This document is licensed under CC BY-SA. It was last updated June 22, 2020.") |> raw %>
-<%= pgettext("terms", "Originally adapted from the Diaspora* and App.net privacy policies, also licensed under CC BY-SA.") |> raw %>
+
+ <%= pgettext(
+ "terms",
+ "Questions or comments about the Service may be directed to us at %{contact}",
+ %{contact: @instance_contact}
+ )
+ |> raw %>
+
+
+ <%= pgettext(
+ "terms",
+ "This document is licensed under CC BY-SA. It was last updated June 22, 2020."
+ )
+ |> raw %>
+
+
+ <%= pgettext(
+ "terms",
+ "Originally adapted from the Diaspora* and App.net privacy policies, also licensed under CC BY-SA."
+ )
+ |> 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 7b648bb46..26ac07c66 100644
--- a/lib/web/templates/email/activity/_comment_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_comment_activity_item.html.heex
@@ -1,65 +1,48 @@
<%= case @activity.subject do %>
- <% :event_comment_mention -> %>
- <%=
- dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ <% :event_comment_mention -> %>
+ <%= dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
- <% :participation_event_comment -> %>
- <%=
- dgettext("activity", "%{profile} has posted an announcement under event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :participation_event_comment -> %>
+ <%= dgettext("activity", "%{profile} has posted an announcement under event %{event}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
-
- <% :event_new_comment -> %>
- <%= if @activity.subject_params["comment_reply_to"] do %>
- <%=
- dgettext("activity", "%{profile} has posted a new reply under your event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}#comment-#{@activity.subject_params["comment_reply_to_uuid"]}-#{@activity.subject_params["comment_uuid"]}\">
+ })
+ |> raw %>
+ <% :event_new_comment -> %>
+ <%= if @activity.subject_params["comment_reply_to"] do %>
+ <%= dgettext("activity", "%{profile} has posted a new reply under your event %{event}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}#comment-#{@activity.subject_params["comment_reply_to_uuid"]}-#{@activity.subject_params["comment_uuid"]}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
- <% else %>
- <%=
- dgettext("activity", "%{profile} has posted a new comment under your event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}#comment-#{@activity.subject_params["comment_uuid"]}\">
+ })
+ |> raw %>
+ <% else %>
+ <%= dgettext(
+ "activity",
+ "%{profile} has posted a new comment under your event %{event}.",
+ %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}#comment-#{@activity.subject_params["comment_uuid"]}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
- <% end %>
-<% end %>
\ No newline at end of file
+ }
+ )
+ |> raw %>
+ <% end %>
+<% 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 3a74f1168..36f011e24 100644
--- a/lib/web/templates/email/activity/_discussion_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_discussion_activity_item.html.heex
@@ -1,66 +1,40 @@
<%= case @activity.subject do %>
- <% :discussion_created -> %>
- <%=
- dgettext("activity", "%{profile} created the discussion %{discussion}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- discussion: " URI.decode()}\">
+ <% :discussion_created -> %>
+ <%= dgettext("activity", "%{profile} created the discussion %{discussion}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ discussion:
+ " URI.decode()}\">
#{@activity.subject_params["discussion_title"]}"
- }
- ) |> raw %>
- <% :discussion_replied -> %>
- <%=
- dgettext("activity", "%{profile} replied to the discussion %{discussion}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- discussion: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :discussion_replied -> %>
+ <%= dgettext("activity", "%{profile} replied to the discussion %{discussion}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ discussion:
+ " URI.decode()}\">
#{@activity.subject_params["discussion_title"]}"
- }
- ) |> raw %>
- <% :discussion_renamed -> %>
- <%=
- dgettext("activity", "%{profile} renamed the discussion %{discussion}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- discussion: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :discussion_renamed -> %>
+ <%= dgettext("activity", "%{profile} renamed the discussion %{discussion}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ discussion:
+ " URI.decode()}\">
#{@activity.subject_params["discussion_title"]}"
- }
- ) |> raw %>
- <% :discussion_archived -> %>
- <%=
- dgettext("activity", "%{profile} archived the discussion %{discussion}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- discussion: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :discussion_archived -> %>
+ <%= dgettext("activity", "%{profile} archived the discussion %{discussion}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ discussion:
+ " URI.decode()}\">
#{@activity.subject_params["discussion_title"]}"
- }
- ) |> raw %>
- <% :discussion_deleted -> %>
- <%=
- dgettext("activity", "%{profile} deleted the discussion %{discussion}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- discussion: "#{@activity.subject_params["discussion_title"]}"
- }
- ) |> raw %>
-<% end %>
\ No newline at end of file
+ })
+ |> raw %>
+ <% :discussion_deleted -> %>
+ <%= dgettext("activity", "%{profile} deleted the discussion %{discussion}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ discussion: "#{@activity.subject_params["discussion_title"]}"
+ })
+ |> 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 5f32ab87b..9266fc6d0 100644
--- a/lib/web/templates/email/activity/_event_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_event_activity_item.html.heex
@@ -1,72 +1,50 @@
<%= case @activity.subject do %>
- <% :event_created -> %>
- <%=
- dgettext("activity", "The event %{event} was created by %{profile}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ <% :event_created -> %>
+ <%= dgettext("activity", "The event %{event} was created by %{profile}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
- <% :event_updated -> %>
- <%=
- dgettext("activity", "The event %{event} was updated by %{profile}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :event_updated -> %>
+ <%= dgettext("activity", "The event %{event} was updated by %{profile}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
- <% :event_deleted -> %>
- <%=
- dgettext("activity", "The event %{event} was deleted by %{profile}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: "#{@activity.subject_params["event_title"]}"
- }
- ) |> raw %>
- <% :comment_posted -> %>
+ })
+ |> raw %>
+ <% :event_deleted -> %>
+ <%= dgettext("activity", "The event %{event} was deleted by %{profile}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: "#{@activity.subject_params["event_title"]}"
+ })
+ |> raw %>
+ <% :comment_posted -> %>
<%= if @activity.subject_params["comment_reply_to"] do %>
- <%=
- dgettext("activity", "%{profile} replied to a comment on the event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ <%= dgettext("activity", "%{profile} replied to a comment on the event %{event}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
+ })
+ |> raw %>
<% else %>
- <%=
- dgettext("activity", "%{profile} posted a comment on the event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ <%= dgettext("activity", "%{profile} posted a comment on the event %{event}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
+ })
+ |> raw %>
<% end %>
-<% end %>
\ No newline at end of file
+<% 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 bf4be4e8e..c428b4696 100644
--- a/lib/web/templates/email/activity/_group_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_group_activity_item.html.heex
@@ -1,32 +1,22 @@
<%= case @activity.subject do %>
- <% :group_created -> %>
- <%=
- dgettext("activity", "%{profile} created the group %{group}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- group: " URI.decode()}\">
+ <% :group_created -> %>
+ <%= dgettext("activity", "%{profile} created the group %{group}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ group: " URI.decode()}\">
#{@activity.subject_params["group_name"]}
"
- }
- ) |> raw %>
- <% :group_updated -> %>
- <%=
- dgettext("activity", "%{profile} updated the group %{group}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- group: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :group_updated -> %>
+ <%= dgettext("activity", "%{profile} updated the group %{group}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ group: " URI.decode()}\">
#{@activity.subject_params["group_name"]}
"
- }
- ) |> raw %>
-<% end %>
\ No newline at end of file
+ })
+ |> 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 c8641b19f..ae34bfdd8 100644
--- a/lib/web/templates/email/activity/_member_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_member_activity_item.html.heex
@@ -1,69 +1,52 @@
<%= case @activity.subject do %>
- <% :member_request -> %>
- <%=
- dgettext("activity", "%{member} requested to join the group.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- }
- ) |> raw %>
- <% :member_invited -> %>
- <%=
- dgettext("activity", "%{member} was invited by %{profile}.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- }
- ) |> raw %>
- <% :member_accepted_invitation -> %>
- <%=
- dgettext("activity", "%{member} accepted the invitation to join the group.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- }
- ) |> raw %>
- <% :member_rejected_invitation -> %>
- <%=
- dgettext("activity", "%{member} rejected the invitation to join the group.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- }
- ) |> raw %>
- <% :member_joined -> %>
- <%=
- dgettext("activity", "%{member} joined the group.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- }
- ) |> raw %>
- <% :member_added -> %>
- <%=
- dgettext("activity", "%{profile} added the member %{member}.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- }
- ) |> raw %>
- <% :member_updated -> %>
- <%=
- dgettext("activity", "%{profile} updated the member %{member}.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- }
- ) |> raw %>
- <% :member_removed -> %>
- <%=
- dgettext("activity", "%{profile} excluded member %{member}.",
- %{
- member: "#{@activity.subject_params["member_actor_name"]}",
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- }
- ) |> raw %>
- <% :member_quit -> %>
- <%=
- dgettext("activity", "%{profile} quit the group.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- }
- ) |> raw %>
-<% end %>
\ No newline at end of file
+ <% :member_request -> %>
+ <%= dgettext("activity", "%{member} requested to join the group.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}"
+ })
+ |> raw %>
+ <% :member_invited -> %>
+ <%= dgettext("activity", "%{member} was invited by %{profile}.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}",
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}"
+ })
+ |> raw %>
+ <% :member_accepted_invitation -> %>
+ <%= dgettext("activity", "%{member} accepted the invitation to join the group.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}"
+ })
+ |> raw %>
+ <% :member_rejected_invitation -> %>
+ <%= dgettext("activity", "%{member} rejected the invitation to join the group.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}"
+ })
+ |> raw %>
+ <% :member_joined -> %>
+ <%= dgettext("activity", "%{member} joined the group.", %{
+ member:
+ "#{@activity.subject_params["member_actor_name"]}"
+ })
+ |> raw %>
+ <% :member_added -> %>
+ <%= dgettext("activity", "%{profile} added the member %{member}.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}",
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}"
+ })
+ |> raw %>
+ <% :member_updated -> %>
+ <%= dgettext("activity", "%{profile} updated the member %{member}.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}",
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}"
+ })
+ |> raw %>
+ <% :member_removed -> %>
+ <%= dgettext("activity", "%{profile} excluded member %{member}.", %{
+ member: "#{@activity.subject_params["member_actor_name"]}",
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}"
+ })
+ |> raw %>
+ <% :member_quit -> %>
+ <%= dgettext("activity", "%{profile} quit the group.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}"
+ })
+ |> 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 81733b4ab..1d4e9adc0 100644
--- a/lib/web/templates/email/activity/_post_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_post_activity_item.html.heex
@@ -1,40 +1,28 @@
<%= case @activity.subject do %>
- <% :post_created -> %>
- <%=
- dgettext("activity", "The post %{post} was created by %{profile}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- post: " URI.decode()}\">
+ <% :post_created -> %>
+ <%= dgettext("activity", "The post %{post} was created by %{profile}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ post: " URI.decode()}\">
#{@activity.subject_params["post_title"]}
"
- }
- ) |> raw %>
- <% :post_updated -> %>
- <%=
- dgettext("activity", "The post %{post} was updated by %{profile}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- post: " URI.decode()}\">
+ })
+ |> raw %>
+ <% :post_updated -> %>
+ <%= dgettext("activity", "The post %{post} was updated by %{profile}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ post: " URI.decode()}\">
#{@activity.subject_params["post_title"]}
"
- }
- ) |> raw %>
- <% :post_deleted -> %>
- <%=
- dgettext("activity", "The post %{post} was deleted by %{profile}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- post: "#{@activity.subject_params["post_title"]}"
- }
- ) |> raw %>
-<% end %>
\ No newline at end of file
+ })
+ |> raw %>
+ <% :post_deleted -> %>
+ <%= dgettext("activity", "The post %{post} was deleted by %{profile}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ post: "#{@activity.subject_params["post_title"]}"
+ })
+ |> 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 6a894c83a..955cb275b 100644
--- a/lib/web/templates/email/activity/_resource_activity_item.html.heex
+++ b/lib/web/templates/email/activity/_resource_activity_item.html.heex
@@ -1,118 +1,92 @@
<%= case @activity.subject do %>
- <% :resource_created -> %>
- <%= if @activity.subject_params["is_folder"] do %>
- <%=
- dgettext("activity", "%{profile} created the folder %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: " URI.decode()}\">
+ <% :resource_created -> %>
+ <%= if @activity.subject_params["is_folder"] do %>
+ <%= dgettext("activity", "%{profile} created the folder %{resource}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: " URI.decode()}\">
#{@activity.subject_params["resource_title"]}
"
- }
- ) |> raw %>
- <% else %>
- <%=
- dgettext("activity", "%{profile} created the resource %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: " URI.decode()}\">
+ })
+ |> raw %>
+ <% else %>
+ <%= dgettext("activity", "%{profile} created the resource %{resource}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: " URI.decode()}\">
#{@activity.subject_params["resource_title"]}
"
- }
- ) |> raw %>
- <% end %>
- <% :resource_renamed -> %>
- <%= if @activity.subject_params["is_folder"] do %>
- <%=
- dgettext("activity", "%{profile} renamed the folder from %{old_resource_title} to %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: " URI.decode()}\">
+ })
+ |> raw %>
+ <% end %>
+ <% :resource_renamed -> %>
+ <%= if @activity.subject_params["is_folder"] do %>
+ <%= dgettext(
+ "activity",
+ "%{profile} renamed the folder from %{old_resource_title} to %{resource}.",
+ %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: " URI.decode()}\">
#{@activity.subject_params["resource_title"]}
",
- old_resource_title: "#{@activity.subject_params["old_resource_title"]}"
- }
- ) |> raw %>
- <% else %>
- <%=
- dgettext("activity", "%{profile} renamed the resource from %{old_resource_title} to %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: " URI.decode()}\">
+ old_resource_title: "#{@activity.subject_params["old_resource_title"]}"
+ }
+ )
+ |> raw %>
+ <% else %>
+ <%= dgettext(
+ "activity",
+ "%{profile} renamed the resource from %{old_resource_title} to %{resource}.",
+ %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: " URI.decode()}\">
#{@activity.subject_params["resource_title"]}
",
- old_resource_title: "#{@activity.subject_params["old_resource_title"]}"
- }
- ) |> raw %>
- <% end %>
- <% :resource_moved -> %>
- <%= if @activity.subject_params["is_folder"] do %>
- <%=
- dgettext("activity", "%{profile} moved the folder %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: " URI.decode()}\">
+ old_resource_title: "#{@activity.subject_params["old_resource_title"]}"
+ }
+ )
+ |> raw %>
+ <% end %>
+ <% :resource_moved -> %>
+ <%= if @activity.subject_params["is_folder"] do %>
+ <%= dgettext("activity", "%{profile} moved the folder %{resource}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: " URI.decode()}\">
#{@activity.subject_params["resource_title"]}
"
- }
- ) |> raw %>
- <% else %>
- <%=
- dgettext("activity", "%{profile} moved the resource %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: " URI.decode()}\">
+ })
+ |> raw %>
+ <% else %>
+ <%= dgettext("activity", "%{profile} moved the resource %{resource}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: " URI.decode()}\">
#{@activity.subject_params["resource_title"]}
"
- }
- ) |> raw %>
- <% end %>
- <% :resource_deleted -> %>
- <%= if @activity.subject_params["is_folder"] do %>
- <%=
- dgettext("activity", "%{profile} deleted the folder %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: "#{@activity.subject_params["resource_title"]}"
- }
- ) |> raw %>
- <% else %>
- <%=
- dgettext("activity", "%{profile} deleted the resource %{resource}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- resource: "#{@activity.subject_params["resource_title"]}"
- }
- ) |> raw %>
- <% end %>
-<% end %>
\ No newline at end of file
+ })
+ |> raw %>
+ <% end %>
+ <% :resource_deleted -> %>
+ <%= if @activity.subject_params["is_folder"] do %>
+ <%= dgettext("activity", "%{profile} deleted the folder %{resource}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: "#{@activity.subject_params["resource_title"]}"
+ })
+ |> raw %>
+ <% else %>
+ <%= dgettext("activity", "%{profile} deleted the resource %{resource}.", %{
+ profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ resource: "#{@activity.subject_params["resource_title"]}"
+ })
+ |> 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 62dbea5ae..62f055725 100644
--- a/lib/web/templates/email/actor_suspension_participants.html.heex
+++ b/lib/web/templates/email/actor_suspension_participants.html.heex
@@ -6,11 +6,19 @@
-
+
-
+ |
- <%= gettext "Your participation to %{event} on %{instance} has been cancelled!", event: @event.title, instance: @instance_name %>
+ <%= gettext("Your participation to %{event} on %{instance} has been cancelled!",
+ event: @event.title,
+ instance: @instance_name
+ ) %>
|
@@ -30,12 +38,25 @@
-
+
-
+ |
- <%= 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, actor_address: if @actor.domain, do: "@#{@actor.preferred_username}@#{@actor.domain}", else: "@#{@actor.preferred_username}" %>
+ <%= 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,
+ actor_address:
+ if(@actor.domain,
+ 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 67d1a8f95..d13bfbf50 100644
--- a/lib/web/templates/email/admin/_role.html.heex
+++ b/lib/web/templates/email/admin/_role.html.heex
@@ -1,8 +1,8 @@
<%= case @role do %>
- <% :administrator -> %>
- <%= gettext "Administrator" %>
- <% :moderator -> %>
- <%= gettext "Moderator" %>
- <% :user -> %>
- <%= gettext "User" %>
-<% end %>
\ No newline at end of file
+ <% :administrator -> %>
+ <%= gettext("Administrator") %>
+ <% :moderator -> %>
+ <%= gettext("Moderator") %>
+ <% :user -> %>
+ <%= gettext("User") %>
+<% end %>
diff --git a/lib/web/templates/email/admin_user_confirmation.html.heex b/lib/web/templates/email/admin_user_confirmation.html.heex
index 6f94a5129..80ff98dcb 100644
--- a/lib/web/templates/email/admin_user_confirmation.html.heex
+++ b/lib/web/templates/email/admin_user_confirmation.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "An administrator manually confirmed your account" %>
+ <%= gettext("An administrator manually confirmed your account") %>
|
@@ -30,17 +35,29 @@
-
+
-
+ |
- <%= gettext("Hi there! We just wanted to inform you that an administrator from %{instance} just manually confirmed your account.", %{instance: @instance_name}) |> raw %>
+ <%= gettext(
+ "Hi there! We just wanted to inform you that an administrator from %{instance} just manually confirmed your account.",
+ %{instance: @instance_name}
+ )
+ |> raw %>
|
-
+ |
<%= gettext("You may now login using your credentials on the service.") %>
@@ -54,8 +71,12 @@
-
- <%= gettext "Login on %{instance}", %{instance: @instance_name} %>
+
+ <%= gettext("Login on %{instance}", %{instance: @instance_name}) %>
|
@@ -66,9 +87,20 @@
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
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 674e13976..97a7b476a 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
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "An administrator manually changed the email attached to your account" %>
+ <%= gettext("An administrator manually changed the email attached to your account") %>
|
@@ -30,19 +35,38 @@
-
+
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
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 9eaf23f83..513b4779b 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
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "An administrator manually changed the email attached to your account" %>
+ <%= gettext("An administrator manually changed the email attached to your account") %>
|
@@ -30,19 +35,38 @@
-
+
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
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 f273be2c6..5dfcb85b1 100644
--- a/lib/web/templates/email/admin_user_role_changed.html.heex
+++ b/lib/web/templates/email/admin_user_role_changed.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "An administrator changed your role" %>
+ <%= gettext("An administrator changed your role") %>
|
@@ -30,21 +35,33 @@
-
+
-
+ |
- <%= gettext("Hi there! We just wanted to inform you that an administrator from %{instance} just changed your account role.", %{instance: @instance_name}) |> raw %>
+ <%= gettext(
+ "Hi there! We just wanted to inform you that an administrator from %{instance} just changed your account role.",
+ %{instance: @instance_name}
+ )
+ |> raw %>
|
-
+ |
- <%= gettext "Old role" %>
+ <%= gettext("Old role") %>
|
<%= render("admin/_role.html", role: @old_role) %>
@@ -52,7 +69,7 @@
|
- <%= gettext "New role" %>
+ <%= gettext("New role") %>
|
<%= render("admin/_role.html", role: @new_role) %>
@@ -62,9 +79,20 @@
|
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
diff --git a/lib/web/templates/email/anonymous_participation_confirmation.html.heex b/lib/web/templates/email/anonymous_participation_confirmation.html.heex
index 07ad8ae6a..8f13ea212 100644
--- a/lib/web/templates/email/anonymous_participation_confirmation.html.heex
+++ b/lib/web/templates/email/anonymous_participation_confirmation.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Confirm your e-mail" %>
+ <%= gettext("Confirm your e-mail") %>
|
@@ -30,12 +35,20 @@
-
+
-
+ |
- <%= gettext("Hi there! You just registered to join this event: « %{title} ». Please confirm the e-mail address you provided:", title: @participant.event.title) |> raw %>
+ <%= gettext(
+ "Hi there! You just registered to join this event: « %{title} ». Please confirm the e-mail address you provided:",
+ title: @participant.event.title
+ )
+ |> raw %>
|
@@ -47,9 +60,17 @@
|
@@ -58,16 +79,28 @@
-
+ |
- <%= 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 %>
+ <%= 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
+ ) %>
|
-
+ |
- <%= 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 0c37dc2c0..1013b4c12 100644
--- a/lib/web/templates/email/before_event_notification.html.heex
+++ b/lib/web/templates/email/before_event_notification.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "An event is upcoming!" %>
+ <%= gettext("An event is upcoming!") %>
|
@@ -30,12 +35,16 @@
-
+
-
+ |
- <%= gettext "Get ready for %{title}", title: @participant.event.title %>
+ <%= gettext("Get ready for %{title}", title: @participant.event.title) %>
|
@@ -47,9 +56,17 @@
|
@@ -58,9 +75,15 @@
-
+ |
- <%= gettext "If you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button." %>
+ <%= 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 95970b390..679f6f66a 100644
--- a/lib/web/templates/email/date/event_tz_date.html.heex
+++ b/lib/web/templates/email/date/event_tz_date.html.heex
@@ -1,8 +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 |> datetime_tz_convert(@event.options.timezone) |> datetime_to_string(@locale, :short) %>
+
+ <%= @date
+ |> datetime_tz_convert(@event.options.timezone)
+ |> datetime_to_string(@locale, :short) %>
+
+
<%= if @event.options.timezone != @timezone do %>
- <%= gettext "🌐 %{timezone} %{offset}", timezone: @event.options.timezone, offset: @date |> datetime_tz_convert(@event.options.timezone) |> Cldr.DateTime.Formatter.zone_gmt() %>
+
+ <%= 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 d76e9abff..c5a22096a 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,14 +1,42 @@
<%= cond do %>
- <%= @end_date == nil -> %>
- <%= render("date/event_tz_date.html", date: @start_date, event: @event, timezone: @timezone, locale: @locale) %>
+ <% @end_date == nil -> %>
+ <%= render("date/event_tz_date.html",
+ date: @start_date,
+ event: @event,
+ timezone: @timezone,
+ locale: @locale
+ ) %>
<% is_same_day?(@start_date, @end_date) -> %>
- <%= 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}", timezone: @event.options.timezone, offset: Cldr.DateTime.Formatter.zone_gmt(@start_date) %>
- <% end %>
+
+ <%= 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}",
+ timezone: @event.options.timezone,
+ offset: Cldr.DateTime.Formatter.zone_gmt(@start_date)
+ ) %>
+
+ <% end %>
<% true -> %>
- <%= 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}", timezone: @event.options.timezone, offset: Cldr.DateTime.Formatter.zone_gmt(@start_date) %>
- <% 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}",
+ 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 789baa6f5..d8b34772e 100644
--- a/lib/web/templates/email/email.html.heex
+++ b/lib/web/templates/email/email.html.heex
@@ -1,22 +1,22 @@
-
+
<%= @subject %>
-
+
@@ -54,11 +54,18 @@
-
+
-
-
+
+
|
@@ -80,16 +87,30 @@
-
+
-
+ |
- <%= gettext "Warning" %>
+ <%= gettext("Warning") %>
-
- <%= gettext "This is a demonstration site to test Mobilizon." %>
- <%= gettext("Please do not use it for real purposes.") |> raw() %>
+
+
+ <%= gettext("This is a demonstration site to test Mobilizon.") %>
+
+
+ <%= gettext("Please do not use it for real purposes.") |> raw() %>
+
|
@@ -109,16 +130,26 @@
-
+
@@ -137,10 +168,14 @@
-
+
-
+ |
<%= if @offer_unsupscription do %>
@@ -149,8 +184,14 @@
<% end %>
- <%= gettext("%{instance} is powered by Mobilizon.", instance: @instance_name) |> raw %>
- <%= gettext "Learn more about Mobilizon here!" %>
+ <%= gettext("%{instance} is powered by Mobilizon.",
+ instance: @instance_name
+ )
+ |> raw %>
+
+
+ <%= gettext("Learn more about Mobilizon here!") %>
+
|
diff --git a/lib/web/templates/email/email_anonymous_activity.html.heex b/lib/web/templates/email/email_anonymous_activity.html.heex
index 411e777cb..00fed2939 100644
--- a/lib/web/templates/email/email_anonymous_activity.html.heex
+++ b/lib/web/templates/email/email_anonymous_activity.html.heex
@@ -6,9 +6,14 @@
-
+
-
+ |
<%= @subject %>
@@ -30,27 +35,30 @@
|
-
+
-
- <%=
- dgettext("activity", "%{profile} has posted an announcement under event %{event}.",
- %{
- profile: "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
- event: " URI.decode()}\">
+ |
+ <%= dgettext(
+ "activity",
+ "%{profile} has posted an announcement under event %{event}.",
+ %{
+ profile:
+ "#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}",
+ event: " URI.decode()}\">
#{@activity.subject_params["event_title"]}
"
- }
- ) |> raw %>
+ }
+ )
+ |> raw %>
|
@@ -63,9 +71,17 @@
|
|
diff --git a/lib/web/templates/email/email_changed_new.html.heex b/lib/web/templates/email/email_changed_new.html.heex
index 86613762a..0baf06d15 100644
--- a/lib/web/templates/email/email_changed_new.html.heex
+++ b/lib/web/templates/email/email_changed_new.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Confirm new email" %>
+ <%= gettext("Confirm new email") %>
|
@@ -30,12 +35,20 @@
-
+
-
+ |
- <%= 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 %>
+ <%= 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 %>
|
@@ -47,8 +60,14 @@
-
- <%= gettext "Verify your email address" %>
+
+ <%= gettext("Verify your email address") %>
|
@@ -59,9 +78,13 @@
-
+ |
- <%= 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 164155a46..55b578f18 100644
--- a/lib/web/templates/email/email_changed_old.html.heex
+++ b/lib/web/templates/email/email_changed_old.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "New email confirmation" %>
+ <%= gettext("New email confirmation") %>
|
@@ -30,12 +35,20 @@
-
+
-
+ |
- <%= gettext("The email address for your account on %{host} is being changed to:", host: @instance_name) |> raw %>
+ <%= gettext(
+ "The email address for your account on %{host} is being changed to:",
+ host: @instance_name
+ )
+ |> raw %>
|
@@ -57,9 +70,16 @@
-
+ |
- <%= 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 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_direct_activity.html.heex b/lib/web/templates/email/email_direct_activity.html.heex
index 82b472c25..c979e680f 100644
--- a/lib/web/templates/email/email_direct_activity.html.heex
+++ b/lib/web/templates/email/email_direct_activity.html.heex
@@ -6,9 +6,14 @@
-
+
-
+ |
<%= @subject %>
@@ -30,10 +35,14 @@
|
-
+
-
+ |
<%= case @recap do %>
<% :one_day -> %>
@@ -41,9 +50,19 @@
<% :one_week -> %>
<% dgettext("activity", "Here's your weekly activity recap") %>
<% :one_hour -> %>
- <%= dngettext("activity", "There has been an activity!", "There has been some activity!", @total_number_activities) %>
+ <%= dngettext(
+ "activity",
+ "There has been an activity!",
+ "There has been some activity!",
+ @total_number_activities
+ ) %>
<% false -> %>
- <%= dngettext("activity", "There has been an activity!", "There has been some activity!", @total_number_activities) %>
+ <%= dngettext(
+ "activity",
+ "There has been an activity!",
+ "There has been some activity!",
+ @total_number_activities
+ ) %>
<% end %>
|
@@ -52,96 +71,167 @@
-
+ |
<%= for {_, group_activities} <- @activities do %>
- -
- <%= if hd(group_activities).group do %>
-
-
-
-
-
- <%= if hd(group_activities).group.avatar do %>
-
- URI.decode() }"} target="_blank" style="text-decoration: none;">
-
-
- |
- <% end %>
-
-
-
-
- URI.decode() }"} target="_blank" style="text-decoration: none;color: #474467;font-family: 'Roboto', Helvetica, Arial, sans-serif;font-size: 18px;font-weight: bold;line-height: 25px;">
- <%= hd(group_activities).group.name || "@#{Mobilizon.Actors.Actor.preferred_username_and_domain(hd(group_activities).group)}" %>
-
- |
-
- <%= if hd(group_activities).group.name do %>
+ -
+ <%= if hd(group_activities).group do %>
+
- <% end %>
-
- <%= for activity <- Enum.take(group_activities, 5) do %>
- -
-
- <%= case activity.type do %>
- <% :discussion -> %>
- <%= render("activity/_discussion_activity_item.html", activity: activity) %>
- <% :event -> %>
- <%= render("activity/_event_activity_item.html", activity: activity) %>
- <% :group -> %>
- <%= render("activity/_group_activity_item.html", activity: activity) %>
- <% :member -> %>
- <%= render("activity/_member_activity_item.html", activity: activity) %>
- <% :post -> %>
- <%= render("activity/_post_activity_item.html", activity: activity) %>
- <% :resource -> %>
- <%= render("activity/_resource_activity_item.html", activity: activity) %>
- <% :comment -> %>
- <%= render("activity/_comment_activity_item.html", activity: activity) %>
- <% end %>
-
- <%= unless @single_activity do %>
-
- <%= datetime_to_string(activity.inserted_at, @locale, :short) %>
-
- <% end %>
-
+ <%= if hd(group_activities).group.name do %>
+
+
+ URI.decode()}"
+ }
+ target="_blank"
+ style="text-decoration: none;display: block;color: #7a7a7a;font-family: 'Roboto', Helvetica, Arial, sans-serif;font-size: 16px;font-weight: 400;line-height: 25px;"
+ >
+ @
+ <%= Mobilizon.Actors.Actor.preferred_username_and_domain(
+ hd(group_activities).group
+ ) %>
+
+ |
+
+ <% end %>
+
+ |
+
+
+ |
+
+
<% end %>
-
- <%= if length(group_activities) > 5 do %>
-
- <% end %>
-
+
+ <%= for activity <- Enum.take(group_activities, 5) do %>
+ -
+
+ <%= case activity.type do %>
+ <% :discussion -> %>
+ <%= render("activity/_discussion_activity_item.html",
+ activity: activity
+ ) %>
+ <% :event -> %>
+ <%= render("activity/_event_activity_item.html",
+ activity: activity
+ ) %>
+ <% :group -> %>
+ <%= render("activity/_group_activity_item.html",
+ activity: activity
+ ) %>
+ <% :member -> %>
+ <%= render("activity/_member_activity_item.html",
+ activity: activity
+ ) %>
+ <% :post -> %>
+ <%= render("activity/_post_activity_item.html",
+ activity: activity
+ ) %>
+ <% :resource -> %>
+ <%= render("activity/_resource_activity_item.html",
+ activity: activity
+ ) %>
+ <% :comment -> %>
+ <%= render("activity/_comment_activity_item.html",
+ activity: activity
+ ) %>
+ <% end %>
+
+ <%= unless @single_activity do %>
+
+ <%= datetime_to_string(activity.inserted_at, @locale, :short) %>
+
+ <% end %>
+
+ <% end %>
+
+ <%= if length(group_activities) > 5 do %>
+
+ <% end %>
+
<% end %>
|
@@ -150,9 +240,21 @@
-
+ |
- <%= dgettext("activity", "Don't want to receive activity notifications? You may change frequency or disable them in %{tag_start}your settings%{tag_end}.", %{tag_start: "", tag_end: ""}) |> raw %>
+ <%= dgettext(
+ "activity",
+ "Don't want to receive activity notifications? You may change frequency or disable them in %{tag_start}your settings%{tag_end}.",
+ %{
+ tag_start: "",
+ tag_end: ""
+ }
+ )
+ |> 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 5c941e28e..6feabd81e 100644
--- a/lib/web/templates/email/event_group_follower_notification.html.heex
+++ b/lib/web/templates/email/event_group_follower_notification.html.heex
@@ -6,11 +6,18 @@
-
+
-
+ |
- <%= gettext "%{group} scheduled a new event", group: Mobilizon.Actors.Actor.display_name(@group) %>
+ <%= gettext("%{group} scheduled a new event",
+ group: Mobilizon.Actors.Actor.display_name(@group)
+ ) %>
|
@@ -30,11 +37,20 @@
-
+
-
- <%= render("participation/event_card.html", event: @event, timezone: @timezone, locale: @locale, action: "event") %>
+ |
+ <%= render("participation/event_card.html",
+ event: @event,
+ timezone: @timezone,
+ locale: @locale,
+ action: "event"
+ ) %>
|
diff --git a/lib/web/templates/email/event_participation_approved.html.heex b/lib/web/templates/email/event_participation_approved.html.heex
index e3b578b2c..06b00b895 100644
--- a/lib/web/templates/email/event_participation_approved.html.heex
+++ b/lib/web/templates/email/event_participation_approved.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "You're going!" %>
+ <%= gettext("You're going!") %>
|
@@ -30,19 +35,30 @@
-
+
-
+ |
- <%= gettext("You recently requested to attend %{title}.", title: @event.title) |> raw %>
+ <%= gettext("You recently requested to attend %{title}.", title: @event.title)
+ |> raw %>
|
-
+ |
- <%= gettext "Good news: one of the event organizers just approved your request. Update your calendar, because you're on the guest list now!" %>
+ <%= gettext(
+ "Good news: one of the event organizers just approved your request. Update your calendar, because you're on the guest list now!"
+ ) %>
|
@@ -54,9 +70,15 @@
|
@@ -65,9 +87,15 @@
-
+ |
- <%= 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." %>
+ <%= 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 41fd6ba0e..26e0f623d 100644
--- a/lib/web/templates/email/event_participation_confirmed.html.heex
+++ b/lib/web/templates/email/event_participation_confirmed.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "You're going!" %>
+ <%= gettext("You're going!") %>
|
@@ -30,19 +35,30 @@
-
+
-
+ |
- <%= gettext("You recently requested to attend %{title}.", title: @event.title) |> raw %>
+ <%= gettext("You recently requested to attend %{title}.", title: @event.title)
+ |> raw %>
|
-
+ |
- <%= gettext "You have now confirmed your participation. Update your calendar, because you're on the guest list now!" %>
+ <%= gettext(
+ "You have now confirmed your participation. Update your calendar, because you're on the guest list now!"
+ ) %>
|
@@ -54,9 +70,15 @@
|
@@ -65,9 +87,15 @@
-
+ |
- <%= 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." %>
+ <%= 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 53e2e9695..44e503948 100644
--- a/lib/web/templates/email/event_participation_rejected.html.heex
+++ b/lib/web/templates/email/event_participation_rejected.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Sorry! You're not going." %>
+ <%= gettext("Sorry! You're not going.") %>
|
@@ -30,19 +35,28 @@
-
+
-
+ |
- <%= gettext("You issued a request to attend %{title}.", title: @event.title) |> raw %>
+ <%= gettext("You issued a request to attend %{title}.", title: @event.title)
+ |> raw %>
|
-
+ |
- <%= 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 ef2cf54e1..5b11f8166 100644
--- a/lib/web/templates/email/event_updated.html.heex
+++ b/lib/web/templates/email/event_updated.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Event update!" %>
+ <%= gettext("Event update!") %>
|
@@ -30,29 +35,43 @@
-
+
-
+ |
- <%= gettext("There have been changes for %{title} so we'd thought we'd let you know.", title: @old_event.title) |> raw %>
+ <%= gettext(
+ "There have been changes for %{title} so we'd thought we'd let you know.",
+ title: @old_event.title
+ )
+ |> raw %>
|
-
+ |
<%= if MapSet.member?(@changes, :status) do %>
- <%= case @event.status do %>
+ <%= case @event.status do %>
<% :confirmed -> %>
- <%= gettext "This event has been confirmed" %>
+ <%= gettext("This event has been confirmed") %>
<% :tentative -> %>
- <%= gettext "This event has yet to be confirmed: organizers will let you know if they do confirm it." %>
+ <%= 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 %>
|
@@ -61,7 +80,7 @@
<%= if MapSet.member?(@changes, :title) do %>
- <%= gettext "Event title" %>
+ <%= gettext("Event title") %>
|
<%= @event.title %>
@@ -71,27 +90,37 @@
<%= if MapSet.member?(@changes, :begins_on) do %>
|
- <%= gettext "Start" %>
+ <%= gettext("Start") %>
|
- <%= render("date/event_tz_date.html", event: @event, date: @event.begins_on, timezone: @timezone, locale: @locale) %>
+ <%= render("date/event_tz_date.html",
+ event: @event,
+ date: @event.begins_on,
+ timezone: @timezone,
+ locale: @locale
+ ) %>
|
<% end %>
<%= if MapSet.member?(@changes, :ends_on) && !is_nil(@event.ends_on) do %>
- <%= gettext "End" %>
+ <%= gettext("End") %>
|
- <%= render("date/event_tz_date.html", event: @event, date: @event.ends_on, timezone: @timezone, locale: @locale) %>
+ <%= render("date/event_tz_date.html",
+ event: @event,
+ date: @event.ends_on,
+ timezone: @timezone,
+ locale: @locale
+ ) %>
|
<% end %>
<%= if MapSet.member?(@changes, :physical_address) do %>
- <%= gettext "Location" %>
+ <%= gettext("Location") %>
|
<%= unless is_nil(@event.physical_address) do %>
@@ -101,7 +130,7 @@
|
<% else %>
- <%= gettext "Location address was removed" %>
+ <%= gettext("Location address was removed") %>
|
<% end %>
@@ -117,9 +146,15 @@
|
@@ -128,9 +163,17 @@
-
+ |
- <%= 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 %>
+ <%= 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 d65966423..68ccbfa83 100644
--- a/lib/web/templates/email/group_invite.html.heex
+++ b/lib/web/templates/email/group_invite.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Come along!" %>
+ <%= gettext("Come along!") %>
|
@@ -30,19 +35,34 @@
-
+
-
+ |
- <%= gettext("%{inviter} just invited you to join their group %{link_start}%{group}%{link_end}", group: @group.name, inviter: @inviter.name, link_start: "", link_end: "") |> raw %>
+ <%= gettext(
+ "%{inviter} just invited you to join their group %{link_start}%{group}%{link_end}",
+ group: @group.name,
+ inviter: @inviter.name,
+ link_start: "",
+ link_end: ""
+ )
+ |> raw %>
|
-
+ |
- <%= gettext "To accept this invitation, head over to your groups." %>
+ <%= gettext("To accept this invitation, head over to your groups.") %>
|
@@ -55,8 +75,12 @@
-
- <%= 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 1c0574df3..88f09d106 100644
--- a/lib/web/templates/email/group_member_removal.html.heex
+++ b/lib/web/templates/email/group_member_removal.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "So long, and thanks for the fish!" %>
+ <%= gettext("So long, and thanks for the fish!") %>
|
@@ -30,19 +35,35 @@
-
+
-
+ |
- <%= 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: @group.name, link_start: "", link_end: "") |> raw %>
+ <%= 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: @group.name,
+ link_start: "",
+ link_end: ""
+ )
+ |> raw %>
|
-
+ |
- <%= gettext "If you feel this is an error, you may contact the group's administrators so that they can add you back." %>
+ <%= 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 a45c8f8bf..aafa72415 100644
--- a/lib/web/templates/email/group_membership_approval.html.heex
+++ b/lib/web/templates/email/group_membership_approval.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "You're in!" %>
+ <%= gettext("You're in!") %>
|
@@ -30,12 +35,23 @@
-
+
-
+ |
- <%= gettext("Your membership request for group %{link_start}%{group}%{link_end} has been approved.", group: Mobilizon.Actors.Actor.display_name(@group), link_start: "", link_end: "") |> raw %>
+ <%= gettext(
+ "Your membership request for group %{link_start}%{group}%{link_end} has been approved.",
+ group: Mobilizon.Actors.Actor.display_name(@group),
+ link_start:
+ "",
+ link_end: ""
+ )
+ |> raw %>
|
@@ -48,8 +64,14 @@
-
- <%= 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 a818a1296..565e3bea3 100644
--- a/lib/web/templates/email/group_membership_rejection.html.heex
+++ b/lib/web/templates/email/group_membership_rejection.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Sorry, not this time!" %>
+ <%= gettext("Sorry, not this time!") %>
|
@@ -30,12 +35,23 @@
-
+
-
+ |
- <%= gettext("Your membership request for group %{link_start}%{group}%{link_end} has been rejected.", group: Mobilizon.Actors.Actor.display_name(@group), link_start: "", link_end: "") |> raw %>
+ <%= gettext(
+ "Your membership request for group %{link_start}%{group}%{link_end} has been rejected.",
+ group: Mobilizon.Actors.Actor.display_name(@group),
+ link_start:
+ "",
+ link_end: ""
+ )
+ |> raw %>
|
diff --git a/lib/web/templates/email/group_suspension.html.heex b/lib/web/templates/email/group_suspension.html.heex
index 8c5ced29d..7524bd584 100644
--- a/lib/web/templates/email/group_suspension.html.heex
+++ b/lib/web/templates/email/group_suspension.html.heex
@@ -6,11 +6,19 @@
-
+
-
+ |
- <%= gettext "The group %{group} has been suspended on %{instance}!", group: (@group.name || @group.preferred_username), instance: @instance_name %>
+ <%= gettext("The group %{group} has been suspended on %{instance}!",
+ group: @group.name || @group.preferred_username,
+ instance: @instance_name
+ ) %>
|
@@ -30,28 +38,53 @@
-
+
-
+ |
- <%= 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: @group.name, group_address: (if @group.domain, do: "@#{@group.preferred_username}@#{@group.domain}", else: "@#{@group.preferred_username}")) |> raw %>
+ <%= 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: @group.name,
+ group_address:
+ if(@group.domain,
+ do: "@#{@group.preferred_username}@#{@group.domain}",
+ else: "@#{@group.preferred_username}"
+ )
+ )
+ |> raw %>
|
<%= if is_nil(@group.domain) do %>
-
+ |
- <%= gettext "As this group was located on this instance, all of it's data has been irretrievably deleted." %>
+ <%= gettext(
+ "As this group was located on this instance, all of it's data has been irretrievably deleted."
+ ) %>
|
<% else %>
-
+ |
- <%= gettext "As this group was located on another instance, it will continue to work for other instances than this one." %>
+ <%= 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 f48e2ebf8..87f4ca93a 100644
--- a/lib/web/templates/email/instance_follow.html.heex
+++ b/lib/web/templates/email/instance_follow.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "Want to connect?" %>
+ <%= gettext("Want to connect?") %>
|
@@ -30,30 +35,67 @@
-
+
-
+ |
- <%= if @follower.type == :Application do %><%= gettext("%{name} (%{domain}) just requested to follow your instance.", name: @follower.name, domain: @follower.domain) |> raw %><% else %><%= gettext("%{name} just requested to follow your instance.", name: Mobilizon.Actors.Actor.display_name_and_username(@follower)) |> raw %><% end %>
+ <%= if @follower.type == :Application do %>
+ <%= gettext("%{name} (%{domain}) just requested to follow your instance.",
+ name: @follower.name,
+ domain: @follower.domain
+ )
+ |> raw %>
+ <% else %>
+ <%= gettext("%{name} just requested to follow your instance.",
+ name: Mobilizon.Actors.Actor.display_name_and_username(@follower)
+ )
+ |> raw %>
+ <% end %>
- <%= if @follower.type == :Application do %><%= 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." %><% end %>
+ <%= if @follower.type == :Application do %>
+ <%= 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.") %>
+ <% end %>
|
<%= if @follower.type == :Application do %>
-
-
-
- <%= gettext "Note: %{name} (%{domain}) following you doesn't necessarily imply that you follow this instance, but you can ask to follow them too.", name: @follower.name, domain: @follower.domain %>
-
- |
-
+
+
+
+ <%= gettext(
+ "Note: %{name} (%{domain}) following you doesn't necessarily imply that you follow this instance, but you can ask to follow them too.",
+ name: @follower.name,
+ domain: @follower.domain
+ ) %>
+
+ |
+
<% end %>
-
+ |
- <%= if @follower.type == :Application do %><%= 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." %><% end %>
+ <%= if @follower.type == :Application do %>
+ <%= 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.") %>
+ <% end %>
|
@@ -66,15 +108,27 @@
diff --git a/lib/web/templates/email/notification_each_week.html.heex b/lib/web/templates/email/notification_each_week.html.heex
index 7b4a78b63..288010db9 100644
--- a/lib/web/templates/email/notification_each_week.html.heex
+++ b/lib/web/templates/email/notification_each_week.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "On the agenda this week" %>
+ <%= gettext("On the agenda this week") %>
|
@@ -30,34 +35,65 @@
-
+
-
+ |
- <%= ngettext "You have one event this week:", "You have %{total} events this week:", @total, total: @total %>
+ <%= ngettext(
+ "You have one event this week:",
+ "You have %{total} events this week:",
+ @total,
+ total: @total
+ ) %>
|
-
+ |
<%= if @total > 1 do %>
<%= for participation <- @participations do %>
-
- <%= render("participation/event_card.html", event: participation.event, timezone: @timezone, locale: @locale, action: "participation") %>
+ <%= render("participation/event_card.html",
+ event: participation.event,
+ timezone: @timezone,
+ locale: @locale,
+ action: "participation"
+ ) %>
<% end %>
<% else %>
- <%= render("participation/event_card.html", event: @participation.event, timezone: @timezone, locale: @locale, action: "participation") %>
+ <%= render("participation/event_card.html",
+ event: @participation.event,
+ timezone: @timezone,
+ locale: @locale,
+ action: "participation"
+ ) %>
<% end %>
|
-
+ |
- <%= 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 %>
+ <%= 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 e3afee8e0..9c37baa51 100644
--- a/lib/web/templates/email/on_day_notification.html.heex
+++ b/lib/web/templates/email/on_day_notification.html.heex
@@ -6,11 +6,16 @@
-
+
-
+ |
- <%= gettext "What's up today?" %>
+ <%= gettext("What's up today?") %>
|
@@ -30,34 +35,62 @@
-
+
-
+ |
- <%= ngettext "You have one event today:", "You have %{total} events today:", @total, total: @total %>
+ <%= ngettext("You have one event today:", "You have %{total} events today:", @total,
+ total: @total
+ ) %>
|
-
+ |
<%= if @total > 1 do %>
<%= for participation <- @participations do %>
-
- <%= render("participation/event_card.html", event: participation.event, timezone: @timezone, locale: @locale, action: "participation") %>
+ <%= render("participation/event_card.html",
+ event: participation.event,
+ timezone: @timezone,
+ locale: @locale,
+ action: "participation"
+ ) %>
<% end %>
<% else %>
- <%= render("participation/event_card.html", event: @participation.event, timezone: @timezone, locale: @locale, action: "participation") %>
+ <%= render("participation/event_card.html",
+ event: @participation.event,
+ timezone: @timezone,
+ locale: @locale,
+ action: "participation"
+ ) %>
<% end %>
|
-
+ |
- <%= 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 %>
+ <%= 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 af7b78e2b..9d2a87402 100644
--- a/lib/web/templates/email/participation/card/_metadata.html.heex
+++ b/lib/web/templates/email/participation/card/_metadata.html.heex
@@ -1,7 +1,11 @@
-
+ |
|
@@ -9,31 +13,80 @@
-
+ |
-
+
-
-
-
+ |
+
+
|
-
-
- <%= 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) %>
+ |
+
+ <%= 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
+ ) %>
|
<%= if not is_nil(@event.physical_address) and not is_nil(render_address(@event.physical_address)) do %>
-
-
-
+ |
+
+
|
-
-
+ |
+
<%= render_address(@event.physical_address) %>
|
@@ -41,13 +94,31 @@
<% end %>
<%= if @event.options.is_online do %>
-
-
-
+ |
+
+
|
-
-
- <%= gettext "Online event" %>
+ |
+
+ <%= gettext("Online event") %>
|
@@ -61,7 +132,11 @@
-
+ |
|
diff --git a/lib/web/templates/email/participation/card/_picture.html.heex b/lib/web/templates/email/participation/card/_picture.html.heex
index 81fa88104..341ec1313 100644
--- a/lib/web/templates/email/participation/card/_picture.html.heex
+++ b/lib/web/templates/email/participation/card/_picture.html.heex
@@ -1,9 +1,22 @@
-
-
-
+
+
+
|
diff --git a/lib/web/templates/email/participation/card/_title.html.heex b/lib/web/templates/email/participation/card/_title.html.heex
index 9b4de7ed5..df8ab978f 100644
--- a/lib/web/templates/email/participation/card/_title.html.heex
+++ b/lib/web/templates/email/participation/card/_title.html.heex
@@ -1,22 +1,50 @@
-
-
+ |
+
<%= @event.title %>
<%= cond do %>
<% @event.attributed_to != nil and @event.attributed_to.avatar != nil && @event.attributed_to.avatar.url != nil -> %>
-
+
<% @event.organizer_actor.avatar != nil and @event.organizer_actor.avatar.url != nil -> %>
-
+
<% true -> %>
<% end %>
-
+
<%= if @event.attributed_to do %>
- raw} style="color: rgb(254,56,89); font-family: Helvetica,Arial,sans-serif; font-weight: normal; text-align: left; line-height: 1.3; text-decoration: none; vertical-align: baseline; margin: 0; padding: 0; border: 0;" target="_blank">
+ raw
+ }
+ style="color: rgb(254,56,89); font-family: Helvetica,Arial,sans-serif; font-weight: normal; text-align: left; line-height: 1.3; text-decoration: none; vertical-align: baseline; margin: 0; padding: 0; border: 0;"
+ target="_blank"
+ >
<%= @event.attributed_to.name || @event.attributed_to.preferred_username %>
<% else %>
diff --git a/lib/web/templates/email/participation/event_card.html.heex b/lib/web/templates/email/participation/event_card.html.heex
index eb2ccb29b..6bf839613 100644
--- a/lib/web/templates/email/participation/event_card.html.heex
+++ b/lib/web/templates/email/participation/event_card.html.heex
@@ -4,65 +4,131 @@
<% end %>
<%= render("participation/card/_title.html", event: @event) %>
-<%= render("participation/card/_metadata.html", event: @event, timezone: @timezone, locale: @locale, action: @action) %>
+<%= render("participation/card/_metadata.html",
+ event: @event,
+ timezone: @timezone,
+ locale: @locale,
+ action: @action
+) %>
<%= case @action do %>
<% "participation" -> %>
-
+
<% "event" -> %>
-
+
<% nil -> %>
<% end %>
<%= if @event.description && @action != nil do %>
- | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |