|
|
|
@ -13,19 +13,32 @@
|
|
|
|
|
{{ stack.stack_author }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
<h2>Books in this stack:</h2>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
{% for book in stack.books %}
|
|
|
|
|
{% if loop.length >= 5 %}
|
|
|
|
|
{% if loop.index == 6 %}
|
|
|
|
|
<p style='color:red;'>Your stack is getting a little too big. Are these next books really relevant?</p>
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<li> <a href="{{url_for('show_book_by_id', id=book.id)}}">{{book.title}}</a> </li>
|
|
|
|
|
<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';">
|
|
|
|
|
<div class='widget'>
|
|
|
|
|
<iframe src="../uploads/{{ book.file }}" width="50%" ></iframe>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endfor %}</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<p><a href="{{url_for('show_books')}}">Add some more books</a></p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<a href="{{ url_for('remove_stack_by_id', id=stack.id )}}">Remove stack</a> </p>
|
|
|
|
|
<p>
|
|
|
|
|