From 45856ad45a84f75c361396477946de7bd46a64f5 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 1 Mar 2023 18:19:08 +0000 Subject: Show the log2 of the Mean column when Mean > 100 for Gene global search --- wqflask/wqflask/templates/gsearch_gene.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/gsearch_gene.html b/wqflask/wqflask/templates/gsearch_gene.html index 03e5019c..6bc92377 100644 --- a/wqflask/wqflask/templates/gsearch_gene.html +++ b/wqflask/wqflask/templates/gsearch_gene.html @@ -175,8 +175,15 @@ 'orderSequence': [ "desc", "asc"], 'width': "30px", 'targets': 10, - 'data': "mean", - 'defaultContent': "N/A" + 'data': null, + 'defaultContent': "N/A", + 'render': function(data) { + if (data.mean > 100) { + return Math.log2(data.mean).toFixed(3) + } else { + return data.mean + } + } }, { 'title': "
Role Name | +Actions | +|
---|---|---|
{{grole.role.role_name}} | ++ + View + + | ++ + Edit + + | +
+ + + + No group roles found + | +
Privilege | +Description | +
---|---|
{{privilege.privilege_id}} | +{{privilege.privilege_description}} | +
User Email | +User Name | +User Group | +Assigned Roles | +|
---|---|---|---|---|
{{user_row.user.email}} | +{{user_row.user.name}} | ++ {{user_row.user_group.group_name}} | +Role | +Action | +
+ + {{grole.role.role_name}} + + | ++ + | +|||
+ + + + + There are no users assigned any role for this resource. + + | +
Privilege | +Description | +Action | +
---|---|---|
{{priv.privilege_id}} | +{{priv.privilege_description}} | ++ + | +
+ + + + All privileges assigned! + | +