Skip to content

Commit

Permalink
Split description and link to VINE
Browse files Browse the repository at this point in the history
Description is now hidden when the enterprise is connected to VINE
  • Loading branch information
rioug committed Dec 3, 2024
1 parent 167a10b commit 125cd0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
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_html"
- 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
= t ".link_html"
5 changes: 1 addition & 4 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1470,10 +1470,7 @@ en:
<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>
link_html: <a href="https://vine.openfoodnetwork.org.au" target="_blank"><b>VINE</b><i class="icon-external-link"></i></a>
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

0 comments on commit 125cd0c

Please sign in to comment.