forked from wallabag/wallabag
Add number of results next to pager
This commit is contained in:
@ -98,6 +98,10 @@ a, a:hover, a:visited {
|
||||
#main #content .entrie {
|
||||
border-bottom: 1px dashed #222;
|
||||
}
|
||||
/* First entry */
|
||||
#main #content .results + .entrie {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#main .entrie .tools {
|
||||
list-style-type: none;
|
||||
@ -189,11 +193,22 @@ a, a:hover, a:visited {
|
||||
}
|
||||
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
clear: both;
|
||||
.results {
|
||||
overflow: hidden;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.nb-results {
|
||||
float: left;
|
||||
font-size: 0.9em;
|
||||
line-height: 24px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Pagination */
|
||||
.pagination {
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.pagination a {
|
||||
|
||||
@ -18,10 +18,17 @@
|
||||
</ul>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{{ page_links | raw }}
|
||||
{% if entries is empty %}
|
||||
<div class="messages warning"><p>{% trans "No link available here!" %}</p></div>
|
||||
{% else %}
|
||||
{% block pager %}
|
||||
{% if nb_results > 1 %}
|
||||
<div class="results">
|
||||
<div class="nb-results">{{ nb_results }} {% trans "results" %}</div>
|
||||
{{ page_links | raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% for entry in entries %}
|
||||
<div id="entry-{{ entry.id|e }}" class="entrie">
|
||||
<h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2>
|
||||
@ -36,5 +43,5 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{{ page_links | raw }}
|
||||
{{ block('pager') }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user