-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: manufacturing place + origins of ingredients knowledge panels +…
… Normalize all panels (#6069) * Feat: manufacturing place + origins of ingredients knowledge panels * use dot-notation * normalize all panels * normalize all panels * add comment
- Loading branch information
1 parent
b3f8ac5
commit d37011a
Showing
21 changed files
with
315 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
templates/api/knowledge-panels/environment/ecoscore/agribalyse.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
templates/api/knowledge-panels/environment/ecoscore/ecoscore.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
templates/api/knowledge-panels/environment/ecoscore/ecoscore_unknown.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
templates/api/knowledge-panels/environment/ecoscore/production_system.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{ | ||
"parent_panel_id": "ecoscore", | ||
"type" : "score", | ||
"level" :"info", | ||
"topics": [ | ||
"environment" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
templates/api/knowledge-panels/environment/ecoscore/total.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"parent_panel_id": "ecoscore", | ||
"level" :"info", | ||
"topics": [ | ||
"environment" | ||
|
37 changes: 37 additions & 0 deletions
37
templates/api/knowledge-panels/environment/manufacturing_place.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"level" :"info", | ||
"topics": [ | ||
"environment" | ||
], | ||
"evaluation": "neutral", | ||
"expanded": true, | ||
"title_element": { | ||
"title": "[% lang('manufacturing_places_s') FILTER ucfirst %]", | ||
[% IF panel.packager_code_data.cc == 'fr' %] | ||
"subtitle": "[% panel.packager_code_data.commune %] - [% display_taxonomy_tag('countries', 'en:france') %]", | ||
[% ELSIF panel.packager_code_data.cc == 'ch' %] | ||
"subtitle": "[% panel.packager_code_data.full_address %]", | ||
[% ELSIF panel.packager_code_data.cc == 'es' %] | ||
"subtitle": "[% panel.packager_code_data.provincia_localidad %]", | ||
[% ELSIF panel.packager_code_data.cc == 'uk' %] | ||
"subtitle": "[% panel.packager_code_data.district %]", | ||
[% END %] | ||
"icon_url": "[% static_subdomain %]/images/icons/dist/transportation.svg", | ||
"icon_color_from_evaluation": true, | ||
}, | ||
"elements": [ | ||
{ | ||
"element_type": "map", | ||
"map_element": { | ||
"pointers": [ | ||
{ | ||
"geo": { | ||
"lat": [% panel.lat %], | ||
"lng": [% panel.lng %], | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
] | ||
} |
Oops, something went wrong.