elixir-toolkit-theme 1.16.0 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/_includes/events.html +3 -3
- data/_includes/head.html +10 -3
- data/_includes/image.html +1 -1
- data/_includes/more-information-tiles.html +8 -8
- data/_includes/news.html +5 -5
- data/_includes/related-pages.html +1 -1
- data/_includes/resource-table-all.html +39 -16
- data/_includes/resource-table-page.html +97 -8
- data/_includes/section-navigation-tiles.html +58 -15
- data/_includes/topnav.html +3 -1
- data/_includes/training-table-all.html +1 -1
- data/_sass/_bootstrap_variables.scss +0 -2
- data/_sass/bootstrap/_buttons.scss +0 -1
- data/_sass/bootstrap/bootstrap-grid.scss +1 -1
- data/_sass/bootstrap/bootstrap-reboot.scss +1 -1
- data/_sass/bootstrap/bootstrap-utilities.scss +1 -1
- data/_sass/bootstrap/bootstrap.scss +1 -1
- data/assets/css/main.scss +47 -54
- data/assets/js/bootstrap.bundle.min.js +2 -2
- data/assets/js/bootstrap.bundle.min.js.map +1 -1
- data/assets/js/main.js +27 -16
- data/assets/js/search.js +5 -3
- metadata +2 -3
- data/assets/js/jquery.cookie.min.js +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8974445df1cfdf69a5a0bc624bebace7dc8dd1d3865d28001b6098be12dd4d48
|
4
|
+
data.tar.gz: 4aa16186b7890329f81bd5766e042e1b098c3f7c438061ffed2e49bd9278c568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc9d21cbe26bf4978d51009ccb97b8ccc9701c2ed3adc6abd087d99c3600c792a109cbccc333dec8ae6ef75cd8f9946f2507e20421a1987d3c8d7c24ccd41b96
|
7
|
+
data.tar.gz: b9043913369071d3ec4eb0dbebec2ef01d07bae10dd0d78c9bd92c156e4b65b91a6104b4deb2ad1d01bcfbd03867a5a66cc9d113430381e5560688c675167f1d
|
data/README.md
CHANGED
@@ -23,13 +23,16 @@ Its key features:
|
|
23
23
|
|
24
24
|
## Installation
|
25
25
|
|
26
|
-
### via GitHub Pages remote theme
|
26
|
+
### via GitHub Pages remote theme (installation free!)
|
27
27
|
|
28
|
-
The
|
28
|
+
The quickest way to use the elixir-toolkit-theme is to use the GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `config.yml` file:
|
29
29
|
|
30
30
|
```yaml
|
31
31
|
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
|
32
32
|
```
|
33
|
+
|
34
|
+
It also allows you to use a specific version of the theme by add `@X.X.X` to make sure your website keeps working iif breaking changes get introduced.
|
35
|
+
|
33
36
|
### via RubyGems:
|
34
37
|
|
35
38
|
Alternatively you can install it as a Ruby Gem (preferred way if you use GitLab).
|
@@ -96,7 +99,7 @@ docker run -it --rm -p [::1]:4000:4000 -v $PWD:/srv/jekyll jekyll/jekyll:latest
|
|
96
99
|
|
97
100
|
This will start the docker container and serve the website locally. Make sure the `.\_site` is not yet created to avoid permission errors.
|
98
101
|
|
99
|
-
## This theme is known to be used in
|
102
|
+
## This theme is known to be used in
|
100
103
|
|
101
104
|
- [RDMkit](https://rdmkit.elixir-europe.org/)
|
102
105
|
- [WorkflowHub project](https://about.workflowhub.eu/)
|
data/_includes/events.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="events {{include.event_type}}s">
|
2
|
-
{%- if include.title ==
|
2
|
+
{%- if include.title == true%}
|
3
3
|
<h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
|
4
4
|
{%- endif %}
|
5
5
|
{%- assign events = site.data.events %}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
{%- endif %}
|
17
17
|
{%- if event.description %}
|
18
18
|
{%- assign word_count = event.description | split: " " | size %}
|
19
|
-
{%- if include.truncate ==
|
19
|
+
{%- if include.truncate == true and word_count > 40 %}
|
20
20
|
<p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
|
21
21
|
View description
|
22
22
|
</a>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
{%- assign count = count | plus: 1 %}
|
33
33
|
{%- endfor %}
|
34
34
|
</ul>
|
35
|
-
{%- if include.caption ==
|
35
|
+
{%- if include.caption == true%}
|
36
36
|
<small>An overview of all our events can be fount on the <a href="{{'/events' | relative_url}}">events page</a>.</small>
|
37
37
|
{%- endif %}
|
38
38
|
</div>
|
data/_includes/head.html
CHANGED
@@ -6,9 +6,17 @@
|
|
6
6
|
{%- capture keywords %}
|
7
7
|
{%- if page.related_pages %}
|
8
8
|
{%- for section in page.related_pages %}
|
9
|
-
{%- unless section[1] ==
|
10
|
-
{%-
|
9
|
+
{%- unless section[1].size == 0 %}
|
10
|
+
{%- for keywordstr in section[1] %}
|
11
|
+
{%- assign keywordpage = site.pages | where: "page_id", keywordstr | first %}
|
12
|
+
{%- if allkeywords %}
|
13
|
+
{%- assign allkeywords = allkeywords | append: ", " | append: keywordstr | append: ", " | append: keywordpage.title %}
|
14
|
+
{%- else %}
|
15
|
+
{%- assign allkeywords = allkeywords | append: keywordstr | append: ", " | append: keywordpage.title %}
|
16
|
+
{%- endif %}
|
11
17
|
{%- endfor %}
|
18
|
+
{%- endunless %}
|
19
|
+
{%- endfor %}{{allkeywords}}
|
12
20
|
{%- endif %}
|
13
21
|
{%- endcapture %}
|
14
22
|
<meta name="keywords" content="{{keywords}}">
|
@@ -46,7 +54,6 @@
|
|
46
54
|
<script src="{{ 'assets/js/anchor.min.js' | relative_url }}"></script>
|
47
55
|
<script src="{{ 'assets/js/toc.js' | relative_url }}"></script>
|
48
56
|
<script src="{{ 'assets/js/jquery.navgoco.js' | relative_url }}"></script>
|
49
|
-
<script src="{{ 'assets/js/jquery.cookie.min.js' | relative_url }}"></script>
|
50
57
|
<script src="{{ 'assets/js/main.js' | relative_url }}"></script>
|
51
58
|
<script src="{{ 'assets/js/search.js' | relative_url }}"></script>
|
52
59
|
{%- if page.datatable == true %}
|
data/_includes/image.html
CHANGED
@@ -17,13 +17,13 @@
|
|
17
17
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
18
18
|
{%- assign registry = training.registry | downcase %}
|
19
19
|
{%- if registry == "tess" %}
|
20
|
-
<img alt="TeSS logo" class="img-fluid" src="assets/img/tess_logo.svg">
|
20
|
+
<img alt="TeSS logo" class="img-fluid" src="{{ 'assets/img/tess_logo.svg' | relative_url }}">
|
21
21
|
{%- elsif registry == "zenodo" %}
|
22
|
-
<img alt="Zenodo logo" class="img-fluid" src="assets/img/zenodo_logo.svg">
|
22
|
+
<img alt="Zenodo logo" class="img-fluid" src="{{ 'assets/img/zenodo_logo.svg' | relative_url }}">
|
23
23
|
{%- elsif registry == "youtube" %}
|
24
|
-
<img alt="Youtube logo" class="img-fluid" src="assets/img/youtube_logo.svg">
|
24
|
+
<img alt="Youtube logo" class="img-fluid" src="{{ 'assets/img/youtube_logo.svg' | relative_url }}">
|
25
25
|
{%- elsif registry == "carpentries" %}
|
26
|
-
<img alt="Carpentries" class="img-fluid" src="assets/img/carpentries_logo.svg">
|
26
|
+
<img alt="Carpentries" class="img-fluid" src="{{ 'assets/img/carpentries_logo.svg' | relative_url }}">
|
27
27
|
{%- else %}
|
28
28
|
<i class="fa-solid fa-external-link-alt text-primary fs-5"></i>
|
29
29
|
{%- endif %}
|
@@ -53,7 +53,7 @@
|
|
53
53
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRCookbook" href="{{ recipe.url }}">
|
54
54
|
<div class="row g-1">
|
55
55
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
56
|
-
<img alt="FAIRCookbook logo" class="img-fluid" src="assets/img/fairplus_compact_logo.svg">
|
56
|
+
<img alt="FAIRCookbook logo" class="img-fluid" src="{{ 'assets/img/fairplus_compact_logo.svg' | relative_url }}">
|
57
57
|
</div>
|
58
58
|
<div class="col-10 d-flex align-items-center">
|
59
59
|
<span class="text-start">Step-by-step process for: {{recipe.name}}</span>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="DSW" href="{{ site.dsw_deep_link_prefix | append: question.uuid }}">
|
70
70
|
<div class="row g-1">
|
71
71
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
72
|
-
<img alt="DSW logo" class="img-fluid" src="assets/img/dsw_compact_logo.svg">
|
72
|
+
<img alt="DSW logo" class="img-fluid" src="{{ 'assets/img/dsw_compact_logo.svg' | relative_url }}">
|
73
73
|
</div>
|
74
74
|
<div class="col-10 d-flex align-items-center">
|
75
75
|
<span class="text-start">Support for DMP on: {{question.name}}</span>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRsharing" href="{{ standard.url }}">
|
86
86
|
<div class="row g-1">
|
87
87
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
88
|
-
<img alt="FAIRsharing logo" class="img-fluid" src="assets/img/fairsharing_compact_logo.svg">
|
88
|
+
<img alt="FAIRsharing logo" class="img-fluid" src="{{ 'assets/img/fairsharing_compact_logo.svg' | relative_url }}">
|
89
89
|
</div>
|
90
90
|
<div class="col-10 d-flex align-items-center">
|
91
91
|
<span class="text-start">FAIRsharing collection about: {{standard.name}}</span>
|
@@ -101,7 +101,7 @@
|
|
101
101
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="RDMkit" href="{{ rdmdoc.url }}">
|
102
102
|
<div class="row g-1">
|
103
103
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
104
|
-
<img alt="RDMkit logo" class="img-fluid" src="assets/img/rdmkit_compact_logo.svg">
|
104
|
+
<img alt="RDMkit logo" class="img-fluid" src="{{ 'assets/img/rdmkit_compact_logo.svg' | relative_url }}">
|
105
105
|
</div>
|
106
106
|
<div class="col-10 d-flex align-items-center">
|
107
107
|
<span class="text-start">Data management guidelines on: {{rdmdoc.name}}</span>
|
data/_includes/news.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="news">
|
2
|
-
{%- if include.title ==
|
3
|
-
<h2>
|
2
|
+
{%- if include.title == true %}
|
3
|
+
<h2>What's new?</h2>
|
4
4
|
{%- endif %}
|
5
|
-
{%- assign news = site.data.news | sort: "date"%}
|
5
|
+
{%- assign news = site.data.news | sort: "date" %}
|
6
6
|
{%- assign count = 0 %}
|
7
7
|
<ul class="list-unstyled mt-3">
|
8
8
|
{%- for new in news reversed%}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<p class="text-muted"><i class="far fa-calendar me-2"></i><time>{{ new.date | date_to_long_string }}</time>{% if new.linked_pr %}<b> - </b><i class="fa-solid fa-code-branch"></i><a href="{{ site.github.repository_url | append: '/pull/' | append: new.linked_pr }}">{{new.linked_pr }}</a>{% endif %}</p>
|
12
12
|
{%- if new.description %}
|
13
13
|
{%- assign word_count = new.description | split: " " | size %}
|
14
|
-
{%- if include.truncate ==
|
14
|
+
{%- if include.truncate == true and word_count > 40 %}
|
15
15
|
<p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
|
16
16
|
View description
|
17
17
|
</a>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
{%- endif %}
|
31
31
|
{%- endfor %}
|
32
32
|
</ul>
|
33
|
-
{%- if include.caption ==
|
33
|
+
{%- if include.caption == true %}
|
34
34
|
<small>For more news please visit our <a href="{{ '/news' | relative_url }}">news page</a>.</small>
|
35
35
|
{%- endif %}
|
36
36
|
</div>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
{%- assign metadata = section_pages | where:"page_id", page_id %}
|
24
24
|
{%- for page_hit in metadata %}
|
25
25
|
<li class="d-grid">
|
26
|
-
<a class="btn bg-white hover-primary text-start" href="{{ page_hit.url | relative_url }}"><span>{{page_hit.title}}{% if page_hit.description %}</span><br><small class="text-muted">{{ page_hit.description
|
26
|
+
<a class="btn bg-white hover-primary text-start" href="{{ page_hit.url | relative_url }}"><span>{{page_hit.title}}{% if page_hit.description %}</span><br><small class="text-muted">{{ page_hit.description }}</small>{% endif %}</a>
|
27
27
|
</li>
|
28
28
|
{%- endfor %}
|
29
29
|
{%- endfor %}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
{%- assign tools = site.data.tool_and_resource_list | where:"related_pages", include.tag %}
|
2
|
-
{%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.
|
2
|
+
{%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %}
|
3
3
|
{%- unless tools.size == 0 %}
|
4
4
|
{%- if include.tag %}
|
5
5
|
<h2>Relevant tools and resources</h2>
|
6
6
|
{%- endif %}
|
7
7
|
<a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
|
8
8
|
<div class="table-responsive mt-4 mb-5">
|
9
|
-
<table
|
9
|
+
<table class="tooltable table display">
|
10
10
|
<thead>
|
11
11
|
<tr class="text-nowrap">
|
12
12
|
<th>Tool or resource {%- if include.tag -%}
|
@@ -26,12 +26,12 @@
|
|
26
26
|
<tbody>
|
27
27
|
{%- for tool in tools | sort %}
|
28
28
|
<tr>
|
29
|
-
{%- assign total_county_tools = 0 %}
|
30
29
|
{%- assign instances_tool = 0 %}
|
30
|
+
{%- assign total_county_tools = 0 %}
|
31
31
|
{%- assign query = "related_pages." | append: page.type %}
|
32
32
|
{%- for country_page in country_pages %}
|
33
|
-
{%- assign instance_matches = country_page.
|
34
|
-
{%- assign tool_matches = country_page.
|
33
|
+
{%- assign instance_matches = country_page.national_resources | where: "instance_of", tool.name | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
|
34
|
+
{%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
|
35
35
|
{%- unless tool_matches.size == 0 %}
|
36
36
|
{%- assign total_county_tools = total_county_tools | plus: tool_matches.size %}
|
37
37
|
{%- endunless %}
|
@@ -39,17 +39,27 @@
|
|
39
39
|
{%- assign instances_tool = instances_tool | plus: instance_matches.size %}
|
40
40
|
{%- endunless %}
|
41
41
|
{%- endfor %}
|
42
|
-
{% if tool.
|
43
|
-
<td><a href="{{tool.
|
42
|
+
{% if tool.url %}
|
43
|
+
<td><a href="{{tool.url}}">{{tool.name}}</a></td>
|
44
44
|
{%- else %}
|
45
45
|
<td>{{tool.name}}</td>
|
46
46
|
{%- endif %}
|
47
47
|
<td>{{tool.description}}
|
48
|
-
{%-
|
49
|
-
<
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
{%- if instances_tool != 0 and total_county_tools != 0 and include.tag != nil or tool.instance_of or tool.how_to_access %}
|
49
|
+
<div class="d-block mt-1">
|
50
|
+
{%- if tool.instance_of %}
|
51
|
+
<span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" title="This resource is an instance of {{tool.instance_of}}"><span class="badge text-primary border border-primary">{{tool.instance_of}}</span></span>
|
52
|
+
{%- endif %}
|
53
|
+
{%- if tool.how_to_access %}
|
54
|
+
<span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" title="{{tool.how_to_access}}"><span class="badge text-primary border border-primary"> <i class="fa-solid fa-key"></i></span></span>
|
55
|
+
{%- endif %}
|
56
|
+
{%- unless instances_tool == 0 or total_county_tools == 0 or include.tag == nil %}
|
57
|
+
<a href="#national-resources-button">
|
58
|
+
<span class="badge text-white bg-primary"><i class="fa-solid fa-arrow-circle-down me-2"></i>Different instances available</span>
|
59
|
+
</a>
|
60
|
+
{%- endunless %}
|
61
|
+
</div>
|
62
|
+
{%- endif %}
|
53
63
|
</td>
|
54
64
|
{%- capture related_pages %}
|
55
65
|
{%- for tag in tool.related_pages %}
|
@@ -84,9 +94,9 @@
|
|
84
94
|
{%- assign hide_ids = "resource_title" %}
|
85
95
|
{%- for country_page in country_pages %}
|
86
96
|
{%- if include.tag %}
|
87
|
-
{%- assign tool_matches = country_page.
|
97
|
+
{%- assign tool_matches = country_page.national_resources| where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
|
88
98
|
{%- else %}
|
89
|
-
{%- assign tool_matches = country_page.
|
99
|
+
{%- assign tool_matches = country_page.national_resources %}
|
90
100
|
{%- endif %}
|
91
101
|
{%- for tool in tool_matches %}
|
92
102
|
{%- assign tool_id = tool.name | slugify %}
|
@@ -110,7 +120,7 @@
|
|
110
120
|
{%- if tool.related_pages %}
|
111
121
|
{%- capture related_pages %}
|
112
122
|
{%- for section in tool.related_pages %}
|
113
|
-
{%- unless section.size == 0 %}
|
123
|
+
{%- unless section[1].size == 0 %}
|
114
124
|
{%- for tag in section[1] %}
|
115
125
|
{%- unless tag == page.page_id %}
|
116
126
|
{%- assign related_page = site.pages | where:"page_id",tag | first %}
|
@@ -124,7 +134,20 @@
|
|
124
134
|
{%- else %}
|
125
135
|
<td></td>
|
126
136
|
{%- endif %}
|
127
|
-
<td
|
137
|
+
<td>
|
138
|
+
{%- if tool.registry.biotools %}
|
139
|
+
<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>
|
140
|
+
{%- endif %}
|
141
|
+
{%- if tool.registry.fairsharing %}
|
142
|
+
<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>
|
143
|
+
{%- endif %}
|
144
|
+
{%- if tool.registry.fairsharing-coll %}
|
145
|
+
<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>
|
146
|
+
{%- endif %}
|
147
|
+
{%- if tool.registry.tess %}
|
148
|
+
<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>
|
149
|
+
{%- endif %}
|
150
|
+
</td>
|
128
151
|
</tr>
|
129
152
|
{%- endfor %}
|
130
153
|
{%- endfor %}
|
@@ -1,14 +1,21 @@
|
|
1
|
-
{%- if page.
|
2
|
-
{%- assign tools = page.
|
3
|
-
<h2>
|
4
|
-
<
|
1
|
+
{%- if page.national_resources %}
|
2
|
+
{%- assign tools = page.national_resources %}
|
3
|
+
<h2>Tools and resources</h2>
|
4
|
+
<h3>Tailored to users in {{page.title}}</h3>
|
5
|
+
<p>Developed and/or deployed by institutions and organisations in {{page.title}}.</p>
|
6
|
+
<a class="visually-hidden-focusable" href='#skip-tool-table-1'>Skip tool table</a>
|
5
7
|
<div class="table-responsive mt-4 mb-5">
|
6
|
-
<table
|
8
|
+
<table class="tooltable table display">
|
7
9
|
<thead>
|
8
10
|
<tr class="text-nowrap">
|
9
11
|
<th>Resource</th>
|
10
12
|
<th>Description</th>
|
11
13
|
<th>Related pages</th>
|
14
|
+
<th>Registry
|
15
|
+
<a data-bs-toggle="tooltip" data-bs-original-title="Links to related information in ELIXIR registries: related policies and standards in FAIRsharing, scientific and technical descriptions of the resource in bio.tools, and related training in TeSS.">
|
16
|
+
<i class="fa-solid fa-info-circle"></i>
|
17
|
+
</a>
|
18
|
+
</th>
|
12
19
|
</tr>
|
13
20
|
</thead>
|
14
21
|
<tbody>
|
@@ -33,7 +40,7 @@
|
|
33
40
|
{%- if tool.related_pages %}
|
34
41
|
{%- capture related_pages %}
|
35
42
|
{%- for section in tool.related_pages %}
|
36
|
-
{%- unless section.size == 0 %}
|
43
|
+
{%- unless section[1].size == 0 %}
|
37
44
|
{%- for tag in section[1] %}
|
38
45
|
{%- unless tag == page.page_id %}
|
39
46
|
{%- assign related_page = site.pages | where:"page_id",tag | first %}
|
@@ -47,11 +54,93 @@
|
|
47
54
|
{%- else %}
|
48
55
|
<td></td>
|
49
56
|
{%- endif %}
|
57
|
+
<td>
|
58
|
+
{%- if tool.registry.biotools %}
|
59
|
+
<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>
|
60
|
+
{%- endif %}
|
61
|
+
{%- if tool.registry.fairsharing %}
|
62
|
+
<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>
|
63
|
+
{%- endif %}
|
64
|
+
{%- if tool.registry.fairsharing-coll %}
|
65
|
+
<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>
|
66
|
+
{%- endif %}
|
67
|
+
{%- if tool.registry.tess %}
|
68
|
+
<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>
|
69
|
+
{%- endif %}
|
70
|
+
</td>
|
50
71
|
</tr>
|
51
72
|
{%- endfor %}
|
52
73
|
</tbody>
|
53
74
|
</table>
|
54
75
|
</div>
|
55
|
-
<div id="skip-tool-table"></div>
|
56
|
-
|
76
|
+
<div id="skip-tool-table-1"></div>
|
57
77
|
{%- endif %}
|
78
|
+
{%- if page.ref_to_main_resources %}
|
79
|
+
{%- assign tool_names = page.ref_to_main_resources %}
|
80
|
+
<h3>{{page.title}} contributes to</h3>
|
81
|
+
<p>Institutions and organisations in {{page.title}} are actively involved in the development of the following tools and resources.</p>
|
82
|
+
<a class="visually-hidden-focusable" href='#skip-tool-table-2'>Skip tool table</a>
|
83
|
+
<div class="table-responsive mt-4 mb-5">
|
84
|
+
<table class="tooltable table display">
|
85
|
+
<thead>
|
86
|
+
<tr class="text-nowrap">
|
87
|
+
<th>Resource</th>
|
88
|
+
<th>Description</th>
|
89
|
+
<th>Related pages</th>
|
90
|
+
<th>Registry
|
91
|
+
<a data-bs-toggle="tooltip" data-bs-original-title="Links to related information in ELIXIR registries: related policies and standards in FAIRsharing, scientific and technical descriptions of the resource in bio.tools, and related training in TeSS.">
|
92
|
+
<i class="fa-solid fa-info-circle"></i>
|
93
|
+
</a>
|
94
|
+
</th>
|
95
|
+
</tr>
|
96
|
+
</thead>
|
97
|
+
<tbody>
|
98
|
+
{%- for tool_name in tool_names | sort %}
|
99
|
+
{%- assign tool = site.data.tool_and_resource_list | where:"name", tool_name | first %}
|
100
|
+
<tr>
|
101
|
+
{% if tool.url %}
|
102
|
+
<td><a href="{{tool.url}}">{{tool.name}}</a>
|
103
|
+
</td>
|
104
|
+
{%- else %}
|
105
|
+
<td>{{tool.name}}</td>
|
106
|
+
{%- endif %}
|
107
|
+
<td>{{tool.description | markdownify }}
|
108
|
+
{%- if tool.instance_of or tool.how_to_access %}
|
109
|
+
<div class="d-block mt-1">
|
110
|
+
<span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" title="This resource is an instance of {{tool.instance_of}}"><span class="badge text-primary border border-primary">{{tool.instance_of}}</span></span>
|
111
|
+
{%- if tool.how_to_access %}
|
112
|
+
<span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" title="{{tool.how_to_access}}"><span class="badge text-primary border border-primary"> <i class="fa-solid fa-key"></i></span></span>
|
113
|
+
{%- endif %}
|
114
|
+
</div>
|
115
|
+
{%- endif %}
|
116
|
+
</td>
|
117
|
+
{%- capture related_pages %}
|
118
|
+
{%- for tag in tool.related_pages %}
|
119
|
+
{%- unless tag == page.page_id %}
|
120
|
+
{%- assign related_page = site.pages | where:"page_id",tag | first %}
|
121
|
+
<a href="{{related_page.url | relative_url }}"><span class="badge default-badge">{{related_page.title}}</span></a>
|
122
|
+
{%- endunless %}
|
123
|
+
{%- endfor %}
|
124
|
+
{%- endcapture %}
|
125
|
+
<td>{{related_pages}}</td>
|
126
|
+
<td>
|
127
|
+
{%- if tool.registry.biotools %}
|
128
|
+
<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>
|
129
|
+
{%- endif %}
|
130
|
+
{%- if tool.registry.fairsharing %}
|
131
|
+
<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>
|
132
|
+
{%- endif %}
|
133
|
+
{%- if tool.registry.fairsharing-coll %}
|
134
|
+
<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>
|
135
|
+
{%- endif %}
|
136
|
+
{%- if tool.registry.tess %}
|
137
|
+
<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>
|
138
|
+
{%- endif %}
|
139
|
+
</td>
|
140
|
+
</tr>
|
141
|
+
{%- endfor %}
|
142
|
+
</tbody>
|
143
|
+
</table>
|
144
|
+
</div>
|
145
|
+
<div id="skip-tool-table-2"></div>
|
146
|
+
{%- endif %}
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<div class="col">
|
38
38
|
<div class="input-group">
|
39
39
|
<span class="input-group-text" id="search-label">Search</span>
|
40
|
-
<input type="text" id="title-search" class="form-control" onkeyup="
|
40
|
+
<input type="text" id="title-search" class="form-control" onkeyup="StartSearch();" placeholder="Type here..." aria-label="{{page.type | replace: '_', ' ' |}}" aria-describedby="search-label">
|
41
41
|
<button class="btn btn-primary" title="Button to clear search" type="button" id="clearsearch">
|
42
42
|
<i class="fa-solid fa-backspace"></i>
|
43
43
|
</button>
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<div class="col" data-affiliations="{{affiliations_classes}}" related-pages="{{related_pages_classes}}">
|
64
64
|
<div class="card h-100">
|
65
65
|
<div class="card-header">
|
66
|
-
<a aria-label="Go to the {{current_page.title}} page" href="{{ current_page.url | relative_url }}">
|
66
|
+
<a class="stretched-link" aria-label="Go to the {{current_page.title}} page" href="{{ current_page.url | relative_url }}">
|
67
67
|
<h3 class="card-title m-0">{{current_page.title}}</h3>
|
68
68
|
</a>
|
69
69
|
</div>
|
@@ -71,21 +71,64 @@
|
|
71
71
|
{%- if current_page.description %}
|
72
72
|
<p class="card-text">{{ current_page.description}}</p>
|
73
73
|
{%- endif %}
|
74
|
+
</div>
|
75
|
+
<div class="px-3 pb-3 d-flex justify-content-between">
|
74
76
|
{%- if current_page.related_pages %}
|
77
|
+
{%- assign nonempty = false %}
|
75
78
|
{%- for section in current_page.related_pages %}
|
76
|
-
{%- unless section[1] ==
|
77
|
-
|
78
|
-
<span><b><small>{{ section[0] | replace: "_", " " | capitalize }}: </small></b></span>
|
79
|
-
{%- for page_id in section[1] %}
|
80
|
-
{%- assign section_pages = site.pages | where:"type", section[0] %}
|
81
|
-
{%- assign metadata = section_pages | where:"page_id", page_id %}
|
82
|
-
{%- for page_hit in metadata %}
|
83
|
-
<a href="{{ page_hit.url | relative_url }}"><span class="badge">{{page_hit.title | truncate: 20 }}</span></a>
|
84
|
-
{%- endfor %}
|
85
|
-
{%- endfor %}
|
86
|
-
</div>
|
79
|
+
{%- unless section[1].size == 0 %}
|
80
|
+
{%- assign nonempty = true %}
|
87
81
|
{%- endunless %}
|
88
82
|
{%- endfor %}
|
83
|
+
{%- if nonempty %}
|
84
|
+
<div class="dropdown">
|
85
|
+
<button class="btn btn-sm dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
86
|
+
Related pages
|
87
|
+
</button>
|
88
|
+
<ul class="dropdown-menu px-2 py-0 border-0 shadow">
|
89
|
+
{%- for section in current_page.related_pages %}
|
90
|
+
{%- unless section[1].size == 0 %}
|
91
|
+
<li><h6 class="dropdown-header">{{ section[0] | replace: "_", " " | capitalize }}</h6></li>
|
92
|
+
{%- for page_id in section[1] %}
|
93
|
+
{%- assign section_pages = site.pages | where:"type", section[0] %}
|
94
|
+
{%- assign metadata = section_pages | where:"page_id", page_id %}
|
95
|
+
{%- for page_hit in metadata %}
|
96
|
+
<li><a class="dropdown-item rounded" href="{{ page_hit.url | relative_url }}">{{page_hit.title }}</a></li>
|
97
|
+
{%- endfor %}
|
98
|
+
{%- endfor %}
|
99
|
+
{%- endunless %}
|
100
|
+
{%- endfor %}
|
101
|
+
</ul>
|
102
|
+
</div>
|
103
|
+
{%- endif %}
|
104
|
+
{%- endif %}
|
105
|
+
{%- if current_page.dsw or current_page.faircookbook %}
|
106
|
+
<div class="btn-group btn-group-sm" role="group">
|
107
|
+
{%- if current_page.faircookbook %}
|
108
|
+
<div class="btn-group btn-group-sm" role="group">
|
109
|
+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
110
|
+
<img alt="faircookbook logo" src="{{ 'assets/img/fairplus_compact_logo.svg' | relative_url }}">
|
111
|
+
</button>
|
112
|
+
<ul class="dropdown-menu px-2 py-0 border-0 shadow">
|
113
|
+
{%- for item in current_page.faircookbook %}
|
114
|
+
<li><a class="dropdown-item rounded" href="{{ item.url }}">{{item.name }}</a></li>
|
115
|
+
{%- endfor %}
|
116
|
+
</ul>
|
117
|
+
</div>
|
118
|
+
{%- endif %}
|
119
|
+
{%- if current_page.dsw %}
|
120
|
+
<div class="btn-group btn-group-sm" role="group">
|
121
|
+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
122
|
+
<img alt="DSW logo" src="{{ 'assets/img/dsw_compact_logo.svg' | relative_url }}">
|
123
|
+
</button>
|
124
|
+
<ul class="dropdown-menu px-2 py-0 border-0 shadow">
|
125
|
+
{%- for item in current_page.dsw %}
|
126
|
+
<li><a class="dropdown-item rounded" href="{{ site.dsw_deep_link_prefix | append: item.uuid }}">{{item.name }}</a></li>
|
127
|
+
{%- endfor %}
|
128
|
+
</ul>
|
129
|
+
</div>
|
130
|
+
{%- endif %}
|
131
|
+
</div>
|
89
132
|
{%- endif %}
|
90
133
|
</div>
|
91
134
|
{%- if current_page.affiliations %}
|
@@ -100,7 +143,7 @@
|
|
100
143
|
{%- if affiliation.size == 2 %}
|
101
144
|
{%- assign country_link = site.pages | where:"country_code",country | first %}
|
102
145
|
{%- if country_link %}
|
103
|
-
<a role="button" href="{{country_link.url}}" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm bg-white hover-primary">
|
146
|
+
<a role="button" href="{{'country_link.url' | relative_url}}" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm bg-white hover-primary">
|
104
147
|
{%- else %}
|
105
148
|
<a role="button" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm bg-white hover-primary disabled" aria-disabled="true">
|
106
149
|
{%- endif %}
|
@@ -171,7 +214,7 @@
|
|
171
214
|
* Search cards
|
172
215
|
*/
|
173
216
|
|
174
|
-
var
|
217
|
+
var StartSearch = () => {
|
175
218
|
const input = document.getElementById("title-search");
|
176
219
|
if (input) {
|
177
220
|
const cols = document.querySelectorAll(".navigation-tiles .col");
|
data/_includes/topnav.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<header>
|
3
3
|
<a class="visually-hidden-focusable" href='#main'>Skip to content</a>
|
4
4
|
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
|
5
|
-
<nav class="navbar navbar-expand-lg mb-3 mb-lg-5">
|
5
|
+
<nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5">
|
6
6
|
<div class="container">
|
7
7
|
<a class="navbar-brand" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ site.theme_variables.topnav.brand_logo | default: 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
|
8
8
|
<button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
@@ -55,6 +55,7 @@
|
|
55
55
|
<a class="nav-link ps-2 d-flex align-items-center" href="{{site.github.repository_url}}"><i class="fa-brands fa-github me-2"></i>{{site.theme_variables.git_host | default: 'GitHub' }}</a>
|
56
56
|
</li>
|
57
57
|
{%- endif %}
|
58
|
+
{%- unless include.search == false %}
|
58
59
|
<!--start search-->
|
59
60
|
<li class="nav-item ms-0 ms-lg-3 my-2 my-lg-0">
|
60
61
|
<div class="position-relative">
|
@@ -65,6 +66,7 @@
|
|
65
66
|
</div>
|
66
67
|
</li>
|
67
68
|
<!--end search-->
|
69
|
+
{%- endunless %}
|
68
70
|
</ul>
|
69
71
|
</div>
|
70
72
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
|
2
2
|
<div class="table-responsive mt-4 mb-5">
|
3
|
-
<table
|
3
|
+
<table class="trainingtable table display">
|
4
4
|
<thead>
|
5
5
|
<tr class="text-nowrap">
|
6
6
|
<th>Name
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Grid v5.1.
|
2
|
+
* Bootstrap Grid v5.1.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Reboot v5.1.
|
2
|
+
* Bootstrap Reboot v5.1.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|