Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
3383b21d
Commit
3383b21d
authored
Jul 10, 2015
by
Mathieu Giraud
Committed by
Vidjil Team
Jul 10, 2015
Browse files
patient/index.html: display also total number of files and total size
parent
32823f01
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/patient/index.html
View file @
3383b21d
{{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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment