1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-27 02:20:31 +00:00

resynced grid view with list view

Changed drop-down menu to button, with same style as the other buttons. I'll probably have to make a last sync with master for final approval
This commit is contained in:
pthiben 2020-04-18 22:10:21 -04:00
parent 5222e157cb
commit b7efbf9040
2 changed files with 10 additions and 24 deletions

View File

@ -1,11 +1,15 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<div class="discover load-more grid-view"> <h1 class="{{page}}">{{_(title)}}</h1>
<h2 class="{{title}}">{{_(title)}}</h2>
<div class="filterheader hidden-xs hidden-sm"> <div class="filterheader hidden-xs hidden-sm">
<button id="asc" class="btn btn-success"><span class="glyphicon glyphicon-sort-by-alphabet"></span></button> {% if entries.__len__() %}
<button id="desc" class="btn btn-success"><span class="glyphicon glyphicon-sort-by-alphabet-alt"></span></button> {% if entries[0][0].sort %}
<button id="sort_name" class="btn btn-success"><b>B,A <-> A B</b></button>
{% endif %}
{% endif %}
<button id="desc" class="btn btn-success"><span class="glyphicon glyphicon-sort-by-alphabet"></span></button>
<button id="asc" class="btn btn-success"><span class="glyphicon glyphicon-sort-by-alphabet-alt"></span></button>
{% if charlist|length %} {% if charlist|length %}
<button id="all" class="btn btn-success">{{_('All')}}</button> <button id="all" class="btn btn-success">{{_('All')}}</button>
{% endif %} {% endif %}
@ -15,16 +19,7 @@
{% endfor %} {% endfor %}
</div> </div>
<!-- View selection --> <button class="update-view btn btn-success" href="#" data-target="series_view" data-view="list">Grid</button>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
View <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a class="update-view" href="#" data-target="series_view" data-view="grid">{{_('Grid')}}</a></li>
<li><a class="update-view" href="#" data-target="series_view" data-view="list">{{_('List')}}</a></li>
</ul>
</div>
</div> </div>
{% if entries[0] %} {% if entries[0] %}

View File

@ -19,16 +19,7 @@
{% endfor %} {% endfor %}
</div> </div>
<!-- View selection --> <button class="update-view btn btn-success" href="#" data-target="series_view" data-view="grid">List</button>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
View <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a class="update-view" href="#" data-target="series_view" data-view="grid">{{_('Grid')}}</a></li>
<li><a class="update-view" href="#" data-target="series_view" data-view="list">{{_('List')}}</a></li>
</ul>
</div>
</div> </div>
<div class="container"> <div class="container">
<div id="list" class="col-xs-12 col-sm-6"> <div id="list" class="col-xs-12 col-sm-6">