Rename 'published' to 'public' (for recipe)
This commit is contained in:
parent
eaef6dc77e
commit
4f739593b8
20 changed files with 92 additions and 91 deletions
|
|
@ -69,13 +69,13 @@
|
|||
</select>
|
||||
|
||||
<input
|
||||
id="input-is-published"
|
||||
id="input-is-public"
|
||||
type="checkbox"
|
||||
{%~ if recipe.is_published %}
|
||||
{%~ if recipe.is_public %}
|
||||
checked
|
||||
{% endif %}
|
||||
>
|
||||
<label for="input-is-published">{{ context.tr.t(Sentence::RecipeIsPublished) }}</label>
|
||||
<label for="input-is-public">{{ context.tr.t(Sentence::RecipeIsPublic) }}</label>
|
||||
|
||||
<input id="input-delete" type="button" value="{{ context.tr.t(Sentence::RecipeDelete) }}">
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue