Compare commits
2 Commits
76dd31c80c
...
ee7a0bfc32
Author | SHA1 | Date | |
---|---|---|---|
ee7a0bfc32 | |||
17be21ec00 |
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\\MassiveAtoms\\Documents\\Calibre Library")
|
"C:\\Users\\stefa\\Downloads\\db")
|
||||||
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.
BIN
CalibreWebCompanion/library/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
CalibreWebCompanion/library/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
BIN
CalibreWebCompanion/library/__pycache__/admin.cpython-38.pyc
Normal file
BIN
CalibreWebCompanion/library/__pycache__/admin.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
CalibreWebCompanion/library/__pycache__/forms.cpython-38.pyc
Normal file
BIN
CalibreWebCompanion/library/__pycache__/forms.cpython-38.pyc
Normal file
Binary file not shown.
BIN
CalibreWebCompanion/library/__pycache__/models.cpython-38.pyc
Normal file
BIN
CalibreWebCompanion/library/__pycache__/models.cpython-38.pyc
Normal file
Binary file not shown.
BIN
CalibreWebCompanion/library/__pycache__/urls.cpython-38.pyc
Normal file
BIN
CalibreWebCompanion/library/__pycache__/urls.cpython-38.pyc
Normal file
Binary file not shown.
BIN
CalibreWebCompanion/library/__pycache__/views.cpython-38.pyc
Normal file
BIN
CalibreWebCompanion/library/__pycache__/views.cpython-38.pyc
Normal file
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-4">
|
<div class="nav-wrapper row green darken-1">
|
||||||
|
|
||||||
<ul class="right">
|
<ul class="right">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
@ -103,11 +103,26 @@
|
|||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
{% block content %} {% endblock %}
|
{% block content %} {% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>You don't have permission to view this.</h1> <!--Here, stefan -->
|
<div class="valign-wrapper" style="width:100%;height:100%;position: absolute;">
|
||||||
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
<div class="valign" style="width:100%;">
|
||||||
|
<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,6 +1,22 @@
|
|||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>You don't have permission to view this.</h1>
|
<div class="valign-wrapper" style="width:100%;height:100%;position: absolute;">
|
||||||
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
<div class="valign" style="width:100%;">
|
||||||
|
<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,9 +3,13 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<div class="row">
|
<div class="col s12 m7">
|
||||||
<div class="col s4"><a href="{{download}}"><img src=" {% static "" %}{{imgpath}}" alt="download" srcset=""></a></div>
|
<div class="card z-depth-0 horizontal">
|
||||||
<div class="col s8">
|
<div class="card-image">
|
||||||
|
<a style="padding-top:15%" href="{{download}}"><img src=" {% static "" %}{{imgpath}}" alt="download" srcset=""></a>
|
||||||
|
</div>
|
||||||
|
<div class="card-stacked">
|
||||||
|
<div class="card-content">
|
||||||
<h1> {{book.title}}</h1>
|
<h1> {{book.title}}</h1>
|
||||||
<h4> by
|
<h4> by
|
||||||
{% if book.authors %}
|
{% if book.authors %}
|
||||||
@ -45,6 +49,8 @@
|
|||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="submit" value="login" />
|
<button class="waves-effect waves-light btn green accent-4" type="submit">login</button>
|
||||||
<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}} <input type="submit" value="Sign up"></form>
|
{% csrf_token %} {{form.as_p}} <button class="waves-effect waves-light btn green accent-4" type="submit">sign up</button></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="">
|
||||||
<input type="submit" value="search">
|
<button class="waves-effect waves-light btn green accent-4" type="submit">search</button>
|
||||||
</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-4">
|
<div class="nav-wrapper row green darken-1">
|
||||||
|
|
||||||
<ul class="right">
|
<ul class="right">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
Loading…
Reference in New Issue
Block a user