Skip to content

Commit

Permalink
Merge pull request #9 from ELIXIR-Belgium/na-ignore
Browse files Browse the repository at this point in the history
Ignore registry badges when their value is NA
  • Loading branch information
bedroesb authored Mar 20, 2024
2 parents 6b33c2b + b2a81cf commit 78c7d40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/elixir-toolkit-theme-plugins/tool_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ def create_tags(tool)
if tool["registry"]
registry = tool["registry"]

if registry["biotools"]
if registry["biotools"] and registry["biotools"] != "NA"
tags << create_tag("https://bio.tools/#{registry["biotools"]}", "fa-info", "Tool info")
end

if registry["fairsharing"]
if registry["fairsharing"] and registry["fairsharing"] != "NA"
tags << create_tag("https://fairsharing.org/FAIRsharing.#{registry["fairsharing"]}", "fa-database", "Standards/Databases")
end

if registry["fairsharing-coll"]
if registry["fairsharing-coll"] and registry["fairsharing-coll"] != "NA"
tags << create_tag("https://fairsharing.org/#{registry["fairsharing-coll"]}", "fa-database", "Standards/Databases")
end

if registry["tess"]
if registry["tess"] and registry["tess"] != "NA"
tags << create_tag("https://tess.elixir-europe.org/search?q=#{registry["tess"]}", "fa-graduation-cap", "Training")
end

if registry["europmc"]
if registry["europmc"] and registry["europmc"] != "NA"
tags << create_tag("https://europepmc.org/article/MED/#{registry["europmc"]}", "fa-book", "Publication")
end

Expand Down
2 changes: 1 addition & 1 deletion lib/elixir-toolkit-theme-plugins/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Jekyll
class Ett
VERSION = '0.1.9'
VERSION = '0.1.10'
end
end

0 comments on commit 78c7d40

Please sign in to comment.