fix: Missing Template Error: Update ecoscore_details.tt.html to environmental_score_details.tt.html #11505
+0
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
This PR updates references to
ecoscore_details.tt.html
, which was renamed as part of an earlier commit (#11142
), to the new file nameenvironmental_score_details.tt.html
.Issue Fixed
The website was displaying an error on this page: https://world.openfoodfacts.org/cgi/product_image.pl?code=8033028910213&id=front_en
This happened because:
ecoscore_details.tt.html
template was renamed toenvironmental_score_details.tt.html
as part of the Eco-Score transition.** Changes Made**
ecoscore_details.tt.html
toenvironmental_score_details.tt.html
in:.tt.html
)ecoscore_details.tt.html
but there was no such thing present,..pm
).conf
,.json
,.yml
, etc.)[% INCLUDE ... %]
statements correctly reference the new template.Feature required changes
ecoscore_details.tt.html
, they may need updates as well.This should be good for submission! Let me know if you need refinements. 🚀
``
Screenshot
Original
Updated change
Related issue(s) and discussion
#11142: Rename Eco-Score fields to Environmental Score
I above issue there was about renaming of ecoscore to environmental_score by stephanegigandet but file names in templates was not made.
If there is an issue in my Pull request then I am open to make necessary changes to it.