Commit 3383b21d authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

patient/index.html: display also total number of files and total size

parent 32823f01
{{extend 'db_layout.html'}}
{{import vidjil_utils}}
{{total_file_count = 0 ; total_size = 0}}
<h3></h3>
<div class="db_block">
......@@ -49,7 +51,7 @@
{{if isAdmin:}} <td> {{=row['groups']}}</td>{{pass}}
{{if isAdmin:}} <td> {{=row['creator']}}</td>{{pass}}
<td> {{=row['file_count']}} ({{=vidjil_utils.format_size(row['size'])}}) </td>
{{ total_file_count += row['file_count'] ; total_size += row['size'] }}
{{if isAdmin:}} <td onclick="db.call('patient/permission', {'id' :'{{=row['id']}}'} )" > p </td> {{else:}} <td></td> {{pass}}
{{if row['has_permission']:}}
......@@ -75,6 +77,7 @@
</div>
<div class="db_block_right">
{{ =len(query) }} patients
<br />
{{ =len(query) }} patients, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }})
</div>
</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