Skip to content

Commit

Permalink
feat: Open folksonomies for all connected users (#10771)
Browse files Browse the repository at this point in the history
Fix #10360

Will make some issues more annoying:
* openfoodfacts/folksonomy_api#128
* #6169

---------

Co-authored-by: Open Food Facts Bot <[email protected]>
  • Loading branch information
CharlesNepote and Open Food Facts Bot committed Sep 9, 2024
1 parent f3c84de commit 160b792
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion html/js/folksonomy.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ function displayFolksonomyPropertyValues() {
'<h2>Personalized properties (<span data-tooltip aria-haspopup="true" class="has-tip" data-position="top" data-alignment="left" title="Be aware the data model might be modified. Use at your own risk.">beta</span>)</h2>' +
'<p id="fe_login_info"></p>' +
"<p>These properties are created and filed by users for any kind of usages. Feel free to add your own. " +
"The properties and values you create <strong>must be factual</strong>. " +
"You can dive into <a href='/properties'>the list of properties already used by the community</a> " +
"or explore the <a href='https://wiki.openfoodfacts.org/Folksonomy/Property'>properties' documentation and its search engine</a>.</p>" +
"or explore the <a href='https://wiki.openfoodfacts.org/Folksonomy/Property'>properties' documentation and its search engine</a>. " +
"</p>" +
"<p>Be aware the data model might be modified. Use at your own risk.</p>" +
"<p>This is brought by the <a href='https://wiki.openfoodfacts.org/Folksonomy_Engine'>folksonomy engine project</a>. Don't hesitate to participate or give feedback.</p>" +
'<form id="free_properties_form">' +
Expand Down
4 changes: 2 additions & 2 deletions templates/web/common/includes/folksonomy_script.tt.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- start templates/[% component.name %] -->
[% IF moderator %]
[% IF user_id.defined %]
<!-- Folksonomy Engine script -->
<scripts>
<script src="[% static_subdomain %]/js/folksonomy.js"></script>
Expand All @@ -8,4 +8,4 @@
folskonomy_engine_init();
</initjs>
[% END %]
<!-- end templates/[% component.name %] -->
<!-- end templates/[% component.name %] -->
Original file line number Diff line number Diff line change
Expand Up @@ -3569,6 +3569,7 @@ <h2 id="data_sources" class="text-medium">Data sources</h2>

<!-- end templates/web/common/includes/folksonomy_script.tt.html -->


<!-- end templates/web/pages/product/product_page.tt.html -->

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3569,6 +3569,7 @@ <h2 id="data_sources" class="text-medium">Data sources</h2>

<!-- end templates/web/common/includes/folksonomy_script.tt.html -->


<!-- end templates/web/pages/product/product_page.tt.html -->

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4730,6 +4730,7 @@ <h2 id="data_sources" class="text-medium">Data sources</h2>

<!-- end templates/web/common/includes/folksonomy_script.tt.html -->


<!-- end templates/web/pages/product/product_page.tt.html -->

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3789,6 +3789,7 @@ <h2 id="data_sources" class="text-medium">Sources de données</h2>

<!-- end templates/web/common/includes/folksonomy_script.tt.html -->


<!-- end templates/web/pages/product/product_page.tt.html -->

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3803,6 +3803,7 @@ <h2 id="data_sources" class="text-medium">Sources de données</h2>

<!-- end templates/web/common/includes/folksonomy_script.tt.html -->


<!-- end templates/web/pages/product/product_page.tt.html -->

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4300,6 +4300,7 @@ <h2 id="data_sources" class="text-medium">Data sources</h2>

<!-- end templates/web/common/includes/folksonomy_script.tt.html -->


<!-- end templates/web/pages/product/product_page.tt.html -->

</div>
Expand Down

0 comments on commit 160b792

Please sign in to comment.