Commit 1ba3ffc3 authored by Mikaël Salson's avatar Mikaël Salson

sample_set/all: Don't display page number if it is the only one

parent 5b8f8da7
Pipeline #19961 passed with stage
in 2 seconds
......@@ -79,6 +79,7 @@
</div>
</div>
<div class="db_block_center">
{{ if page > 0 or len(query) > step: }}
page:
{{ if page > 0: }}
<i class="icon-left-open-1" onclick="db.call('sample_set/all', {'type': '{{=helper.get_type()}}', 'page': {{=page-1}}})"></i>
......@@ -87,4 +88,5 @@
{{if len(query) > step : }}
<i class="icon-right-open-1" onclick="db.call('sample_set/all', {'type': '{{=helper.get_type()}}', 'page': {{=page+1}}})"></i>
{{ pass }}
{{ pass }}
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment