mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Added new cookies policy page and added a link to it in the footer (cookies policy link)
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
%h2
|
||||
{{ 'legal.cookies_policy.header' | t}}
|
||||
%p
|
||||
{{ 'legal.cookies_policy.desc_part_1' | t}}
|
||||
%p
|
||||
{{ 'legal.cookies_policy.desc_part_2' | t}}
|
||||
%p
|
||||
{{ 'legal.cookies_policy.desc_part_3' | t}}
|
||||
|
||||
%h2
|
||||
{{ 'legal.cookies_policy.essential_cookies' | t}}
|
||||
%p
|
||||
{{ 'legal.cookies_policy.essential_cookies_desc' | t}}
|
||||
|
||||
%table{ng: { controller:"CookiesPolicyModalCtrl"}}
|
||||
%tr
|
||||
%th
|
||||
{{ 'legal.cookies_policy.cookie_name' | t}}
|
||||
%th
|
||||
{{ 'legal.cookies_policy.cookie_domain' | t}}
|
||||
%th
|
||||
{{ 'legal.cookies_policy.cookie_desc' | t}}
|
||||
%tr
|
||||
%td
|
||||
_session_id
|
||||
%td
|
||||
{{ instance_hostname }}
|
||||
%td
|
||||
{{ 'legal.cookies_policy.cookie_session_desc' | t}}
|
||||
%tr
|
||||
%td
|
||||
remember_spree_user_token
|
||||
%td
|
||||
{{ instance_hostname }}
|
||||
%td
|
||||
{{ 'legal.cookies_policy.cookie_remember_me_desc' | t}}
|
||||
%tr
|
||||
%td
|
||||
qos_token
|
||||
%td
|
||||
openstreetmap.org
|
||||
%td
|
||||
{{ 'legal.cookies_policy.cookie_openstreemap_desc' | t}}
|
||||
%tr
|
||||
%td
|
||||
m
|
||||
%td
|
||||
m.stripe.com
|
||||
%td{rowspan:"4"}
|
||||
{{ 'legal.cookies_policy.cookie_stripe_desc' | t}}
|
||||
%tr
|
||||
%td
|
||||
nsr
|
||||
%td
|
||||
m.stripe.network
|
||||
%tr
|
||||
%td
|
||||
__stripe_sid
|
||||
%td
|
||||
{{ instance_hostname }}
|
||||
%tr
|
||||
%td
|
||||
__stripe_mid
|
||||
%td
|
||||
{{ instance_hostname }}
|
||||
%p
|
||||
{{ 'legal.cookies_policy.essential_cookies_note' | t}}
|
||||
%h2
|
||||
{{ 'legal.cookies_policy.disabling_cookies_header' | t}}
|
||||
%p
|
||||
{{ 'legal.cookies_policy.disabling_cookies_desc' | t}}
|
||||
%ul
|
||||
%li
|
||||
%a{ href: "{{'legal.cookies_policy.disabling_cookies_firefox_link' | t}}", target: "_blank" }
|
||||
Firefox
|
||||
%li
|
||||
%a{ href: "{{ 'legal.cookies_policy.disabling_cookies_chrome_link' | t}}", target: "_blank" }
|
||||
Chrome
|
||||
%li
|
||||
%a{ href: "{{ 'legal.cookies_policy.disabling_cookies_ie_link' | t}}", target: "_blank" }
|
||||
Internet Explorer
|
||||
%li
|
||||
%a{ href: "{{ 'legal.cookies_policy.disabling_cookies_safari_link' | t}}", target: "_blank" }
|
||||
Safari
|
||||
%p
|
||||
{{ 'legal.cookies_policy.disabling_cookies_note' | t}}
|
||||
|
||||
%a.close-reveal-modal{"ng-click" => "$close()"}
|
||||
%i.ofn-i_009-close
|
||||
@@ -0,0 +1,3 @@
|
||||
Darkswarm.controller "CookiesPolicyModalCtrl", ($scope, $window)->
|
||||
|
||||
$scope.instance_hostname = $window.location.hostname
|
||||
@@ -0,0 +1,5 @@
|
||||
Darkswarm.directive 'cookiesPolicyModal', (CookiesPolicyModalService) ->
|
||||
restrict: 'A'
|
||||
link: (scope, elem, attrs) ->
|
||||
elem.bind "click", ->
|
||||
CookiesPolicyModalService.open ''
|
||||
@@ -0,0 +1,16 @@
|
||||
Darkswarm.factory "CookiesPolicyModalService", (Navigation, $modal, $location)->
|
||||
|
||||
new class CookiesPolicyModalService
|
||||
defaultPath: "/policies/cookies"
|
||||
modalMessage: null
|
||||
|
||||
constructor: ->
|
||||
if $location.path() is @defaultPath || location.pathname is @defaultPath
|
||||
@open ''
|
||||
|
||||
open: (path = false, template = 'darkswarm/cookies_policy/cookies_policy.html') =>
|
||||
@modalInstance = $modal.open
|
||||
templateUrl: template
|
||||
windowClass: "cookies-policy-modal medium"
|
||||
selectedPath = path || @defaultPath
|
||||
Navigation.navigate selectedPath
|
||||
@@ -0,0 +1,15 @@
|
||||
.cookies-policy-modal {
|
||||
background: #efefef;
|
||||
border-bottom-color: #efefef;
|
||||
}
|
||||
|
||||
.cookies-policy-modal table {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.cookies-policy-modal.fade {
|
||||
-webkit-transform: translate(0, 0) !important;
|
||||
-ms-transform: translate(0, 0) !important;
|
||||
transform: translate(0, 0) !important;
|
||||
}
|
||||
@@ -139,6 +139,12 @@
|
||||
%a{href:"https://github.com/openfoodfoundation/openfoodnetwork", target: "_blank"} GitHub
|
||||
%p.text-small
|
||||
= t :footer_legal_text_html, {content_license: link_to('CC BY-SA 3.0', 'https://creativecommons.org/licenses/by-sa/3.0/'), code_license: link_to('AGPL 3', 'https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)')}
|
||||
%p.text-small
|
||||
%div
|
||||
= t :footer_legal_data_text
|
||||
= t :footer_legal_data_call
|
||||
%a{'cookies-policy-modal'=> true}
|
||||
= t :footer_legal_data_cookies_policy
|
||||
|
||||
.medium-2.columns.text-center
|
||||
/ Placeholder
|
||||
|
||||
@@ -1264,8 +1264,33 @@ en:
|
||||
footer_legal_tos: "Terms and conditions"
|
||||
footer_legal_visit: "Find us on"
|
||||
footer_legal_text_html: "Open Food Network is a free and open source software platform. Our content is licensed with %{content_license} and our code with %{code_license}."
|
||||
|
||||
footer_legal_data_text: "We take good care of your data."
|
||||
footer_legal_data_call: "See our"
|
||||
footer_legal_data_cookies_policy: "cookies policy"
|
||||
footer_skylight_dashboard_html: Performance data is available on %{dashboard}.
|
||||
legal:
|
||||
cookies_policy:
|
||||
header: "How We Use Cookies"
|
||||
desc_part_1: "Cookies are very small text files that are stored on your computer when you visit some websites."
|
||||
desc_part_2: "In OFN we are fully respectful of your privacy. We use only the cookies that are necessary for delivering you the service of selling/buying food online. We don’t sell any of your data. We might in the future propose you to share some of your data to build new commons services that could be useful for the ecosystem (like logistics services for short food systems) but we are not yet there, and we won’t do it without your authorization :-)"
|
||||
desc_part_3: "We use cookies mainly to remember who you are if you 'log in' to the service, or to be able to remember the items you put in your cart even if you are not logged in. If you keep navigating on the website without clicking on “Accept cookies”, we assume you are giving us consent to store the cookies that are essential for the functioning of the website. Here is the list of cookies we use!"
|
||||
essential_cookies: "Essential Cookies"
|
||||
essential_cookies_desc: "The following cookies are strictly necessary for the operation of our website."
|
||||
essential_cookies_note: "Most cookies only contain a unique identifier, but no other data, so your email address and password for instance are never contained in them and never exposed."
|
||||
cookie_name: "Cookie Name"
|
||||
cookie_domain: "Set By"
|
||||
cookie_desc: "Description"
|
||||
cookie_session_desc: "Used to allow the website to remember users between page visits, for example, remember items in your cart."
|
||||
cookie_remember_me_desc: "Used if the user has requested the website to remember him. This cookie is automatically deleted after 12 days. If as a user you want that cookie to be deleted, you only need to logout. If you don’t want that cookie to be installed on your computer you shouldn’t check the “remember me” checkbox when logging in."
|
||||
cookie_openstreemap_desc: "Used by our friendly open source mapping provider (OpenStreetMap) to ensure that it does not receive too many requests during a given time period, to prevent abuse of their services."
|
||||
cookie_stripe_desc: "Data collected by our payment processor Stripe for fraud detection https://stripe.com/cookies-policy/legal. Not all shops use Stripe as a payment method but it is a good practice to prevent fraud to apply it to all pages. Stripe probably build a picture of which of our pages usually interact with their API and then flag anything unusual. So setting the Stripe cookie has a broader function than simply the provision of a payment method to a user. Removing it could affect the security of the service itself. You can learn more about Stripe and read its privacy policy at https://stripe.com/privacy."
|
||||
disabling_cookies_header: "Warning on disabling cookies"
|
||||
disabling_cookies_desc: "As a user you can always allow, block or delete Open Food Network’s or any other website cookies whenever you want to through your browser’s setting control. Each browser has a different operative. Here are the links:"
|
||||
disabling_cookies_firefox_link: "https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences"
|
||||
disabling_cookies_chrome_link: "https://support.google.com/chrome/answer/95647"
|
||||
disabling_cookies_ie_link: "https://support.microsoft.com/en-us/help/17442/windows-internet-explorer-delete-manage-cookies"
|
||||
disabling_cookies_safari_link: "https://www.apple.com/legal/privacy/en-ww/cookies/"
|
||||
disabling_cookies_note: "But be aware that if you delete or modify the essential cookies used by Open Food Network, the website won’t work, you will not be able to add anything to your cart neither to checkout for instance."
|
||||
|
||||
home_shop: Shop Now
|
||||
|
||||
|
||||
Reference in New Issue
Block a user