diff --git a/cookbook/tables.py b/cookbook/tables.py index 57ffa94f..a23d3be2 100644 --- a/cookbook/tables.py +++ b/cookbook/tables.py @@ -23,7 +23,7 @@ class RecipeTable(tables.Table): class Meta: model = Recipe template_name = 'recipes_table.html' - fields = ('id', 'name', 'all_tags', 'image', 'instructions', 'working_time', 'waiting_time') + fields = ('id', 'name', 'all_tags', 'image', 'instructions', 'working_time', 'waiting_time', 'internal') class KeywordTable(tables.Table): diff --git a/cookbook/templates/recipes_table.html b/cookbook/templates/recipes_table.html index 9f7f3535..61838540 100644 --- a/cookbook/templates/recipes_table.html +++ b/cookbook/templates/recipes_table.html @@ -14,19 +14,24 @@
{{ row.cells.all_tags }} +
{% if row.cells.working_time != 0 %} @@ -38,7 +43,11 @@ {% trans 'Waiting time ca.' %} {{ row.cells.waiting_time }} min - {% endif %} {{ row.cells.edit }}
+ {% endif %}{% if not row.record.internal %} + {% trans 'External' %} + {% endif %} + {{ row.cells.edit }} +