From db9624f832be5e235b626f332cc63776d300bff1 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Wed, 20 Mar 2024 14:52:48 +1100 Subject: [PATCH] galaxy tools in table --- _includes/table.html | 48 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/_includes/table.html b/_includes/table.html index 651d2df..e8c4700 100644 --- a/_includes/table.html +++ b/_includes/table.html @@ -30,9 +30,9 @@ } .popover { display: flex; - flex-direction: column; + flex-direction: column; max-height: 50vh; - max-width: 840px; + max-width: 50vw; } .popover-body { overflow: scroll; @@ -41,9 +41,13 @@ text-decoration: underline; } .col-publications, - .col-galaxy { + .col-galaxy, + .col-description { min-width: 180px; } + .col-galaxy-description { + min-width: 240px; + } .col-badge { width: 180px !important; min-width: 120px; @@ -95,7 +99,7 @@

Relevant tools and resources

{%- endif %} - Description + Description Registry link Tool identifier (e.g. module name) Topic(s) @@ -207,13 +211,26 @@

Relevant tools and resources

data-bs-trigger="focus" data-bs-html="true" data-bs-content=" - +
+ + + + + + + + + {%- for galaxy-tool in tool.galaxy %} + + + + + {%- endfor %} + +
Tool NameDescription
+ {{galaxy-tool.title}} +
+
" > {{tool.galaxy.size}} tools @@ -393,6 +410,15 @@

Relevant tools and resources

document.querySelector(".clear-all-button").style.display = "none"; } + // Allow table elements in popovers + const myDefaultAllowList = bootstrap.Tooltip.Default.allowList; + myDefaultAllowList.table = []; + myDefaultAllowList.thead = []; + myDefaultAllowList.tbody = []; + myDefaultAllowList.th = []; + myDefaultAllowList.tr = []; + myDefaultAllowList.td = []; + const popoverTriggerList = document.querySelectorAll( '[data-bs-toggle="popover"]' );