Format LiveView templates after adding the LiveView formatter plugin
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
bde831299d
commit
4f92add78d
@ -1,25 +1,32 @@
|
||||
<article class="message">
|
||||
<p class="message-body">
|
||||
<%= pgettext("terms", "Some terms, technical or otherwise, used in the text below may cover concepts that are difficult to grasp. We have provided <a href=\"/glossary\">a glossary</a> 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 href=\"/glossary\">a glossary</a> to help you understand them better."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</article>
|
||||
<h3><%= pgettext("terms", "What information do we collect?") %></h3>
|
||||
<ul>
|
||||
<li>
|
||||
<b><%= pgettext("terms", "Basic account information") %></b>
|
||||
<p><%= 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 <b>an email address, a password</b> (hashed) and at least <b>an username</b>. 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 <b>a display name and biography, and upload a profile picture and header image</b>. The username, display name, biography, profile picture and header image <b>are always listed publicly</b>. <b>You may however visit this instance without registering</b>."
|
||||
) |> raw %>
|
||||
<p>
|
||||
<%= 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 <b>an email address, a password</b> (hashed) and at least <b>an username</b>. 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 <b>a display name and biography, and upload a profile picture and header image</b>. The username, display name, biography, profile picture and header image <b>are always listed publicly</b>. <b>You may however visit this instance without registering</b>."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<b><%= pgettext("terms", "Published events and comments") %></b>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Your <b>events</b> and <b>comments</b> 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 <b>events</b> and <b>comments</b> 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 %>
|
||||
</p>
|
||||
<p>
|
||||
<b><%= pgettext("terms", "Do not share any dangerous information over Mobilizon.") %></b>
|
||||
@ -28,47 +35,71 @@
|
||||
<li>
|
||||
<b><%= pgettext("terms", "IPs and other metadata") %></b>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h3><%= pgettext("terms", "What do we use your information for?") %></h3>
|
||||
<p><%=
|
||||
pgettext(
|
||||
"terms",
|
||||
"Any of the information we collect from you may be used in the following ways:"
|
||||
)
|
||||
%></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Any of the information we collect from you may be used in the following ways:"
|
||||
) %>
|
||||
</p>
|
||||
<ul>
|
||||
<li><%= 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.") %></li>
|
||||
<li><%= 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.") %></li>
|
||||
<li><%= pgettext("terms", "The email address you provide may be used to send you information, updates and notifications about other people
|
||||
<li>
|
||||
<%= 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."
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= 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."
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= 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.") %></li>
|
||||
questions."
|
||||
) %>
|
||||
</li>
|
||||
</ul>
|
||||
<h3 class="title"><%= pgettext("terms", "How do we protect your information?") %></h3>
|
||||
<p>
|
||||
<%=
|
||||
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."
|
||||
) %>
|
||||
</p>
|
||||
<h3 class="title"><%= pgettext("terms", "What is our data retention policy?") %></h3>
|
||||
<p><%= pgettext("terms", "We will make a good faith effort to:") %></p>
|
||||
<ul>
|
||||
<li>
|
||||
<%= 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."
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= 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."
|
||||
) %>
|
||||
</li>
|
||||
</ul>
|
||||
<p><%= pgettext("terms", "You may irreversibly delete your account at any time.") %></p>
|
||||
<h3 class="title"><%= pgettext("terms", "Do we use cookies?") %></h3>
|
||||
<p><%=
|
||||
pgettext("terms", "We store the following information on your device when you connect:")
|
||||
%>
|
||||
<p>
|
||||
<%= pgettext("terms", "We store the following information on your device when you connect:") %>
|
||||
</p>
|
||||
<ul>
|
||||
<li><%= pgettext("terms", "An internal user ID") %></li>
|
||||
@ -76,44 +107,72 @@
|
||||
<li><%= pgettext("terms", "Tokens to authenticate you") %></li>
|
||||
</ul>
|
||||
<p><%= pgettext("terms", "If you delete this information, you need to login again.") %></p>
|
||||
<p><%=
|
||||
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."
|
||||
)
|
||||
%>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<em>
|
||||
<%= 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."
|
||||
) %>
|
||||
</em>
|
||||
<h3 class="title"><%=
|
||||
pgettext("terms", "Do we disclose any information to outside parties?")
|
||||
%></h3>
|
||||
<h3 class="title">
|
||||
<%= pgettext("terms", "Do we disclose any information to outside parties?") %>
|
||||
</h3>
|
||||
<p>
|
||||
<%=
|
||||
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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%=
|
||||
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."
|
||||
) %>
|
||||
</p>
|
||||
<h3 class="title"><%=
|
||||
pgettext("terms", "Site usage by children")
|
||||
%></h3>
|
||||
<h3 class="title"><%= pgettext("terms", "Site usage by children") %></h3>
|
||||
<p>
|
||||
<%= 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 (<a href=\"https://en.wikipedia.org/wiki/General_Data_Protection_Regulation\">General Data Protection Regulation</a>) 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 (<a href=\"https://en.wikipedia.org/wiki/General_Data_Protection_Regulation\">General Data Protection Regulation</a>) do not use this site."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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 (<a href=\"https://en.wikipedia.org/wiki/Children%27s_Online_Privacy_Protection_Act\">Children's Online Privacy Protection Act</a>) 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 (<a href=\"https://en.wikipedia.org/wiki/Children%27s_Online_Privacy_Protection_Act\">Children's Online Privacy Protection Act</a>) do not use this site."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<h3 class="title"><%= pgettext("terms", "Changes to our Privacy Policy") %></h3>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"If we decide to change our privacy policy, we will post those changes on this page."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"This document is licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>. It was last updated June 18, 2020."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Originally adapted from the <a href=\"https://mastodon.social/terms\">Mastodon</a> and <a href=\"https://github.com/discourse/discourse\">Discourse</a> privacy policies, also licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<h3 class="title"><%=
|
||||
pgettext("terms", "Changes to our Privacy Policy")
|
||||
%></h3>
|
||||
<p><%= pgettext("terms", "If we decide to change our privacy policy, we will post those changes on this page.") %></p>
|
||||
<p><%= pgettext("terms", "This document is licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>. It was last updated June 18, 2020.") |> raw %></p>
|
||||
<p><%= pgettext("terms", "Originally adapted from the <a href=\"https://mastodon.social/terms\">Mastodon</a> and <a href=\"https://github.com/discourse/discourse\">Discourse</a> privacy policies, also licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>.") |> raw %></p>
|
||||
|
@ -3,96 +3,324 @@
|
||||
<h3><%= pgettext("terms", "Short version") %></h3>
|
||||
<ul>
|
||||
<li><%= pgettext("terms", "Your content is yours") %></li>
|
||||
<li><%= pgettext("terms", "<b>%{instance_name}</b> will not use or transmit or resell your personal data", %{instance_name: @instance_name}) |> raw %></li>
|
||||
<li><%= pgettext("terms", "You must respect the law when using <b>%{instance_name}</b>", %{instance_name: @instance_name}) |> raw %></li>
|
||||
<li><%= pgettext("terms", "You must respect other people and <b>%{instance_name}</b>'s rules when using the service", %{instance_name: @instance_name}) |> raw %></li>
|
||||
<li><%= pgettext("terms", "The service is provided without warranties and these terms may change in the future") %></li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"<b>%{instance_name}</b> will not use or transmit or resell your personal data",
|
||||
%{instance_name: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext("terms", "You must respect the law when using <b>%{instance_name}</b>", %{
|
||||
instance_name: @instance_name
|
||||
})
|
||||
|> raw %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"You must respect other people and <b>%{instance_name}</b>'s rules when using the service",
|
||||
%{instance_name: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"The service is provided without warranties and these terms may change in the future"
|
||||
) %>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
<article class="message">
|
||||
<p class="message-body">
|
||||
<%= pgettext("terms", "Some terms, technical or otherwise, used in the text below may cover concepts that are difficult to grasp. We have provided <a href=\"/glossary\">a glossary</a> 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 href=\"/glossary\">a glossary</a> to help you understand them better."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</article>
|
||||
<p><%= pgettext("terms", "Here are the important things you need to know about accessing and using the <b>%{instance_name}</b> (<a href=\"https://%{instance_url}\">%{instance_url}</a>) 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 %></p>
|
||||
<p>
|
||||
<%= 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 <a href=\"https://framasoft.org\">Framasoft</a>, 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 <a href=\"/about/instance\">\"About this instance\"</a> page.") |> raw %>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Here are the important things you need to know about accessing and using the <b>%{instance_name}</b> (<a href=\"https://%{instance_url}\">%{instance_url}</a>) 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 %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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 <a href=\"https://framasoft.org\">Framasoft</a>, 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 <a href=\"/about/instance\">\"About this instance\"</a> page."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<!-- Accept -->
|
||||
<h3><%= pgettext("terms", "Accepting these Terms") %></h3>
|
||||
<p><%= 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 %></p>
|
||||
<p>
|
||||
<%= 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 %>
|
||||
</p>
|
||||
<!-- Changes -->
|
||||
<h3>
|
||||
<%= pgettext("terms", "Changes to these Terms") %>
|
||||
</h3>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<!-- Privacy policy -->
|
||||
<h3><%= pgettext("terms", "Privacy Policy") %></h3>
|
||||
<p><%= pgettext("terms", "For information about how we collect and use information about users of the Service, please check our <a href=\"/privacy\">privacy policy</a>.") |> raw %></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"For information about how we collect and use information about users of the Service, please check our <a href=\"/privacy\">privacy policy</a>."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<!-- Account security -->
|
||||
<h3><%= pgettext("terms", "Creating Accounts") %></h3>
|
||||
<p><%= 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 <b>%{instance_name}</b>.", %{instance_name: @instance_name}) |> raw %></p>
|
||||
<p><%= 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 <a href=\"https://framagit.org/framasoft/mobilizon/\">its contributors</a> directly.") |> raw %></p>
|
||||
<p><%= 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.") %></p>
|
||||
<p>
|
||||
<%= 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 <b>%{instance_name}</b>.",
|
||||
%{instance_name: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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 <a href=\"https://framagit.org/framasoft/mobilizon/\">its contributors</a> directly."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<!-- Your content -->
|
||||
<h3><%= pgettext("terms", "Your Content & Conduct") %></h3>
|
||||
<p><%= 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.") %></p>
|
||||
<p><%= 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.") %></p>
|
||||
<p><%= 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.") %></p>
|
||||
<p><%= 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.") %></p>
|
||||
<p><%= 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.") %></p>
|
||||
<p><%= pgettext("terms", "In order to make <b>%{instance_name}</b> 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 %></p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"In order to make <b>%{instance_name}</b> 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 %>
|
||||
</p>
|
||||
<ul>
|
||||
<li><%= pgettext("terms", "Content that is illegal or unlawful, that would otherwise create liability;") %></li>
|
||||
<li><%= 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;") %></li>
|
||||
<li><%= pgettext("terms", "Private information of any third party (e.g., addresses, phone numbers, email addresses, Social Security numbers and credit card numbers); and") %></li>
|
||||
<li><%= pgettext("terms", "Viruses, corrupted data or other harmful, disruptive or destructive files or code.") %></li>
|
||||
</ul>
|
||||
<p><%= pgettext("terms", "Also, you agree that you will not do any of the following in connection with the Service or other users:") %></p>
|
||||
<ul>
|
||||
<li><%= 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;") %></li>
|
||||
<li><%= pgettext("terms", "Impersonate or post on behalf of any person or entity or otherwise misrepresent your affiliation with a person or entity;") %></li>
|
||||
<li><%= pgettext("terms", "Collect any personal information about other users, or intimidate, threaten, stalk or otherwise harass other users of the Service;") %></li>
|
||||
<li><%= 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.") %></li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Content that is illegal or unlawful, that would otherwise create liability;"
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= 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;"
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Private information of any third party (e.g., addresses, phone numbers, email addresses, Social Security numbers and credit card numbers); and"
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Viruses, corrupted data or other harmful, disruptive or destructive files or code."
|
||||
) %>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<%= pgettext("terms", "Finally, your use of the Service is also subject to acceptance of <a href=\"/rules\">the instance's own specific rules</a> 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:"
|
||||
) %>
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<%= 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;"
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Impersonate or post on behalf of any person or entity or otherwise misrepresent your affiliation with a person or entity;"
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Collect any personal information about other users, or intimidate, threaten, stalk or otherwise harass other users of the Service;"
|
||||
) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= 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."
|
||||
) %>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Finally, your use of the Service is also subject to acceptance of <a href=\"/rules\">the instance's own specific rules</a> regarding the code of conduct and moderation rules. Breaking those rules may also result in your account being disabled or suspended."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<h3>
|
||||
<%= pgettext("terms", "Our responsibility") %>
|
||||
</h3>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<h3><%= pgettext("terms", "Source code") %></h3>
|
||||
<p><%= pgettext("terms", "This Service runs on a Mobilizon instance. This source code is licensed under an <a href=\"https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)\">AGPLv3 license</a> which means you are allowed to and even encouraged to take the source code, modify it and use it.") |> raw %></p>
|
||||
<p><%= pgettext("terms", "For full details about the Mobilizon software <a href=\"https://joinmobilizon.org\">see here</a>.") |> raw %></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"This Service runs on a Mobilizon instance. This source code is licensed under an <a href=\"https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)\">AGPLv3 license</a> which means you are allowed to and even encouraged to take the source code, modify it and use it."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"For full details about the Mobilizon software <a href=\"https://joinmobilizon.org\">see here</a>."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<!-- Links -->
|
||||
<h3><%= pgettext("terms", "Hyperlinks and Third Party Content") %></h3>
|
||||
<p><%= pgettext("terms", "<b>%{instance_name}</b> 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 <b>%{instance_name}</b> of the site. Use of any such linked website is at the user's own risk.", %{instance_name: @instance_name}) |> raw %></p>
|
||||
<p><%= 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.") %></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"<b>%{instance_name}</b> 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 <b>%{instance_name}</b> of the site. Use of any such linked website is at the user's own risk.",
|
||||
%{instance_name: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<!-- Termination -->
|
||||
<h3><%= pgettext("terms", "Termination") %></h3>
|
||||
<p><%= 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.") %></p>
|
||||
<p>
|
||||
<%= 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."
|
||||
) %>
|
||||
</p>
|
||||
<h3><%= pgettext("terms", "Entire Agreement") %></h3>
|
||||
<p><%= pgettext("terms", "These Terms constitute the entire agreement between you and <b>%{instance_name}</b> regarding the use of the Service, superseding any prior agreements between you and <b>%{instance_name}</b> relating to your use of the Service.", %{instance_name: @instance_name}) |> raw %></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"These Terms constitute the entire agreement between you and <b>%{instance_name}</b> regarding the use of the Service, superseding any prior agreements between you and <b>%{instance_name}</b> relating to your use of the Service.",
|
||||
%{instance_name: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<!-- Feedback -->
|
||||
<h3><%= pgettext("terms", "Feedback") %></h3>
|
||||
<p><%= pgettext("terms", "We love feedback. Please let us know what you think of the Service, these Terms and, in general, <b>%{instance_name}</b>.", %{instance_name: @instance_name}) |> raw %></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"We love feedback. Please let us know what you think of the Service, these Terms and, in general, <b>%{instance_name}</b>.",
|
||||
%{instance_name: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<!-- Questions -->
|
||||
<h3><%= pgettext("terms", "Questions & Contact Information") %></h3>
|
||||
<p><%= pgettext("terms", "Questions or comments about the Service may be directed to us at %{contact}", %{contact: @instance_contact}) |> raw %></p>
|
||||
<p><%= pgettext("terms", "This document is licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>. It was last updated June 22, 2020.") |> raw %></p>
|
||||
<p><%= pgettext("terms", "Originally adapted from the <a href=\"https://joindiaspora.com/terms\">Diaspora*</a> and <a href=\"https://github.com/appdotnet/terms-of-service\">App.net</a> privacy policies, also licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>.") |> raw %></p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Questions or comments about the Service may be directed to us at %{contact}",
|
||||
%{contact: @instance_contact}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"This document is licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>. It was last updated June 22, 2020."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
<p>
|
||||
<%= pgettext(
|
||||
"terms",
|
||||
"Originally adapted from the <a href=\"https://joindiaspora.com/terms\">Diaspora*</a> and <a href=\"https://github.com/appdotnet/terms-of-service\">App.net</a> privacy policies, also licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA</a>."
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
|
@ -1,65 +1,48 @@
|
||||
<%= case @activity.subject do %>
|
||||
<% :event_comment_mention -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
<% :event_comment_mention -> %>
|
||||
<%= dgettext("activity", "%{profile} mentionned you in a comment under event %{event}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :participation_event_comment -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} has posted an announcement under event %{event}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :participation_event_comment -> %>
|
||||
<%= dgettext("activity", "%{profile} has posted an announcement under event %{event}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> 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: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> 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: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}#comment-#{@activity.subject_params["comment_reply_to_uuid"]}-#{@activity.subject_params["comment_uuid"]}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% else %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} has posted a new comment under your event %{event}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}#comment-#{@activity.subject_params["comment_uuid"]}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% else %>
|
||||
<%= dgettext(
|
||||
"activity",
|
||||
"%{profile} has posted a new comment under your event %{event}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}#comment-#{@activity.subject_params["comment_uuid"]}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
}
|
||||
)
|
||||
|> raw %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -1,66 +1,40 @@
|
||||
<%= case @activity.subject do %>
|
||||
<% :discussion_created -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} created the discussion %{discussion}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:discussion,
|
||||
Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]
|
||||
) |> URI.decode()}\">
|
||||
<% :discussion_created -> %>
|
||||
<%= dgettext("activity", "%{profile} created the discussion %{discussion}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion:
|
||||
"<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint, :discussion, Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["discussion_title"]}</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :discussion_replied -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} replied to the discussion %{discussion}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:discussion,
|
||||
Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :discussion_replied -> %>
|
||||
<%= dgettext("activity", "%{profile} replied to the discussion %{discussion}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion:
|
||||
"<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint, :discussion, Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["discussion_title"]}</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :discussion_renamed -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} renamed the discussion %{discussion}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:discussion,
|
||||
Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :discussion_renamed -> %>
|
||||
<%= dgettext("activity", "%{profile} renamed the discussion %{discussion}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion:
|
||||
"<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint, :discussion, Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["discussion_title"]}</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :discussion_archived -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} archived the discussion %{discussion}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:discussion,
|
||||
Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :discussion_archived -> %>
|
||||
<%= dgettext("activity", "%{profile} archived the discussion %{discussion}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion:
|
||||
"<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint, :discussion, Mobilizon.Actors.Actor.preferred_username_and_domain(@activity.group), @activity.subject_params["discussion_slug"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["discussion_title"]}</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :discussion_deleted -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} deleted the discussion %{discussion}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion: "<b>#{@activity.subject_params["discussion_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
})
|
||||
|> raw %>
|
||||
<% :discussion_deleted -> %>
|
||||
<%= dgettext("activity", "%{profile} deleted the discussion %{discussion}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
discussion: "<b>#{@activity.subject_params["discussion_title"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
|
@ -1,72 +1,50 @@
|
||||
<%= case @activity.subject do %>
|
||||
<% :event_created -> %>
|
||||
<%=
|
||||
dgettext("activity", "The event %{event} was created by %{profile}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
<% :event_created -> %>
|
||||
<%= dgettext("activity", "The event %{event} was created by %{profile}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :event_updated -> %>
|
||||
<%=
|
||||
dgettext("activity", "The event %{event} was updated by %{profile}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :event_updated -> %>
|
||||
<%= dgettext("activity", "The event %{event} was updated by %{profile}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :event_deleted -> %>
|
||||
<%=
|
||||
dgettext("activity", "The event %{event} was deleted by %{profile}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<b>#{@activity.subject_params["event_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :comment_posted -> %>
|
||||
})
|
||||
|> raw %>
|
||||
<% :event_deleted -> %>
|
||||
<%= dgettext("activity", "The event %{event} was deleted by %{profile}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<b>#{@activity.subject_params["event_title"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :comment_posted -> %>
|
||||
<%= if @activity.subject_params["comment_reply_to"] do %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} replied to a comment on the event %{event}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
<%= dgettext("activity", "%{profile} replied to a comment on the event %{event}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
})
|
||||
|> raw %>
|
||||
<% else %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} posted a comment on the event %{event}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
<%= dgettext("activity", "%{profile} posted a comment on the event %{event}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
event: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:event,
|
||||
@activity.subject_params["event_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["event_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -1,32 +1,22 @@
|
||||
<%= case @activity.subject do %>
|
||||
<% :group_created -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} created the group %{group}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
group: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:actor,
|
||||
@activity.subject_params["group_federated_username"]
|
||||
) |> URI.decode()}\">
|
||||
<% :group_created -> %>
|
||||
<%= dgettext("activity", "%{profile} created the group %{group}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
group: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:actor,
|
||||
@activity.subject_params["group_federated_username"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["group_name"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :group_updated -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} updated the group %{group}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
group: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:actor,
|
||||
@activity.subject_params["group_federated_username"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :group_updated -> %>
|
||||
<%= dgettext("activity", "%{profile} updated the group %{group}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
group: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:actor,
|
||||
@activity.subject_params["group_federated_username"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["group_name"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
|
@ -1,69 +1,52 @@
|
||||
<%= case @activity.subject do %>
|
||||
<% :member_request -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{member} requested to join the group.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_invited -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{member} was invited by %{profile}.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_accepted_invitation -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{member} accepted the invitation to join the group.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_rejected_invitation -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{member} rejected the invitation to join the group.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_joined -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{member} joined the group.",
|
||||
%{
|
||||
member: "<b title=\"#{@activity.subject_params["member_actor_federated_username"]}\">#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_added -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} added the member %{member}.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_updated -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} updated the member %{member}.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_removed -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} excluded member %{member}.",
|
||||
%{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% :member_quit -> %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} quit the group.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
<% :member_request -> %>
|
||||
<%= dgettext("activity", "%{member} requested to join the group.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_invited -> %>
|
||||
<%= dgettext("activity", "%{member} was invited by %{profile}.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_accepted_invitation -> %>
|
||||
<%= dgettext("activity", "%{member} accepted the invitation to join the group.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_rejected_invitation -> %>
|
||||
<%= dgettext("activity", "%{member} rejected the invitation to join the group.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_joined -> %>
|
||||
<%= dgettext("activity", "%{member} joined the group.", %{
|
||||
member:
|
||||
"<b title=\"#{@activity.subject_params["member_actor_federated_username"]}\">#{@activity.subject_params["member_actor_name"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_added -> %>
|
||||
<%= dgettext("activity", "%{profile} added the member %{member}.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_updated -> %>
|
||||
<%= dgettext("activity", "%{profile} updated the member %{member}.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_removed -> %>
|
||||
<%= dgettext("activity", "%{profile} excluded member %{member}.", %{
|
||||
member: "<b>#{@activity.subject_params["member_actor_name"]}</b>",
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% :member_quit -> %>
|
||||
<%= dgettext("activity", "%{profile} quit the group.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
|
@ -1,40 +1,28 @@
|
||||
<%= case @activity.subject do %>
|
||||
<% :post_created -> %>
|
||||
<%=
|
||||
dgettext("activity", "The post %{post} was created by %{profile}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
post: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:post,
|
||||
@activity.subject_params["post_slug"]
|
||||
) |> URI.decode()}\">
|
||||
<% :post_created -> %>
|
||||
<%= dgettext("activity", "The post %{post} was created by %{profile}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
post: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:post,
|
||||
@activity.subject_params["post_slug"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["post_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :post_updated -> %>
|
||||
<%=
|
||||
dgettext("activity", "The post %{post} was updated by %{profile}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
post: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:post,
|
||||
@activity.subject_params["post_slug"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% :post_updated -> %>
|
||||
<%= dgettext("activity", "The post %{post} was updated by %{profile}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
post: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:post,
|
||||
@activity.subject_params["post_slug"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["post_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% :post_deleted -> %>
|
||||
<%=
|
||||
dgettext("activity", "The post %{post} was deleted by %{profile}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
post: "<b>#{@activity.subject_params["post_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
})
|
||||
|> raw %>
|
||||
<% :post_deleted -> %>
|
||||
<%= dgettext("activity", "The post %{post} was deleted by %{profile}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
post: "<b>#{@activity.subject_params["post_title"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
|
@ -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: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
<% :resource_created -> %>
|
||||
<%= if @activity.subject_params["is_folder"] do %>
|
||||
<%= dgettext("activity", "%{profile} created the folder %{resource}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["resource_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% else %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} created the resource %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% else %>
|
||||
<%= dgettext("activity", "%{profile} created the resource %{resource}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["resource_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
<% :resource_renamed -> %>
|
||||
<%= if @activity.subject_params["is_folder"] do %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} renamed the folder from %{old_resource_title} to %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]
|
||||
) |> 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: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["resource_title"]}
|
||||
</a>",
|
||||
old_resource_title: "<b>#{@activity.subject_params["old_resource_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% else %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} renamed the resource from %{old_resource_title} to %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
old_resource_title: "<b>#{@activity.subject_params["old_resource_title"]}</b>"
|
||||
}
|
||||
)
|
||||
|> raw %>
|
||||
<% else %>
|
||||
<%= dgettext(
|
||||
"activity",
|
||||
"%{profile} renamed the resource from %{old_resource_title} to %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["resource_title"]}
|
||||
</a>",
|
||||
old_resource_title: "<b>#{@activity.subject_params["old_resource_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
<% :resource_moved -> %>
|
||||
<%= if @activity.subject_params["is_folder"] do %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} moved the folder %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
old_resource_title: "<b>#{@activity.subject_params["old_resource_title"]}</b>"
|
||||
}
|
||||
)
|
||||
|> raw %>
|
||||
<% end %>
|
||||
<% :resource_moved -> %>
|
||||
<%= if @activity.subject_params["is_folder"] do %>
|
||||
<%= dgettext("activity", "%{profile} moved the folder %{resource}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["resource_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% else %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} moved the resource %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{
|
||||
Routes.page_url(
|
||||
Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]
|
||||
) |> URI.decode()}\">
|
||||
})
|
||||
|> raw %>
|
||||
<% else %>
|
||||
<%= dgettext("activity", "%{profile} moved the resource %{resource}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
|
||||
:resource,
|
||||
@activity.subject_params["resource_uuid"]) |> URI.decode()}\">
|
||||
#{@activity.subject_params["resource_title"]}
|
||||
</a>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
<% :resource_deleted -> %>
|
||||
<%= if @activity.subject_params["is_folder"] do %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} deleted the folder %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<b>#{@activity.subject_params["resource_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% else %>
|
||||
<%=
|
||||
dgettext("activity", "%{profile} deleted the resource %{resource}.",
|
||||
%{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<b>#{@activity.subject_params["resource_title"]}</b>"
|
||||
}
|
||||
) |> raw %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
<% :resource_deleted -> %>
|
||||
<%= if @activity.subject_params["is_folder"] do %>
|
||||
<%= dgettext("activity", "%{profile} deleted the folder %{resource}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<b>#{@activity.subject_params["resource_title"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% else %>
|
||||
<%= dgettext("activity", "%{profile} deleted the resource %{resource}.", %{
|
||||
profile: "<b>#{Mobilizon.Actors.Actor.display_name_and_username(@activity.author)}</b>",
|
||||
resource: "<b>#{@activity.subject_params["resource_title"]}</b>"
|
||||
})
|
||||
|> raw %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -6,11 +6,19 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="center" valign="top" style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;">
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="center"
|
||||
valign="top"
|
||||
style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;"
|
||||
>
|
||||
<h1 style="font-size: 48px; font-weight: 400; margin: 0;">
|
||||
<%= 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
|
||||
) %>
|
||||
</h1>
|
||||
</td>
|
||||
</tr>
|
||||
@ -30,12 +38,25 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<!-- COPY -->
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<%= 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}"
|
||||
)
|
||||
) %>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<%= case @role do %>
|
||||
<% :administrator -> %>
|
||||
<b><%= gettext "Administrator" %></b>
|
||||
<% :moderator -> %>
|
||||
<b><%= gettext "Moderator" %></b>
|
||||
<% :user -> %>
|
||||
<b><%= gettext "User" %></b>
|
||||
<% end %>
|
||||
<% :administrator -> %>
|
||||
<b><%= gettext("Administrator") %></b>
|
||||
<% :moderator -> %>
|
||||
<b><%= gettext("Moderator") %></b>
|
||||
<% :user -> %>
|
||||
<b><%= gettext("User") %></b>
|
||||
<% end %>
|
||||
|
@ -6,11 +6,16 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="center" valign="top" style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;">
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="center"
|
||||
valign="top"
|
||||
style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;"
|
||||
>
|
||||
<h1 style="font-size: 48px; font-weight: 400; margin: 0;">
|
||||
<%= gettext "An administrator manually confirmed your account" %>
|
||||
<%= gettext("An administrator manually confirmed your account") %>
|
||||
</h1>
|
||||
</td>
|
||||
</tr>
|
||||
@ -30,17 +35,29 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<!-- COPY -->
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<%= gettext("Hi there! We just wanted to inform you that an administrator from <b>%{instance}</b> just manually confirmed your account.", %{instance: @instance_name}) |> raw %>
|
||||
<%= gettext(
|
||||
"Hi there! We just wanted to inform you that an administrator from <b>%{instance}</b> just manually confirmed your account.",
|
||||
%{instance: @instance_name}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<%= gettext("You may now login using your credentials on the service.") %>
|
||||
</p>
|
||||
@ -54,8 +71,12 @@
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="border-radius: 3px;" bgcolor="#3C376E">
|
||||
<a href={"#{ "#{Mobilizon.Web.Endpoint.url()}/login" }"} target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;">
|
||||
<%= gettext "Login on %{instance}", %{instance: @instance_name} %>
|
||||
<a
|
||||
href={"#{"#{Mobilizon.Web.Endpoint.url()}/login"}"}
|
||||
target="_blank"
|
||||
style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;"
|
||||
>
|
||||
<%= gettext("Login on %{instance}", %{instance: @instance_name}) %>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@ -66,9 +87,20 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;"
|
||||
>
|
||||
<p style="margin: 0">
|
||||
<%= 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: "<a href=\"#{Mobilizon.Web.Endpoint.url()}/about/instance\">", end_link: "</a>"}) |> 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: "<a href=\"#{Mobilizon.Web.Endpoint.url()}/about/instance\">",
|
||||
end_link: "</a>"
|
||||
}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -6,11 +6,16 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="center" valign="top" style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;">
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="center"
|
||||
valign="top"
|
||||
style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;"
|
||||
>
|
||||
<h1 style="font-size: 48px; font-weight: 400; margin: 0;">
|
||||
<%= gettext "An administrator manually changed the email attached to your account" %>
|
||||
<%= gettext("An administrator manually changed the email attached to your account") %>
|
||||
</h1>
|
||||
</td>
|
||||
</tr>
|
||||
@ -30,19 +35,38 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<!-- COPY -->
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<%= gettext("Hi there! We just wanted to inform you that an administrator from <b>%{instance}</b> just manually changed your account email from <b>%{old_email}</b> to <b>%{new_email}</b> (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 <b>%{instance}</b> just manually changed your account email from <b>%{old_email}</b> to <b>%{new_email}</b> (this one).",
|
||||
%{instance: @instance_name, old_email: @old_email, new_email: @new_email}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 40px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;"
|
||||
>
|
||||
<p style="margin: 0">
|
||||
<%= 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: "<a href=\"#{Mobilizon.Web.Endpoint.url()}/about/instance\">", end_link: "</a>"}) |> 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: "<a href=\"#{Mobilizon.Web.Endpoint.url()}/about/instance\">",
|
||||
end_link: "</a>"
|
||||
}
|
||||
)
|
||||
|> raw %>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -6,11 +6,16 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="center" valign="top" style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;">
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="center"
|
||||
valign="top"
|
||||
style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;"
|
||||
>
|
||||
<h1 style="font-size: 48px; font-weight: 400; margin: 0;">
|
||||
<%= gettext "An administrator manually changed the email attached to your account" %>
|
||||
<%= gettext("An administrator manually changed the email attached to your account") %>
|
||||
</h1>
|
||||
</td>
|
||||
</tr>
|
||||
@ -30,19 +35,38 @@
|
||||
<tr>
|
||||
<td align="center" valign="top" width="600">
|
||||
<![endif]-->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;">
|
||||
<!-- COPY -->
|
||||
<tr>
|
||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||
<td
|
||||
bgcolor="#ffffff"
|
||||
align="left"
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||