mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
calibre: Use common styling for libraries list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
adb40218b0
commit
7a32b8f638
@ -5,18 +5,6 @@
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block page_head %}
|
||||
<style type="text/css">
|
||||
.library-label {
|
||||
display: inline-block;
|
||||
width: 40%;
|
||||
}
|
||||
.list-group-item .btn {
|
||||
margin: -0.3125rem 0.125rem;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block configuration %}
|
||||
{{ block.super }}
|
||||
|
||||
@ -35,20 +23,20 @@
|
||||
{% if not libraries %}
|
||||
<p>{% trans 'No libraries available.' %}</p>
|
||||
{% else %}
|
||||
<div id="calibre-libraries" class="list-group">
|
||||
<div id="calibre-libraries" class="list-group list-group-two-column">
|
||||
{% for library in libraries %}
|
||||
<div class="list-group-item clearfix">
|
||||
<a href="{% url 'calibre:delete-library' library %}"
|
||||
class="btn btn-default btn-sm pull-right" role="button"
|
||||
title="{% blocktrans %}Delete library {{ library }}{% endblocktrans %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
||||
</a>
|
||||
|
||||
<a class="library-label"
|
||||
<div class="list-group-item">
|
||||
<a class="primary"
|
||||
href="/calibre/#library_id={{ library }}&panel=book_list"
|
||||
title="{% blocktrans %}Go to library {{ library }}{% endblocktrans %}">
|
||||
{{ library }}
|
||||
</a>
|
||||
|
||||
<a href="{% url 'calibre:delete-library' library %}"
|
||||
class="btn btn-default btn-sm secondary" role="button"
|
||||
title="{% blocktrans %}Delete library {{ library }}{% endblocktrans %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user