Commit 5d650bab authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'server/2941-number_of_files_when_relevant' into 'dev'

Display number of samples/files only when relevant

Closes #2941

See merge request !163
parents 45fe4583 1ba3ffc3
Pipeline #19967 failed with stages
in 39 seconds
......@@ -72,11 +72,14 @@
</div>
<div class="db_block_right">
<br />
{{ =min(step, len(query)) }} {{=helper.get_type_display()}}s, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }})
<br />
{{ if len(query) <= step: }}
{{ =len(query) }} {{=helper.get_type_display()}}s, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }})
{{ pass }}
</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>
......@@ -85,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