Rename 'published' to 'public' (for recipe)

This commit is contained in:
Greg Burri 2025-04-02 01:53:02 +02:00
parent eaef6dc77e
commit 4f739593b8
20 changed files with 92 additions and 91 deletions

View file

@ -15,25 +15,25 @@
{% endmacro %}
<div id="recipes-list">
{% if !recipes.unpublished.is_empty() %}
{{ context.tr.t(Sentence::UnpublishedRecipes) }}
{% if !recipes.private.is_empty() %}
{{ context.tr.t(Sentence::PrivateRecipes) }}
{% endif %}
<nav class="recipes-list-unpublished">
<nav class="recipes-list-private">
<ul>
{% for (id, title) in recipes.unpublished %}
{% for (id, title) in recipes.private %}
{% call recipe_item(id, title, recipes.is_current(id)) %}
{% endfor %}
</ul>
</nav>
{% if !recipes.unpublished.is_empty() %}
{% if !recipes.private.is_empty() %}
<hr>
{% endif %}
<nav class="recipes-list-published">
<nav class="recipes-list-public">
<ul>
{% for (id, title) in recipes.published %}
{% for (id, title) in recipes.public %}
{% call recipe_item(id, title, recipes.is_current(id)) %}
{% endfor %}
</ul>