aboutsummaryrefslogtreecommitdiff
path: root/weblog/templates
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <contact@yaroslavps.com>2018-06-19 04:22:23 +0300
committerYaroslav de la Peña Smirnov <contact@yaroslavps.com>2018-06-19 04:23:25 +0300
commit2f255efc8f662fa29e8112e6eb9642f33af25ad9 (patch)
tree4501efac9961a1a54d9a5039c13ce8078859ef38 /weblog/templates
parent70a234bfafecf2dca8b7c1d0929ae38c76bb2f57 (diff)
downloadw3blog-2f255efc8f662fa29e8112e6eb9642f33af25ad9.tar.gz
w3blog-2f255efc8f662fa29e8112e6eb9642f33af25ad9.zip
Added on_delete for every foreign key
Diffstat (limited to 'weblog/templates')
-rwxr-xr-xweblog/templates/weblog/sidebar_archive.html8
-rwxr-xr-xweblog/templates/weblog_base.html1
-rwxr-xr-xweblog/templates/weblog_base_old.html35
3 files changed, 36 insertions, 8 deletions
diff --git a/weblog/templates/weblog/sidebar_archive.html b/weblog/templates/weblog/sidebar_archive.html
index ca74018..5953bfe 100755
--- a/weblog/templates/weblog/sidebar_archive.html
+++ b/weblog/templates/weblog/sidebar_archive.html
@@ -1,6 +1,5 @@
{% 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>
@@ -11,9 +10,4 @@
</ul>
</li>
{% endfor %}
-{% else %}
-<div class="text-center">
- <p>{% trans 'Nothing has been posted yet.' %}</p>
-</div>
-{% endif %}
-</ul>
+</ul> \ No newline at end of file
diff --git a/weblog/templates/weblog_base.html b/weblog/templates/weblog_base.html
index ce941e5..9a739cb 100755
--- a/weblog/templates/weblog_base.html
+++ b/weblog/templates/weblog_base.html
@@ -12,7 +12,6 @@
<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
new file mode 100755
index 0000000..a4dbd30
--- /dev/null
+++ b/weblog/templates/weblog_base_old.html
@@ -0,0 +1,35 @@
+<!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