From 094c2eed096147993d278dae22dda8ed3663a511 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Tue, 19 Mar 2024 13:38:43 +1100 Subject: [PATCH] Fix filter bug + publications & galaxy popovers --- _includes/table.html | 164 ++++++++++++++++++++++++++++--------------- 1 file changed, 106 insertions(+), 58 deletions(-) diff --git a/_includes/table.html b/_includes/table.html index 15f5a74..651d2df 100644 --- a/_includes/table.html +++ b/_includes/table.html @@ -11,6 +11,9 @@ width: 84px; background-color: #ffa500; } + .biotools-button:hover { + opacity: 0.8; + } .tooltable th, .tooltable td { vertical-align: middle; @@ -22,10 +25,31 @@ .clear-all-button:hover { opacity: 0.6; } + .cursor-pointer { + cursor: pointer; + } + .popover { + display: flex; + flex-direction: column; + max-height: 50vh; + max-width: 840px; + } + .popover-body { + overflow: scroll; + } + .popover a:hover { + text-decoration: underline; + } + .col-publications, + .col-galaxy { + min-width: 180px; + } + .col-badge { + width: 180px !important; + min-width: 120px; + } - - {%- if include.tag %} {%- assign tools = site.data.data | add_related_pages | where:"related_pages", include.tag | sort_natural: "name" %} {%- else %} {%- assign tools = site.data.data | add_related_pages | sort_natural: "name" %} {%- @@ -37,9 +61,7 @@

Relevant tools and resources

{%- endif %}
- +
- + - + - + @@ -133,50 +155,70 @@

Relevant tools and resources

{%- endfor %} {%- endif %} @@ -226,7 +270,7 @@

Relevant tools and resources

@@ -77,15 +99,15 @@

Relevant tools and resources

Registry link Tool identifier (e.g. module name) Topic(s)PublicationsPublications Containers available? (BioContainers) License Resources / documentationGalaxy AustraliaGalaxy Australia NCI (Gadi) NCI (if89) Pawsey (Setonix)QRIScloud / UQ-RCC (Bunya)QRIScloud / UQ-RCC (Bunya)
- {% if tool.publications %} {%- for publication in tool.publications %} - - {%- endfor %} {%- endif %} + {%- if tool.publications.size > 1 %} + + {{tool.publications.size}} publications + + + {%- else %} + + {{tool.publications[0].title}} + + {%- endif %} {% if tool.biocontainers != blank %} - {{tool.name}} + + {{tool.name}} + {%- endif %} {% if tool.license != blank %} {{tool.license}} {%- endif %} {% if tool.resource-documentation == tool.resource-documentation %} - {{tool.resource-documentation}} + + {{tool.resource-documentation}} + {%- endif %} {%- if tool.galaxy.size > 1 %} -

- -

-
- {%- for galaxy-tool in tool.galaxy %} - - {%- endfor %} -
+ + {{tool.galaxy.size}} tools + + {%- else %} {{tool.galaxy[0].title}} {%- endif %} @@ -198,7 +240,9 @@

Relevant tools and resources

{% if tool.bunya %} - {{tool.bunya}} + + {{tool.bunya}} + {%- endif %}