diff options
author | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-05-31 15:08:24 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-05-31 15:08:24 +0300 |
commit | dfeb4deaa712a726a46489a2d1d04eb5257aa86c (patch) | |
tree | 0e6a8d65961a642263536ead8e70bf1516f2eb05 /weblog/templates | |
parent | 5a7466204b4030873405b1a0fcb8b208762453ee (diff) | |
parent | d6c508bb46d660947718083e3fa214049253c42b (diff) | |
download | w3blog-dfeb4deaa712a726a46489a2d1d04eb5257aa86c.tar.gz w3blog-dfeb4deaa712a726a46489a2d1d04eb5257aa86c.zip |
fixed bugs, etc.
Diffstat (limited to 'weblog/templates')
-rwxr-xr-x | weblog/templates/weblog/sidebar_archive.html | 8 | ||||
-rwxr-xr-x | weblog/templates/weblog_base.html | 1 | ||||
-rwxr-xr-x | weblog/templates/weblog_base_old.html | 35 |
3 files changed, 8 insertions, 36 deletions
diff --git a/weblog/templates/weblog/sidebar_archive.html b/weblog/templates/weblog/sidebar_archive.html index 5953bfe..ca74018 100755 --- a/weblog/templates/weblog/sidebar_archive.html +++ b/weblog/templates/weblog/sidebar_archive.html @@ -1,5 +1,6 @@ {% load i18n %} <h3>{% trans 'Archive' context 'Blog archive' %}</h3> +{% if archive %} <ul class='archive-list'> {% for a_year in archive %} <li><a class="node-toggle" node-target="{{ a_year.0 }}-list" node-state="closed" href="javascript:void(0)" onclick="toggleNode(this);">+</a> <a href="{% url 'weblog:ArchiveIndex' year=a_year.0 %}">{{ a_year.0 }}</a> @@ -10,4 +11,9 @@ </ul> </li> {% endfor %} -</ul>
\ No newline at end of file +{% else %} +<div class="text-center"> + <p>{% trans 'Nothing has been posted yet.' %}</p> +</div> +{% endif %} +</ul> diff --git a/weblog/templates/weblog_base.html b/weblog/templates/weblog_base.html index 9a739cb..ce941e5 100755 --- a/weblog/templates/weblog_base.html +++ b/weblog/templates/weblog_base.html @@ -12,6 +12,7 @@ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="{% static '/weblog/js/weblog.js' %}" defer></script>
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script>
</head>
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
diff --git a/weblog/templates/weblog_base_old.html b/weblog/templates/weblog_base_old.html deleted file mode 100755 index a4dbd30..0000000 --- a/weblog/templates/weblog_base_old.html +++ /dev/null @@ -1,35 +0,0 @@ -<!DOCTYPE html>
-{% load static %}
-<html>
- <head>
- <meta charset="utf-8">
- <title>Simple blog - {% block title_block %} Home {% endblock %}</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <link rel="stylesheet" href="{% static '/weblog/css/weblog.css' %}">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" defer></script>
- <script src="{% static '/weblog/js/weblog.js' %}" defer></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script>
- </head>
- <body>
- <nav class="navbar navbar-inverse">
- <div class="container nav-container">
- <div class="navbar-header">
- <a class="navbar-brand" href="{% url 'weblog:Index' %}">{{ blog_title }}</a>
- </div>
- <div class="collapse navbar-collapse">
- <ul class="nav navbar-nav navbar-right">
- <li><a href="{% url 'weblog:ChangeLanguage' language='en' %}?next={{ request.path }}">EN</a></li>
- <li><a href="{% url 'weblog:ChangeLanguage' language='es' %}?next={{ request.path }}">ES</a></li>
- <li><a href="{% url 'weblog:ChangeLanguage' language='ru' %}?next={{ request.path }}">RU</a></li>
- </ul>
- </div>
- </div>
- </nav>
- <div class="container">
- {% block content_block %}
- {% block blog_block %}
- {% endblock %}
- {% endblock %}
- </div>
- </body>
-</html>
\ No newline at end of file |