{% extends 'base.html' %}
{% load bootstrap3 %}

{% block content %}

    <div class="container">
        <div class="row">
            {% for book in object_list %}
                <div class="col-sm-3">
                    {% if book.cover_url %}
                        <img width="200" src='{{ book.cover_url }}' class="img-thumbnail">
                    {% endif %}
                </div>
                <div class="col-sm-9">
                    <h2>{{ book.title }}</h2>
                    {% for author in book.authors.all %}
                        {{ author }}{% if not forloop.last %}, {% endif %}
                    {% endfor %}
                        <br>
                    {% for book_file in book.data.all %}
                        <a href="{% url 'download' book_file.id %}" class="btn btn-primary btn-xs">{{ book_file.format }}</a>
                    {% endfor %}
                </div>
                <div class="clearfix"></div>
            {% endfor %}
        </div>

        {% bootstrap_pagination page_obj %}
    
    </div>

{% endblock %}
{% extends 'base.html' %}
{% load i18n bootstrap3 %}

{% block content %}

    <div class="container">
        <div class="row">
            {% for book in object_list %}
                <div class="col-sm-3">
                    {% if book.cover_url %}
                        <img width="200" src='{{ book.cover_url }}' class="img-thumbnail">
                    {% endif %}
                </div>
                <div class="col-sm-9">
                    <h2>{{ book.title }}</h2>
                    {% for author in book.authors.all %}
                        {{ author }}{% if not forloop.last %}, {% endif %}
                    {% endfor %}
                        <br>
                    {% for book_file in book.data.all %}
                        <a href="{% url 'download' book_file.id %}" class="btn btn-primary btn-xs">{{ book_file.format }}</a>
                    {% endfor %}
                    <a href="#" class="btn btn-success btn-xs"><span class="glyphicon glyphicon-phone"></span> {% trans "Send to Kindle" %}</a>
                </div>
                <div class="clearfix"></div>
            {% endfor %}
        </div>

        {% bootstrap_pagination page_obj %}
    
    </div>

{% endblock %}
Add send to kindle button
Add send to kindle button
