59 lines
2.1 KiB
HTML
59 lines
2.1 KiB
HTML
{% load staticfiles %}
|
|
|
|
<html>
|
|
<head>
|
|
<title>BLOG</title>
|
|
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
|
|
<link rel="stylesheet" href="{% static 'css/new.css' %}">
|
|
<meta charset="utf-8"><meta name=viewport content="width=device-width, initial-scale=1">
|
|
<!--script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script-->
|
|
<!--Let browser know website is optimized for mobile--> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
</head>
|
|
<body>
|
|
<div id="header">
|
|
<a id="logo" href="/">Django Blog</a>
|
|
<div id="search">
|
|
<form id="search-form">
|
|
<input name="search" type="text"></input>
|
|
<input id="button-search" type="submit" value=""></input>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div id="content">
|
|
{% block content %}
|
|
{% endblock %}
|
|
<div class="sidemenu">
|
|
<h2>Меню</h2>
|
|
<ul>
|
|
<li><li><a href="{% url 'post_new' %}">new post</a></li>
|
|
<li><a href="/blog/1">all notes</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="sidemenu">
|
|
<h2>Последние</h2>
|
|
<ul>
|
|
<li><a href="/">ToDo List</a><div class="date">2017-11-04</div></li>
|
|
<li><a href="/">Йа сцылко</a><div class="date">2017-11-03</div></li>
|
|
<li><a href="/">Йа сцылко №2</a><div class="date">2017-11-03</div></li>
|
|
< /ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<ul class="menu_top paginator">
|
|
{% if posts.has_previous %}
|
|
<li> <a href="?page=1"><<</a> </li>
|
|
<li> <a href="?page={{ posts.previous_page_number }}">{{ posts.previous_page_number }}</a> </li>
|
|
{% endif %}
|
|
<li> <a style="color: #000000" href="">{{ posts.number }}<a></li>
|
|
{% if posts.has_next %}
|
|
<li> <a href="?page={{ posts.next_page_number }}"> {{ posts.next_page_number }}</a> </li>
|
|
<li> <a href="?page={{ posts.next_page_number|add:1 }}">{{ posts.next_page_number|add:1 }}</a></li>
|
|
<li><a href="?page={{ posts.paginator.num_pages }}"> >> </a></li> {% endif %}
|
|
</body>
|
|
{% comment %}
|
|
<!--li> {% for i in posts.paginator.page_range %} </li-->
|
|
{% endcomment %}
|
|
</ul>
|
|
</html>
|