From 94513310831875a72d21b3e17af9541a328cabd6 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 1 Oct 2024 13:28:49 -0500 Subject: Extract privileges and use them for access control --- uploader/templates/phenotypes/view-dataset.html | 5 +- uploader/templates/phenotypes/view-phenotype.html | 63 ++++++++++++++++++++--- 2 files changed, 58 insertions(+), 10 deletions(-) (limited to 'uploader/templates/phenotypes') diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html index 959b02a..e2ccb60 100644 --- a/uploader/templates/phenotypes/view-dataset.html +++ b/uploader/templates/phenotypes/view-dataset.html @@ -51,10 +51,9 @@
This dataset has a total of {{phenotype_count}} phenotypes.
-+
- Limit access here, according to the authorisation privileges the user has on - this dataset!
+ Display pagination controls here …Phenotype | +{{phenotype.Post_publication_description or phenotype.Pre_publication_abbreviation or phenotype.Original_description}} + |
Cross-Reference ID | +{{phenotype.xref_id}} | +
Collation | +{{dataset.FullName}} | +
# | +Sample | +Value | +Symbol | +SE | +N | +
---|---|---|---|---|---|
{{loop.index}} | +{{item.StrainName}} | +{{item.value}} | +{{item.Symbol or "-"}} | +{{item.error or "-"}} | +{{item.count or "-"}} | +
+ + You do not currently have privileges to view this phenotype in greater + detail. +
+ {%endif%} +