forked from XPUB/XPPL
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.7 KiB
HTML
44 lines
1.7 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block main %}
|
|
<div class="container">
|
|
<h1 class="header">{{ book.title }}</h1>
|
|
<img class="no_cover" id="{{ book.title }}" src="../uploads/cover/{{ book.cover }}" width="180" onerror="if (this.src != '../uploads/cover/{{ book.cover }}') this.src = '../static/img/default_cover.gif';">
|
|
|
|
<p>Year published: {{ book.year_published }}</p>
|
|
<p>Author(s): <ul>{% for author in book.authors %}
|
|
|
|
<li><a href="{{url_for('show_author_by_id', id=author.id)}}">{{ author.author_name }}</a> </li>
|
|
|
|
{% endfor %}</ul></p>
|
|
|
|
<p>Category: {{ book.category }}</p>
|
|
|
|
<p>Included in stack(s): <ul>{% for stack in book.stacks %}
|
|
<li><a href="{{url_for('show_stack_by_id', id=stack.id)}}">{{ stack.stack_name }}</a>
|
|
<p style="font-size: 10px;"><a href="{{url_for('remove_from_stack', stackid=stack.id, bookid=book.id)}}"> Remove from stack</a></p>
|
|
|
|
|
|
{% endfor %}</ul></p>
|
|
|
|
{% if book.file %}
|
|
<button id="myBtn" style= "width: 180px; font-size: 10pt;"><a> Download this {{ book.fileformat }}</a></button>
|
|
<div id="myModal" class="modal">
|
|
<div class="modal-content">
|
|
<span class="close">×</span>
|
|
<h3>A message from the uploading librarian:</h3>
|
|
<span style="font-style: italic;">"{{book.message or 'Happy reading.'}}" </span><br>
|
|
<h4><a href="../uploads/{{ book.file }}"> >>>> Link to file <<<<</h4></a></div>
|
|
</div>
|
|
{% else %}
|
|
{% endif %}
|
|
|
|
<button style= "font-size: 10pt;"> <a href="{{ url_for('edit_book_by_id', id=book.id )}}">edit</a></button>
|
|
<button style= "font-size: 10pt;"> <a href="{{ url_for('remove_book_by_id', id=book.id)}}">delete</a></button>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|