mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Add basic description of Discover Regen app
This commit is contained in:
@@ -1 +1,11 @@
|
||||
in progress
|
||||
%div
|
||||
.connected-app__head
|
||||
%div
|
||||
%h3= t ".title"
|
||||
%p= t ".tagline"
|
||||
%div
|
||||
%button
|
||||
= t ".action"
|
||||
%hr
|
||||
.connected-app__description
|
||||
= t ".description_html"
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
@import "alert";
|
||||
@import "animations";
|
||||
@import "change_type_form";
|
||||
@import "connected_apps";
|
||||
@import "customers";
|
||||
@import "dashboard_item";
|
||||
@import "dashboard-single-ent";
|
||||
|
||||
15
app/webpacker/css/admin/connected_apps.scss
Normal file
15
app/webpacker/css/admin/connected_apps.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.connected-app__head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1em;
|
||||
|
||||
h3 {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.connected-app__description {
|
||||
p {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
@@ -87,6 +87,7 @@
|
||||
@import "../admin/alert";
|
||||
@import "../admin/animations";
|
||||
@import "pages/change_type_form"; // admin_v3
|
||||
@import "../admin/connected_apps";
|
||||
@import "../admin/customers";
|
||||
@import "dashboard/dashboard_item"; // admin_v3
|
||||
@import "pages/dashboard-single-ent"; // admin_v3
|
||||
|
||||
@@ -1281,6 +1281,17 @@ en:
|
||||
custom_tab_content: "Content for custom tab"
|
||||
connected_apps:
|
||||
legend: "Connected apps"
|
||||
title: "Discover Regenerative"
|
||||
tagline: "Allow website to publish your enterprise information."
|
||||
action: "Share data"
|
||||
description_html: |
|
||||
<p>
|
||||
Discover Regenerative makes it easier for buyers to discover
|
||||
regenerative produce for their procurement, showcase producers that
|
||||
are using regenerative farming practices, support connection
|
||||
between buyers and producers within a trusted network.
|
||||
</p>
|
||||
<p><a href="" target="_blank"><b>Visit website</b> <i class="icon-external-link"></i></a></p>
|
||||
actions:
|
||||
edit_profile: Settings
|
||||
properties: Properties
|
||||
|
||||
@@ -30,10 +30,10 @@ describe "Connected Apps", feature: :connected_apps do
|
||||
|
||||
it "is visible" do
|
||||
visit edit_admin_enterprise_path(enterprise)
|
||||
expect(page).to have_content "CONNECTED APPS"
|
||||
|
||||
scroll_to :bottom
|
||||
click_link "Connected apps"
|
||||
expect(page).to have_content "in progress"
|
||||
expect(page).to have_content "Discover Regenerative"
|
||||
expect(page).to have_button "Share data"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user