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 %}
|
{% 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 configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
@ -35,20 +23,20 @@
|
|||||||
{% if not libraries %}
|
{% if not libraries %}
|
||||||
<p>{% trans 'No libraries available.' %}</p>
|
<p>{% trans 'No libraries available.' %}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div id="calibre-libraries" class="list-group">
|
<div id="calibre-libraries" class="list-group list-group-two-column">
|
||||||
{% for library in libraries %}
|
{% for library in libraries %}
|
||||||
<div class="list-group-item clearfix">
|
<div class="list-group-item">
|
||||||
<a href="{% url 'calibre:delete-library' library %}"
|
<a class="primary"
|
||||||
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"
|
|
||||||
href="/calibre/#library_id={{ library }}&panel=book_list"
|
href="/calibre/#library_id={{ library }}&panel=book_list"
|
||||||
title="{% blocktrans %}Go to library {{ library }}{% endblocktrans %}">
|
title="{% blocktrans %}Go to library {{ library }}{% endblocktrans %}">
|
||||||
{{ library }}
|
{{ library }}
|
||||||
</a>
|
</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>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user