From d6c508bb46d660947718083e3fa214049253c42b Mon Sep 17 00:00:00 2001 From: Yaroslsav-95 Date: Thu, 29 Mar 2018 16:45:02 +0300 Subject: Fixed bugs, and compatibility issues with Django 2.0 --- weblog/templates/weblog/sidebar_archive.html | 8 ++++++- weblog/templates/weblog_base.html | 4 ++-- weblog/templates/weblog_base_old.html | 35 ---------------------------- 3 files changed, 9 insertions(+), 38 deletions(-) delete mode 100644 weblog/templates/weblog_base_old.html (limited to 'weblog/templates') diff --git a/weblog/templates/weblog/sidebar_archive.html b/weblog/templates/weblog/sidebar_archive.html index 5953bfe..ca74018 100644 --- a/weblog/templates/weblog/sidebar_archive.html +++ b/weblog/templates/weblog/sidebar_archive.html @@ -1,5 +1,6 @@ {% load i18n %}

{% trans 'Archive' context 'Blog archive' %}

+{% if archive %} {% endfor %} - \ No newline at end of file +{% else %} +
+

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

+
+{% endif %} + diff --git a/weblog/templates/weblog_base.html b/weblog/templates/weblog_base.html index 536e736..6a551ff 100644 --- a/weblog/templates/weblog_base.html +++ b/weblog/templates/weblog_base.html @@ -3,7 +3,7 @@ - Simple blog - {% block title_block %} Home {% endblock %} + {% block title_block %} Home {% endblock %} @@ -25,4 +25,4 @@ {% endblock %} - \ No newline at end of file + diff --git a/weblog/templates/weblog_base_old.html b/weblog/templates/weblog_base_old.html deleted file mode 100644 index a4dbd30..0000000 --- a/weblog/templates/weblog_base_old.html +++ /dev/null @@ -1,35 +0,0 @@ - -{% load static %} - - - - Simple blog - {% block title_block %} Home {% endblock %} - - - - - - - - -
- {% block content_block %} - {% block blog_block %} - {% endblock %} - {% endblock %} -
- - \ No newline at end of file -- cgit v1.2.3