diff options
author | Yaroslav de la Peña <contact@yaroslavps.com> | 2018-10-12 12:48:18 +0300 |
---|---|---|
committer | Yaroslav de la Peña <contact@yaroslavps.com> | 2018-10-12 12:48:18 +0300 |
commit | 1902be002029baf09a5d0e2b980f46a34510182c (patch) | |
tree | 426489c99e832fabc488c341cb65d41c4f3d6ada /weblog | |
parent | ab6959b4be01562492d3f3fbc60c82b0ffe600bf (diff) | |
download | w3blog-1902be002029baf09a5d0e2b980f46a34510182c.tar.gz w3blog-1902be002029baf09a5d0e2b980f46a34510182c.zip |
fix for dynamic load with no posts to show
Diffstat (limited to 'weblog')
-rwxr-xr-x | weblog/templates/weblog/index.html | 2 |
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 %}
|