Compare commits
No commits in common. "ee7a0bfc32803ed3689d41e5d0abe713868c2970" and "76dd31c80c952ce316170fcd9e807026040213a4" have entirely different histories.
ee7a0bfc32
...
76dd31c80c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -15,7 +15,7 @@ import os
|
|||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
CALIBRE_DIR = os.path.abspath(
|
CALIBRE_DIR = os.path.abspath(
|
||||||
"C:\\Users\\stefa\\Downloads\\db")
|
"C:\\Users\\MassiveAtoms\\Documents\\Calibre Library")
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<div class="navbar-fixed">
|
<div class="navbar-fixed">
|
||||||
<nav>
|
<nav>
|
||||||
<div class="nav-wrapper row green darken-1">
|
<div class="nav-wrapper row green darken-4">
|
||||||
|
|
||||||
<ul class="right">
|
<ul class="right">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
@ -103,26 +103,11 @@
|
|||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
{% block content %} {% endblock %}
|
{% block content %} {% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="valign-wrapper" style="width:100%;height:100%;position: absolute;">
|
<h1>You don't have permission to view this.</h1> <!--Here, stefan -->
|
||||||
<div class="valign" style="width:100%;">
|
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col s12 m6 offset-m3">
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-content center">
|
|
||||||
<p>You don't have permission to view this.</p>
|
|
||||||
</div>
|
|
||||||
<div class="card-action center">
|
|
||||||
<a class="waves-effect waves-light btn-large green accent-4" href="{% url 'login'%}?next={{request.path}}">Login</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function sortTable(n) {
|
function sortTable(n) {
|
||||||
var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
|
var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
|
||||||
|
@ -1,22 +1,6 @@
|
|||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="valign-wrapper" style="width:100%;height:100%;position: absolute;">
|
<h1>You don't have permission to view this.</h1>
|
||||||
<div class="valign" style="width:100%;">
|
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col s12 m6 offset-m3">
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-content center">
|
|
||||||
<p>You don't have permission to view this.</p>
|
|
||||||
</div>
|
|
||||||
<div class="card-action center">
|
|
||||||
<a class="waves-effect waves-light btn-large green accent-4" href="{% url 'login'%}?next={{request.path}}">Login</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
@ -3,52 +3,46 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<div class="col s12 m7">
|
<div class="row">
|
||||||
<div class="card z-depth-0 horizontal">
|
<div class="col s4"><a href="{{download}}"><img src=" {% static "" %}{{imgpath}}" alt="download" srcset=""></a></div>
|
||||||
<div class="card-image">
|
<div class="col s8">
|
||||||
<a style="padding-top:15%" href="{{download}}"><img src=" {% static "" %}{{imgpath}}" alt="download" srcset=""></a>
|
<h1> {{book.title}}</h1>
|
||||||
</div>
|
<h4> by
|
||||||
<div class="card-stacked">
|
{% if book.authors %}
|
||||||
<div class="card-content">
|
{% for author in book.authors.all %}
|
||||||
<h1> {{book.title}}</h1>
|
<a href="{{author.get_absolute_url}}">{{author.name}}</a>
|
||||||
<h4> by
|
{%endfor%}
|
||||||
{% if book.authors %}
|
{% else %}
|
||||||
{% for author in book.authors.all %}
|
{{book.author_sort}}
|
||||||
<a href="{{author.get_absolute_url}}">{{author.name}}</a>
|
{%endif%}
|
||||||
{%endfor%}
|
<br>
|
||||||
{% else %}
|
Published by
|
||||||
{{book.author_sort}}
|
{% if book.publishers %}
|
||||||
{%endif%}
|
{% for pub in book.publishers.all %}
|
||||||
<br>
|
<a href="{{pub.get_absolute_url}}">{{pub.name}}</a>
|
||||||
Published by
|
{%endfor%}
|
||||||
{% if book.publishers %}
|
{% else %}
|
||||||
{% for pub in book.publishers.all %}
|
Unknown
|
||||||
<a href="{{pub.get_absolute_url}}">{{pub.name}}</a>
|
{%endif%}
|
||||||
{%endfor%}
|
<br>
|
||||||
{% else %}
|
Tags:
|
||||||
Unknown
|
{% if book.tags %}
|
||||||
{%endif%}
|
{% for tag in book.tags.all %}
|
||||||
<br>
|
<a href="{{tag.get_absolute_url}}">{{tag.name}}</a>,
|
||||||
Tags:
|
{%endfor%}
|
||||||
{% if book.tags %}
|
{% else %}
|
||||||
{% for tag in book.tags.all %}
|
{%endif%}
|
||||||
<a href="{{tag.get_absolute_url}}">{{tag.name}}</a>,
|
<br>
|
||||||
{%endfor%}
|
Rating:
|
||||||
{% else %}
|
{% if book.ratings %}
|
||||||
{%endif%}
|
{% for rating in book.ratings.all %}
|
||||||
<br>
|
<a href="{{rating.get_absolute_url}}">{{rating}}</a>
|
||||||
Rating:
|
{%endfor%}
|
||||||
{% if book.ratings %}
|
{% else %}
|
||||||
{% for rating in book.ratings.all %}
|
{%endif%}
|
||||||
<a href="{{rating.get_absolute_url}}">{{rating}}</a>
|
<br>
|
||||||
{%endfor%}
|
<a href="{{book.publisher.get_absolute_url}}">{{book.publisher}}</a>
|
||||||
{% else %}
|
</h4>
|
||||||
{%endif%}
|
|
||||||
<br>
|
|
||||||
<a href="{{book.publisher.get_absolute_url}}">{{book.publisher}}</a>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="waves-effect waves-light btn green accent-4" type="submit">login</button>
|
<input type="submit" value="login" />
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
<input type="hidden" name="next" value="{{ next }}" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %} {{form.as_p}} <button class="waves-effect waves-light btn green accent-4" type="submit">sign up</button></form>
|
{% csrf_token %} {{form.as_p}} <input type="submit" value="Sign up"></form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<input id="title" type="text" name="title" value="">
|
<input id="title" type="text" name="title" value="">
|
||||||
<label for="author">Author: </label>
|
<label for="author">Author: </label>
|
||||||
<input id="author" type="text" name="author" value="">
|
<input id="author" type="text" name="author" value="">
|
||||||
<button class="waves-effect waves-light btn green accent-4" type="submit">search</button>
|
<input type="submit" value="search">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<div class="navbar-fixed">
|
<div class="navbar-fixed">
|
||||||
<nav>
|
<nav>
|
||||||
<div class="nav-wrapper row green darken-1">
|
<div class="nav-wrapper row green darken-4">
|
||||||
|
|
||||||
<ul class="right">
|
<ul class="right">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
Loading…
Reference in New Issue
Block a user