From fa83ec0406ebb2667eae8a03a129e0d3a7a7fa6e Mon Sep 17 00:00:00 2001 From: Ryan Herbert Date: Thu, 10 Nov 2016 16:23:42 +0100 Subject: [PATCH] sample_set add sample type to view In order to make it more clear what kind of sample set is being viewed --- .../web2py/applications/vidjil/controllers/sample_set.py | 1 + .../web2py/applications/vidjil/views/sample_set/all.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/web2py/applications/vidjil/controllers/sample_set.py b/server/web2py/applications/vidjil/controllers/sample_set.py index 6550925b6..8f4b5f6c3 100644 --- a/server/web2py/applications/vidjil/controllers/sample_set.py +++ b/server/web2py/applications/vidjil/controllers/sample_set.py @@ -219,6 +219,7 @@ def all(): return dict(query = result, + type = type, isAdmin = isAdmin, reverse = False) diff --git a/server/web2py/applications/vidjil/views/sample_set/all.html b/server/web2py/applications/vidjil/views/sample_set/all.html index d54bcf471..4f46a43a0 100644 --- a/server/web2py/applications/vidjil/views/sample_set/all.html +++ b/server/web2py/applications/vidjil/views/sample_set/all.html @@ -65,7 +65,7 @@ {{if isAdmin:}} {{else:}} {{pass}} {{if data.has_permission:}} - + {{else:}} {{pass}} {{pass}} @@ -78,15 +78,15 @@
{{if auth.can_create_patient():}} - + new sample_set + + new {{=type}} compare samples/patients {{else:}} - + {{pass}}

- {{ =len(query) }} sample_set, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }}) + {{ =len(query) }} {{=type}}s, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }})
-- GitLab