crunk
2 months ago
11 changed files with 180 additions and 192 deletions
@ -0,0 +1,29 @@ |
|||
{% block bookshelf %} |
|||
<div id="bookshelf"> |
|||
{% for id, pubinfo in publications.items() %} |
|||
<div id="{{ id }}" class='book filter {{ pubinfo["Type"] }} {{ pubinfo["Year"] }} {{ pubinfo["License"] }}'> |
|||
<table> |
|||
<tbody> |
|||
{%if pubinfo["Image"]%} |
|||
<tr> |
|||
<td colspan="2" class="tdimage"> |
|||
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(id))}}" alt=""> |
|||
</td> |
|||
</tr> |
|||
{% endif %} |
|||
<tr> |
|||
<td class="author">Author/Editor:</td> |
|||
<td>{{ pubinfo["Author"] }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td class="title">Title:</td> |
|||
<td><a href='{{ id }}'>{{ pubinfo["Title"] }}</a></td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
{% endfor%} |
|||
</div> |
|||
<script src="{{ url_for('static', filename='js/dropdown.js')}}"></script> |
|||
<script src="{{ url_for('static', filename='js/search.js')}}"></script> |
|||
{% endblock bookshelf %} |
@ -1,35 +1,7 @@ |
|||
|
|||
{% extends "base.html" %} |
|||
{% block main %} |
|||
<nav id="nav" class="container"> |
|||
{% include 'menu.html' %} |
|||
</nav> |
|||
<div id="bookshelf"> |
|||
{% for id, pubinfo in publications.items() %} |
|||
<div id="{{ id }}" class='book filter {{ pubinfo["Type"] }} {{ pubinfo["Year"] }} {{ pubinfo["License"] }}'> |
|||
<table> |
|||
<tbody> |
|||
{%if pubinfo["Image"]%} |
|||
<tr> |
|||
<td colspan="2" class="tdimage"> |
|||
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(id))}}" alt=""> |
|||
</td> |
|||
</tr> |
|||
{% endif %} |
|||
<tr> |
|||
<td class="author">Author/Editor:</td> |
|||
<td>{{ pubinfo["Author"] }}</td> |
|||
</tr> |
|||
<tr> |
|||
<td class="title">Title:</td> |
|||
<td><a href='{{ id }}'>{{ pubinfo["Title"] }}</a></td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
{% endfor%} |
|||
</div> |
|||
<script src="{{ url_for('static', filename='js/dropdown.js')}}"></script> |
|||
<script src="{{ url_for('static', filename='js/search.js')}}"></script> |
|||
|
|||
{% include 'user_authorization.html' %} |
|||
{% include 'bookshelf.html' %} |
|||
{% endblock %} |
|||
|
@ -0,0 +1,31 @@ |
|||
{% block auth %} |
|||
<div id="auth_buttons"> |
|||
{% if not current_user.is_authenticated %} |
|||
<div class="auth"> |
|||
<a href="/login"> |
|||
<svg class="feather"> |
|||
<use href="{{ url_for('static', filename='icons/users-feather-sprite.svg')+ '#log-in'}}" /> |
|||
</svg> |
|||
<span>Sign in</span> |
|||
</a> |
|||
</div> |
|||
<div class="auth"> |
|||
<a href="/register"> |
|||
<svg class="feather"> |
|||
<use href="{{ url_for('static', filename='icons/users-feather-sprite.svg') + '#user-plus'}}" /> |
|||
</svg> |
|||
<span>Register</span> |
|||
</a> |
|||
</div> |
|||
{% else %} |
|||
<div class="logout"> |
|||
<a href="/logout"> |
|||
<svg class="feather"> |
|||
<use href="{{ url_for('static', filename='icons/users-feather-sprite.svg') + '#log-out'}}" /> |
|||
</svg> |
|||
<span>Sign out</span> |
|||
</a> |
|||
</div> |
|||
{% endif %} |
|||
</div> |
|||
{% endblock auth %} |
Loading…
Reference in new issue