From 65a06dff8ea5cd34f370866de3866ea0aeceaa21 Mon Sep 17 00:00:00 2001 From: SDE Date: Sun, 14 Jul 2024 14:48:22 +0300 Subject: [PATCH] 0.5.9 documentation prev and next article navigation --- templates/pages/p_documentation.html | 33 ++++++++++++++++------------ 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/templates/pages/p_documentation.html b/templates/pages/p_documentation.html index 51d03c7..53a0316 100644 --- a/templates/pages/p_documentation.html +++ b/templates/pages/p_documentation.html @@ -136,22 +136,27 @@ {{ cur_article.text|safe }}
- - - - -
- {% trans "Предыдущий" %} -
+ {% if prev_article %} + + + + + +
+ {% trans "Предыдущий" %} +
+ {% endif %}
-
- {% trans "Следующий" %} -
- - - - + {% if next_article %} +
+ {% trans "Следующий" %} +
+ + + + + {% endif %}