aboutsummaryrefslogtreecommitdiff
path: root/weblog/templates
diff options
context:
space:
mode:
authorYaroslav de la Peña <contact@yaroslavps.com>2018-10-12 12:48:18 +0300
committerYaroslav de la Peña <contact@yaroslavps.com>2018-10-12 12:48:18 +0300
commit1902be002029baf09a5d0e2b980f46a34510182c (patch)
tree426489c99e832fabc488c341cb65d41c4f3d6ada /weblog/templates
parentab6959b4be01562492d3f3fbc60c82b0ffe600bf (diff)
downloadw3blog-1902be002029baf09a5d0e2b980f46a34510182c.tar.gz
w3blog-1902be002029baf09a5d0e2b980f46a34510182c.zip
fix for dynamic load with no posts to show
Diffstat (limited to 'weblog/templates')
-rwxr-xr-xweblog/templates/weblog/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html
index 9568e9d..0f8d79a 100755
--- a/weblog/templates/weblog/index.html
+++ b/weblog/templates/weblog/index.html
@@ -116,6 +116,7 @@
{% else %}
<div class="text-center"><h3>{% trans 'Nothing has been posted yet.' %}</h3></div>
{% endif %}
+ {% if last_page > 1 %}
{% if dynamic_load %}
<script>
var current_page = {{ current_page }};
@@ -172,4 +173,5 @@
{% endif %}
</script>
{% endif %}
+ {% endif %}
{% endblock %}