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 | |
parent | ab6959b4be01562492d3f3fbc60c82b0ffe600bf (diff) | |
download | w3blog-1902be002029baf09a5d0e2b980f46a34510182c.tar.gz w3blog-1902be002029baf09a5d0e2b980f46a34510182c.zip |
fix for dynamic load with no posts to show
-rwxr-xr-x | setup.py | 2 | ||||
-rwxr-xr-x | weblog/templates/weblog/index.html | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -10,7 +10,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='w3blog', - version='0.5.0', + version='0.5-testing.4', packages=find_packages(), include_package_data=True, license='BSD License', 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 %}
|