From 5716bfd7548e386b12703e76cdf273bce839116c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 12 Mar 2021 18:44:41 +0300 Subject: Initial commit Essential functional website. --- templates/recipes.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 templates/recipes.html (limited to 'templates/recipes.html') diff --git a/templates/recipes.html b/templates/recipes.html new file mode 100644 index 0000000..a0149be --- /dev/null +++ b/templates/recipes.html @@ -0,0 +1,48 @@ +{% extends "base.html" %} +{% block title %}{{ section.title }} — {{ config.title }}{% endblock %} +{% block h1title %} +

{{ trans(key="recipes_title", lang=lang) }}

+{% endblock %} +{% block body %} +
+ {% for recipe in paginator.pages %} +
+

+ {{ recipe.title }} + {{ recipe.date | date }} +

+ {% if recipe.summary %} + {{ recipe.summary | safe }} + {% endif %} +
+ {% endfor %} +
+{% if paginator %} + {% if paginator.number_pagers > 1 %} +
+ {% if paginator.previous %} + + |← + {{ trans(key="first", lang=lang) }} + + + + {{ trans(key="page", lang=lang) }} + {{ paginator.current_index - 1 }} + + {% endif %} + {% if paginator.next %} + + {{ trans(key="page", lang=lang) }} + {{ paginator.current_index + 1 }} + + + + {{ trans(key="last", lang=lang) }} + →| + + {% endif %} +
+ {% endif %} +{% endif %} +{% endblock %} -- cgit v1.2.3