супер попа (обновление)
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
<link href="/css/auth.css" rel="stylesheet">
|
||||
|
||||
{% if account is not empty %}
|
||||
<h3>Аккаунт</h3>
|
||||
<div>
|
||||
<p><b>Почта:</b> <span>{{ account.email }}</span></p>
|
||||
<a class="exit" type="button" href='/account/deauthentication'>Выход</a>
|
||||
<h3 class="unselectable">Аккаунт</h3>
|
||||
<div id="account">
|
||||
<p><b class="unselectable">Почта:</b><span title="{{ account.mail }}">{{ account.mail }}</span></p>
|
||||
<a class="exit unselectable" type="button" href='/account/deauthentication'>Выход</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<h3>Аутентификация</h3>
|
||||
<h3 class="unselectable">Аутентификация</h3>
|
||||
<form method="POST" accept-charset="UTF-8">
|
||||
<input type="text" name="email" placeholder="Почта">
|
||||
<input type="text" name="mail" placeholder="Почта">
|
||||
<input type="password" name="password" placeholder="Пароль">
|
||||
|
||||
<div class="submit">
|
||||
|
@@ -3,9 +3,16 @@
|
||||
{% block main %}
|
||||
<link href="/css/books.css" rel="stylesheet">
|
||||
|
||||
<article class="book">
|
||||
<img src="/books/{{ book.id|e }}/cover" alt='Обложка книги "{{ book.title|e }}"'>
|
||||
<h3><a href="/books/{{ book.id|e }}">{{ book.title|e }}</a></h3>
|
||||
<p>{{ book.description|e|length|trim(' ') > 80 ? book.description|e|slice(0, 80)|trim(' ') ~ '...' : book.description|e}}</p>
|
||||
</article>
|
||||
<section id="book">
|
||||
<h2>{{ book.title|e }}</h2>
|
||||
<img class="unselectable" src="/storage/books/{{ book.id|e }}/{{ page|e }}" alt='Страница отсутствует'>
|
||||
<nav>
|
||||
<ul>
|
||||
{% if page != 0 %}
|
||||
<li class="previous unselectable" type="button"><a href="/books/{{ book.id|e }}/{{ page|e - 1 }}" title="Страница №{{ page|e - 1 }}">Назад</a></li>
|
||||
{% endif %}
|
||||
<li class="next unselectable" type="button"><a href="/books/{{ book.id|e }}/{{ page|e + 1 }}" title="Страница №{{ page|e + 1 }}">Вперёд</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
@@ -5,13 +5,17 @@
|
||||
<link href="/css/upload.css" rel="stylesheet">
|
||||
|
||||
<section id="books">
|
||||
<form class="upload" action="/books/write" enctype="multipart/form-data" method="POST">
|
||||
{% if account is not empty %}
|
||||
{% if account.permissions.books is defined and account.permissions.books == 1 %}
|
||||
<form class="upload unselectable" action="/storage/books/write" enctype="multipart/form-data" method="POST">
|
||||
<input type="file" name="books[]" accept=".pdf" oninput="this.parentElement.submit();" multiple="true">
|
||||
<p>+</p>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for book in books %}
|
||||
<article class="book">
|
||||
<img src="/books/{{ book.id|e }}/cover" alt='Обложка книги "{{ book.title|e }}"'>
|
||||
<img src="/storage/books/{{ book.id|e }}/0" class="unselectable" alt='Обложка книги "{{ book.title|e }}"'>
|
||||
<h4><a href="/books/{{ book.id|e }}">{{ book.title|e }}</a></h3>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
<title>
|
||||
{% block title %}
|
||||
Библеотека Сурикова
|
||||
Библиотека Сурикова
|
||||
{% endblock %}
|
||||
</title>
|
||||
</head>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<header>
|
||||
<header class="unselectable">
|
||||
<section class="menu">
|
||||
<nav>
|
||||
<a class="link" href="/surikov" title="Архивный фонд">Кеменев</a>
|
||||
<a class="link" href="/surikov" title="Архивный фонд">Кеменов</a>
|
||||
<a class="link" href="/kemenev" title="Список книг">Суриков</a>
|
||||
<a id="logo" href="/" title="Главная страница">
|
||||
<img src="/img/surikovlib_logo_1_white.svg">
|
||||
|
@@ -1,8 +0,0 @@
|
||||
<script src="https://vk.com/js/api/openapi.js?169" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="https://vk.com/js/api/openapi.js?169"></script>
|
||||
|
||||
<div id="group"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
VK.Widgets.Group("group", { mode: 4, wide: 0, width: parseInt(getComputedStyle(document.getElementsByTagName('aside')[0]).getPropertyValue('width')), height: "600", color1: 'd9b5b5', color2: '000', color3: '86781C' }, 29605269);
|
||||
</script>
|
Reference in New Issue
Block a user