reasonably working calibreweb thing
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>{{authors}}</h1>
|
||||
{% if books %}
|
||||
<ul>
|
||||
{% for book in books %}
|
||||
|
||||
<li><a href="{{book.get_absolute_url}}">{{book.title}}</a></li>
|
||||
{%endfor%}
|
||||
</ul>
|
||||
{% else %}
|
||||
{%endif%}
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>Author List</h1>
|
||||
{% if authors_list %}
|
||||
<ul>
|
||||
{% for author in authors_list %}
|
||||
<li>
|
||||
<a href="{{ author.get_absolute_url }}">{{ author.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>There are no authors in the library.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,47 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>{{books.title}} by
|
||||
{% if books.authors %}
|
||||
{% for author in books.authors.all %}
|
||||
<a href="{{author.get_absolute_url}}">{{author.name}}</a>
|
||||
{%endfor%}
|
||||
{% else %}
|
||||
|
||||
{{books.author_sort}}
|
||||
{%endif%}
|
||||
|
||||
Published by
|
||||
{% if books.publishers %}
|
||||
{% for pub in books.publishers.all %}
|
||||
<a href="{{pub.get_absolute_url}}">{{pub.name}}</a>
|
||||
{%endfor%}
|
||||
{% else %}
|
||||
Unknown
|
||||
|
||||
{%endif%}
|
||||
|
||||
Tags:
|
||||
{% if books.tags %}
|
||||
{% for tag in books.tags.all %}
|
||||
<a href="{{tag.get_absolute_url}}">{{tag.name}}</a>,
|
||||
{%endfor%}
|
||||
{% else %}
|
||||
{%endif%}
|
||||
|
||||
Rating:
|
||||
{% if books.ratings %}
|
||||
{% for rating in books.ratings.all %}
|
||||
<a href="{{rating.get_absolute_url}}">{{rating}}</a>
|
||||
{%endfor%}
|
||||
{% else %}
|
||||
{%endif%}
|
||||
|
||||
<a href="{{book.publisher.get_absolute_url}}">{{book.publisher}}</a>
|
||||
</h1>
|
||||
{{comment}}
|
||||
<a href="{% static "" %}{{download}}"><img src="{% static "" %}{{imgpath}}" alt="" srcset=""></a>
|
||||
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>Book List</h1>
|
||||
{% if books_list %}
|
||||
<ul>
|
||||
{% for book in books_list %}
|
||||
<li>
|
||||
<a href="{{ book.get_absolute_url }}">{{ book.title }}</a> ({{book.author_sort}})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>There are no books in the library.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>{{authors}} </h1>
|
||||
|
||||
{% if publishers.released %}
|
||||
<ul>
|
||||
{% for book in publishers.released.all %}
|
||||
|
||||
<li><a href="{{book.get_absolute_url}}">{{book.title}}</a></li>
|
||||
{%endfor%}
|
||||
</ul>
|
||||
{% else %}
|
||||
{%endif%}
|
||||
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>Publishers List</h1>
|
||||
{% if publishers_list %}
|
||||
<ul>
|
||||
{% for publisher in publishers_list %}
|
||||
<li>
|
||||
<a href="{{ publisher.get_absolute_url }}">{{ publisher.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>There are no publishers in the library.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
|
||||
<h1>{{ratings}}</h1>
|
||||
{% if books %}
|
||||
<ul>
|
||||
{% for book in books %}
|
||||
|
||||
<li><a href="{{book.get_absolute_url}}">{{book.title}}</a></li>
|
||||
{%endfor%}
|
||||
</ul>
|
||||
{% else %}
|
||||
{%endif%}
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>Ratings List</h1>
|
||||
{% if ratings_list %}
|
||||
<ul>
|
||||
{% for rating in ratings_list %}
|
||||
<li>
|
||||
<a href="{{ rating.get_absolute_url }}">{{ rating.rating }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>There are no ratings in the library.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
|
||||
<h1>{{tags}}</h1>
|
||||
{% if books %}
|
||||
<ul>
|
||||
{% for book in books %}
|
||||
|
||||
<li><a href="{{book.get_absolute_url}}">{{book.title}}</a></li>
|
||||
{%endfor%}
|
||||
</ul>
|
||||
{% else %}
|
||||
{%endif%}
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
17
CalibreWebCompanion/library/templates/library/tags_list.html
Normal file
17
CalibreWebCompanion/library/templates/library/tags_list.html
Normal file
@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load static %}
|
||||
<h1>Tags List</h1>
|
||||
{% if tags_list %}
|
||||
<ul>
|
||||
{% for tag in tags_list %}
|
||||
<li>
|
||||
<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>There are no tags in the library.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user