Skip to content

Commit 21647f4

Browse files
authored
Merge pull request #236 from ELIXIR-Belgium/na-fix
Make sure NA as registry value is not displayed
2 parents 180e5e2 + 1ffbd5f commit 21647f4

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem "elixir-toolkit-theme-plugins", "~> 0.1.9"
3+
gem "elixir-toolkit-theme-plugins", "~> 0.1.10"
44
gem "webrick", "~> 1.8.1"
55
gem "jekyll", "~> 4.3.2"
66
gem "jemoji", "~> 0.13.0"

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ GEM
1414
addressable (2.8.6)
1515
public_suffix (>= 2.0.2, < 6.0)
1616
base64 (0.2.0)
17-
bigdecimal (3.1.6)
17+
bigdecimal (3.1.7)
1818
colorator (1.1.0)
1919
concurrent-ruby (1.2.3)
2020
connection_pool (2.4.1)
2121
drb (2.2.1)
22-
elixir-toolkit-theme-plugins (0.1.9)
22+
elixir-toolkit-theme-plugins (0.1.10)
2323
jekyll (~> 4.3, >= 4.3.1)
2424
em-websocket (0.5.3)
2525
eventmachine (>= 0.12.9)
@@ -37,7 +37,7 @@ GEM
3737
activesupport (>= 2)
3838
nokogiri (>= 1.4)
3939
http_parser.rb (0.8.0)
40-
i18n (1.14.1)
40+
i18n (1.14.4)
4141
concurrent-ruby (~> 1.0)
4242
jekyll (4.3.3)
4343
addressable (~> 2.4)
@@ -88,11 +88,11 @@ GEM
8888
rb-fsevent (~> 0.10, >= 0.10.3)
8989
rb-inotify (~> 0.9, >= 0.9.10)
9090
mercenary (0.4.0)
91-
minitest (5.22.2)
91+
minitest (5.22.3)
9292
mutex_m (0.2.0)
9393
net-http (0.4.1)
9494
uri
95-
nokogiri (1.16.2-x86_64-linux)
95+
nokogiri (1.16.3-x86_64-linux)
9696
racc (~> 1.4)
9797
octokit (6.1.1)
9898
faraday (>= 1, < 3)
@@ -106,7 +106,7 @@ GEM
106106
rb-inotify (0.10.1)
107107
ffi (~> 1.0)
108108
rexml (3.2.6)
109-
rouge (4.2.0)
109+
rouge (4.2.1)
110110
rubyzip (2.3.2)
111111
safe_yaml (1.0.5)
112112
sass-embedded (1.69.5)
@@ -127,7 +127,7 @@ PLATFORMS
127127
x86_64-linux
128128

129129
DEPENDENCIES
130-
elixir-toolkit-theme-plugins (~> 0.1.9)
130+
elixir-toolkit-theme-plugins (~> 0.1.10)
131131
jekyll (~> 4.3.2)
132132
jekyll-github-metadata (~> 2.16.0)
133133
jekyll-redirect-from (~> 0.16.0)

_data/tool_and_resource_list.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
registry:
4545
fairsharing: wy4egf
4646
tess: Zenodo
47+
biotools: NA
4748
- description:
4849
API framework and data model for cross-cohort searching.
4950
url: https://github.com/ga4gh-beacon/beacon-v2

_includes/resource-table-all.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,25 @@
7575
{%- for tag in tool.related_pages %}
7676
{%- unless tag == page.page_id %}
7777
{%- assign related_page = site.pages | where:"page_id",tag | first %}
78-
<a href="{{related_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{related_page.type | replace: '_', ' ' | capitalize}}"><span class="badge default-badge">{{ related_page.title | truncate: 25 }}</span></a>
78+
<a href="{{related_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{related_page.type | replace: '_', ' ' | capitalize }}"><span class="badge default-badge">{{ related_page.title | truncate: 25 }}</span></a>
7979
{%- endunless %}
8080
{%- endfor %}
8181
{%- endcapture %}
8282
<td>{{related_pages}}</td>
8383
<td>
84-
{%- if tool.registry.biotools %}
84+
{%- if tool.registry.biotools and tool.registry.biotools != "NA" %}
8585
<a data-bs-toggle="tooltip" data-bs-original-title="Bio.tools" href="https://bio.tools/{{tool.registry.biotools}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-info me-2"></i>Tool info</span></a>
8686
{%- endif %}
87-
{%- if tool.registry.fairsharing %}
87+
{%- if tool.registry.fairsharing and tool.registry.fairsharing != "NA" %}
8888
<a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-database me-2"></i>Standards/Databases</span></a>
8989
{%- endif %}
90-
{%- if tool.registry.fairsharing-coll %}
90+
{%- if tool.registry.fairsharing-coll and tool.registry.fairsharing-coll != "NA" %}
9191
<a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing collection" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-database me-2"></i>Standards/Databases</span></a>
9292
{%- endif %}
93-
{%- if tool.registry.tess %}
93+
{%- if tool.registry.tess and tool.registry.tess != "NA" %}
9494
<a data-bs-toggle="tooltip" data-bs-original-title="TeSS" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-graduation-cap me-2"></i>Training</span></a>
9595
{%- endif %}
96-
{%- if tool.registry.europmc %}
96+
{%- if tool.registry.europmc and tool.registry.europmc != "NA" %}
9797
<a data-bs-toggle="tooltip" data-bs-original-title="EuroPMC" href="https://europepmc.org/article/MED/{{tool.registry.europmc}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-book me-2"></i>Publication</span></a>
9898
{%- endif %}
9999
</td>
@@ -177,7 +177,7 @@ <h3 class="{% if site.theme_variables.headings.resource-table-all-collapse %}mb-
177177
{%- for tag in section[1] %}
178178
{%- unless tag == page.page_id %}
179179
{%- assign related_page = site.pages | where:"page_id",tag | first %}
180-
<a class="nohover" href="{{related_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{related_page.type | replace: '_', ' ' | capitalize}}"><span class="badge default-badge">{{ related_page.title | truncate: 25 }}</span></a>
180+
<a class="nohover" href="{{related_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{related_page.type | replace: '_', ' ' | capitalize }}"><span class="badge default-badge">{{ related_page.title | truncate: 25 }}</span></a>
181181
{%- endunless %}
182182
{%- endfor %}
183183
{%- endunless %}
@@ -188,19 +188,19 @@ <h3 class="{% if site.theme_variables.headings.resource-table-all-collapse %}mb-
188188
<td></td>
189189
{%- endif %}
190190
<td>
191-
{%- if tool.registry.biotools %}
191+
{%- if tool.registry.biotools and tool.registry.biotools != "NA" %}
192192
<a data-bs-toggle="tooltip" data-bs-original-title="Bio.tools" href="https://bio.tools/{{tool.registry.biotools}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-info me-2"></i>Tool info</span></a>
193193
{%- endif %}
194-
{%- if tool.registry.fairsharing %}
194+
{%- if tool.registry.fairsharing and tool.registry.fairsharing != "NA" %}
195195
<a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing" href="https://fairsharing.org/FAIRsharing.{{tool.registry.fairsharing}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-database me-2"></i>Standards/Databases</span></a>
196196
{%- endif %}
197-
{%- if tool.registry.fairsharing-coll %}
197+
{%- if tool.registry.fairsharing-coll and tool.registry.fairsharing-coll != "NA" %}
198198
<a data-bs-toggle="tooltip" data-bs-original-title="FAIRsharing collection" href="https://fairsharing.org/{{tool.registry.fairsharing-coll}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-database me-2"></i>Standards/Databases</span></a>
199199
{%- endif %}
200-
{%- if tool.registry.tess %}
200+
{%- if tool.registry.tess and tool.registry.tess != "NA" %}
201201
<a data-bs-toggle="tooltip" data-bs-original-title="TeSS" href="https://tess.elixir-europe.org/search?q={{tool.registry.tess}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-graduation-cap me-2"></i>Training</span></a>
202202
{%- endif %}
203-
{%- if tool.registry.europmc %}
203+
{%- if tool.registry.europmc and tool.registry.europmc != "NA" %}
204204
<a data-bs-toggle="tooltip" data-bs-original-title="EuroPMC" href="https://europepmc.org/article/MED/{{tool.registry.europmc}}"><span class="badge bg-dark text-white hover-primary"><i class="fa-solid fa-book me-2"></i>Publication</span></a>
205205
{%- endif %}
206206
</td>

pages/documentation/resource_table.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Example:
4848
tess: GitHub
4949
```
5050
51+
{% include callout.html type="tip" content="`NA` as registry value will not be rendered as a url but will be skipped." %}
5152

5253
## What tool or resource can be added to the table
5354
Tools and resources specifically mentioned in the text of the pages should be present in the main table.

0 commit comments

Comments
 (0)