|
|
@ -2,10 +2,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
|
|
|
|
<h1 class="header">{{ book.title }}</h1>
|
|
|
|
<h1 class="header">{{ book.title }}</h1>
|
|
|
|
<img class="no_cover" id="{{ book.title }}" src="../uploads/cover/{{ book.cover }}" width="150" onerror="if (this.src != '../uploads/cover/{{ book.cover }}') this.src = '../static/img/default_cover.gif';">
|
|
|
|
<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 %}
|
|
|
|
<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>
|
|
|
|
<li><a href="{{url_for('show_author_by_id', id=author.id)}}">{{ author.author_name }}</a> </li>
|
|
|
@ -13,9 +13,8 @@
|
|
|
|
{% endfor %}</ul></p>
|
|
|
|
{% endfor %}</ul></p>
|
|
|
|
|
|
|
|
|
|
|
|
<p>Category: {{ book.category }}</p>
|
|
|
|
<p>Category: {{ book.category }}</p>
|
|
|
|
<p>Year published: {{ book.year_published }}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>Stack(s): <ul>{% for stack in book.stacks %}
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<p style="font-size: 10px;"><a href='{{url_for('remove_from_stack', stackid=stack.id, bookid=book.id)}}'> Remove from stack</a></p>
|
|
|
|
|
|
|
|
|
|
|
|