From bb97581d650e2d994e7b2e63297dbb2d8784f5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 7 Oct 2018 23:20:39 +0300 Subject: urls for ajax next page loading --- weblog/templates/weblog/index.html | 9 +++++++++ weblog/templates/weblog/nxtpage.html | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 weblog/templates/weblog/nxtpage.html (limited to 'weblog/templates') diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html index 8dc1d93..b30c0ff 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -103,4 +103,13 @@ {% else %}

{% trans 'Nothing has been posted yet.' %}

{% endif %} + {% if dynamic_load %} + + {% endif %} {% endblock %} diff --git a/weblog/templates/weblog/nxtpage.html b/weblog/templates/weblog/nxtpage.html new file mode 100644 index 0000000..67d244a --- /dev/null +++ b/weblog/templates/weblog/nxtpage.html @@ -0,0 +1,15 @@ +{% load i18n %} +{% for post in posts %} +
+

{{ post.title }}

+

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}

+
+ {% if post.preview_image %}{% endif %} + {{ post.preview_text|safe }} +
+ +
+{% endfor %} + -- cgit v1.2.3