Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Connected Apps links available in Transifex #13011

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
%em= t(".need_to_be_manager") unless managed_by_user?(enterprise)
- else
= button_to t(".disable"), admin_enterprise_connected_app_path(connected_app.id, enterprise_id: enterprise.id), method: :delete

%hr
.connected-app__description
= t ".description_html"
%p= t ".description"
%b= link_to(t(".link_label_html"), t(".link_url"), target: "_blank")
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@

%hr
.connected-app__description
= t ".description_html"
%p= t ".description"
%b= link_to(t(".link_label_html"), t(".link_url"), target: "_blank")
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@

-# This is only seen by super-admins:
%em= t(".need_to_be_manager") unless managed_by_user?(enterprise)
%hr
.connected-app__description
= t ".description"
- else
.connected-app__vine-content
.vine-disable
= button_to t(".disable"), admin_enterprise_connected_app_path(connected_app.id, enterprise_id: enterprise.id), method: :delete
%hr
.connected-app__description
= t ".description_html"
.connected-app__vine-link
%b= link_to(t(".link_label_html"), t(".link_url"), target: "_blank")
40 changes: 10 additions & 30 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1414,20 +1414,14 @@ en:
legend: "Connected apps"
affiliate_sales_data:
title: "INRAE / UFC QUE CHOISIR Research"
tagline: "Allow this research project to access your orders data anonymously"
tagline: "Allow this research project to access your orders data anonymously."
enable: "Allow data sharing"
disable: "Stop sharing"
loading: "Loading"
need_to_be_manager: "Only managers can connect apps."
description_html: |
<p>
INRAE and UFC QUE CHOISIR are teaming up to study food prices in short food systems and compare them with prices in the supermarket, for a given set of products. The data that is used by INRAE is mixed with data coming from other short food chain platforms in France. No individual product prices will be publicly disclosed through this project.
</p>
<p>
<a href="https://apropos.coopcircuits.fr/"
target="_blank"><b>Learn more about this research project</b>
<i class="icon-external-link"></i></a>
</p>
description: "INRAE and UFC QUE CHOISIR are teaming up to study food prices in short food systems and compare them with prices in the supermarket, for a given set of products. The data that is used by INRAE is mixed with data coming from other short food chain platforms in France. No individual product prices will be publicly disclosed through this project."
link_label_html: "Learn more about this research project <i class=\"icon-external-link\"></i>"
mkllnk marked this conversation as resolved.
Show resolved Hide resolved
link_url: "https://apropos.coopcircuits.fr/"
discover_regen:
title: "Discover Regenerative"
tagline: "Allow Discover Regenerative to publish your enterprise information."
Expand All @@ -1439,18 +1433,9 @@ en:
Your Open Food Network account is connected to Discover Regenerative.
Add or update information on your Discover Regenerative listing here.
link_label: "Manage listing"
description_html: |
<p>
Eligible producers can showcase their regenerative credentials,
farming practices and more through a profile listing.
Simplifying how buyers can find regenerative produce and connect
with producers of interest.
</p>
<p>
<a href="https://about.openfoodnetwork.org.au/regen-produce-portal/"
target="_blank"><b>Learn more about Discover Regenerative</b>
<i class="icon-external-link"></i></a>
</p>
description: "Eligible producers can showcase their regenerative credentials, farming practices and more through a profile listing. Simplifying how buyers can find regenerative produce and connect with producers of interest."
link_label_html: "Learn more about Discover Regenerative <i class=\"icon-external-link\"></i>"
link_url: "https://about.openfoodnetwork.org.au/regen-produce-portal/"
vine:
title: "Voucher Integration Engine (VINE)"
tagline: "Allow redemption of VINE vouchers in your shopfront."
Expand All @@ -1459,14 +1444,9 @@ en:
need_to_be_manager: "Only managers can connect apps."
vine_api_key: "VINE API Key"
vine_secret: "VINE secret"
description_html: |
<p>
To enable VINE for your enterprise, enter your API key and secret.
</p>
<p>
<a href="#" target="_blank"><b>VINE</b>
<i class="icon-external-link"></i></a>
</p>
description: "To enable VINE for your enterprise, enter your API key and secret."
link_label_html: "VINE <i class=\"icon-external-link\"></i>"
link_url: "https://vine.openfoodnetwork.org.au"
api_parameters_empty: "Please enter an API key and a secret"
api_parameters_error: "Check you entered your API key and secret correctly, contact your instance manager if the error persists"
connection_error: "API connection error, please try again"
Expand Down
Loading