elixir-toolkit-theme 2.5.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0553b71037c2197c776b722eff59043a34f177d02d7f35c3226ebe85928110b6
4
- data.tar.gz: 349222ffe25df04336fd00f61fda6321f55d8fbca9f11fb165c6b98854a5e4f6
3
+ metadata.gz: 4df02358a1652000ceb9b7a533633a3a8e8d13adf360cf24ac16b8449656c065
4
+ data.tar.gz: c40220fd4df7b25b67dae45c4929dd0a60307b9c201bbebefa02667c4a88d9fe
5
5
  SHA512:
6
- metadata.gz: 5fdb6f0ac41e2672088928d0b2aeadf45aa5cad8d95a218e3cae5032409b71a63d2f37d48688e8f8b7fc1e16d8a1636797335a53618b5da01da892bff0c7e320
7
- data.tar.gz: c79fea0888cb3a58ec21586e892d968fd0c1c41e4aec58c41b30cfa82c16c586d391c6ccc6d124ef1619d022618aaf9e56a22dd9256bc72d6301beda32ce6f79
6
+ metadata.gz: a80a7bfde86d9da466a492da92426c5d6ad0e80def5c62bfcfcad9e1e43654b1997e7a845ca42b0ffaec0e4d3f6b047a264b23f36f77a9b6ccb0ad1db919edf5
7
+ data.tar.gz: c8006541b91f6921a7251376e07ee51c52ab731b4fe6672e986648dcc433bdf9cab1a2cc1667fb9a85a0867f4158c7d0b5879c3c663b00a568e7e49b820e27eb
data/README.md CHANGED
@@ -37,7 +37,7 @@ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
37
37
  You can lock it onto a specific version like using:
38
38
 
39
39
  ```yaml
40
- remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@1.25.0
40
+ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@2.5.0
41
41
  ```
42
42
 
43
43
  ### Using Ruby Gems (alternative)
@@ -50,7 +50,7 @@ gem "elixir-toolkit-theme"
50
50
  You can lock it onto a specific version like this:
51
51
 
52
52
  ```ruby
53
- gem "elixir-toolkit-theme", "~> 1.25.0"
53
+ gem "elixir-toolkit-theme", "~> 2.5.0"
54
54
  ```
55
55
 
56
56
  And add this line to your Jekyll site's `_config.yml`:
@@ -64,9 +64,11 @@ theme: elixir-toolkit-theme
64
64
  ### Via GitHub Actions
65
65
 
66
66
  1. Make sure you have a GitHub workflow file setup similar to the one in this repo at [.github/workflows/jekyll.yml](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme/blob/main/.github/workflows/jekyll.yml).
67
-
68
- 2. Go to Settings > Pages and enable GitHub Actions as a source
69
- 3. Go to Environments > github-pages and remove the rule under Deployment branches if you want to deploy other branches than master or main via Workflow Dispatch (manually triggered action)
67
+ 2. Go to Settings > Actions and enable Allow all actions and reusable workflows
68
+ 3. Got to the Actions tab of the repository and trust the workflows to run.
69
+ 4. Go to Settings > Pages and enable GitHub Actions as a source
70
+ 5. Go to Environments > github-pages and remove the rule under Deployment branches if you want to deploy other branches than master or main via Workflow Dispatch (manually triggered action)
71
+ 6. Trigger the workflow by pushing a change to main or manually trigger the actions within the Actions tab of the repository.
70
72
 
71
73
  ### Via GitHub Pages
72
74
 
@@ -1,5 +1,5 @@
1
1
  {%- if page.contributors and page.contributors.size != 0 %}
2
- <span class="d-block h2-like fs-2">{{site.theme_variables.headings.more-information-tiles | default: 'Contributors' }}</span>
2
+ <span class="d-block h2-like fs-2">{{site.theme_variables.contributor-minitiles-page | default: 'Contributors' }}</span>
3
3
  <div class="p-4 rounded mt-4 page-contributors d-flex flex-wrap gap-2">
4
4
  {%- assign contributors = site.data.CONTRIBUTORS %}
5
5
  {%- assign page_contributors = page.contributors %}
@@ -1,8 +1,8 @@
1
- {%- if page.training %}
2
- {%- assign actual_training = nil %}
3
- {%- for training in page.training %}
4
- {%- if training.name %}
5
- {%- assign actual_training = 1 %}
1
+ {%- if page.fairsharing %}
2
+ {%- assign actual_fairsharing = nil %}
3
+ {%- for standard in page.fairsharing %}
4
+ {%- if standard.name %}
5
+ {%- assign actual_fairsharing = 1 %}
6
6
  {%- endif %}
7
7
  {%- endfor %}
8
8
  {%- endif %}
@@ -14,14 +14,6 @@
14
14
  {%- endif %}
15
15
  {%- endfor %}
16
16
  {%- endif %}
17
- {%- if page.fairsharing %}
18
- {%- assign actual_fairsharing = nil %}
19
- {%- for standard in page.fairsharing %}
20
- {%- if standard.name %}
21
- {%- assign actual_fairsharing = 1 %}
22
- {%- endif %}
23
- {%- endfor %}
24
- {%- endif %}
25
17
  {%- if page.dsw %}
26
18
  {%- assign actual_dsw = nil %}
27
19
  {%- for question in page.dsw %}
@@ -38,115 +30,151 @@
38
30
  {%- endif %}
39
31
  {%- endfor %}
40
32
  {%- endif %}
41
- {%- if actual_training or actual_faircookbook or actual_fairsharing or actual_dsw or actual_rdmkit %}
42
- <!-- More information -->
43
- <h2>{{site.theme_variables.headings.more-information-tiles | default: 'More information' }}</h2>
33
+ {%- if page.training %}
34
+ {%- assign actual_training = nil %}
35
+ {%- for training in page.training %}
36
+ {%- if training.name %}
37
+ {%- assign actual_training = 1 %}
38
+ {%- endif %}
39
+ {%- endfor %}
40
+ {%- endif %}
41
+ {%- if page.page_id %}
42
+ {%- assign tools = site.data.tool_and_resource_list | where:"related_pages", page.page_id %}
43
+ {%- unless tools.size == 0 or tools == nil %}
44
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
45
+ {%- assign actual_tools = 1 %}
46
+ {%- endif %}
47
+ {%- endunless %}
48
+ {%- endif %}
49
+ {%- if actual_fairsharing or actual_faircookbook or actual_dsw or actual_rdmkit or actual_dsw or actual_training or actual_tools %}
50
+ <h2 class="mb-4">{{site.theme_variables.headings.more-information-tiles | default: 'More information' }}</h2>
51
+ {%- endif %}
44
52
 
45
- <div class="row row-cols-1 row-cols-md-2 g-4 mt-2">
46
- {%- if actual_training %}
47
- <!-- Training -->
48
- <div class="col">
49
- <div class="card h-100 info-card">
50
- <div class="card-header fw-bold">Training</div>
51
- <div class="card-body">
52
- <div class="d-grid gap-2">
53
- {%- for training in page.training %}
54
- <a class="btn bg-white hover-primary text-start d-block" href="{{ training.url }}">
55
- <div class="row g-1">
56
- <div class="col-2 d-flex align-items-center justify-content-center">
57
- {%- assign registry = training.registry | downcase %}
58
- {%- if registry == "tess" %}
59
- <img alt="TeSS logo" class="img-fluid" src="{{ 'assets/img/tess_logo.svg' | relative_url }}">
60
- {%- elsif registry == "zenodo" %}
61
- <img alt="Zenodo logo" class="img-fluid" src="{{ 'assets/img/zenodo_logo.svg' | relative_url }}">
62
- {%- elsif registry == "youtube" %}
63
- <img alt="YouTube logo" class="img-fluid" src="{{ 'assets/img/youtube_logo.svg' | relative_url }}">
64
- {%- elsif registry == "carpentries" %}
65
- <img alt="Carpentries" class="img-fluid" src="{{ 'assets/img/carpentries_logo.svg' | relative_url }}">
66
- {%- elsif registry == "github" %}
67
- <i class="fa-brands fa-github text-dark fa-2xl my-3"></i>
68
- {%- else %}
69
- <i class="fa-solid fa-external-link-alt text-primary fa-lg my-3"></i>
70
- {%- endif %}
71
- </div>
72
- <div class="col-10 d-flex align-items-center">
73
- <span class="text-start">{{training.name}}</span>
74
- </div>
75
- </div>
76
- </a>
77
- {%- endfor %}
78
- </div>
53
+ {%- if actual_fairsharing %}
54
+ <!-- FAIRsharing -->
55
+ <a data-bs-toggle="collapse" href="#fairsharing_collapse" role="button" aria-expanded="false" aria-controls="fairsharing_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
56
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to FAIRsharing</h3><i class="fa-solid fa-chevron-down fs-5"></i>
57
+ </a>
58
+ <div class="collapse info-card" id="fairsharing_collapse">
59
+ <div class="mt-2 p-3 pb-5">
60
+ <img alt="FAIRsharing logo" class="img-fluid info-logo mb-4" src="{{ 'assets/img/fairsharing_logo.svg' | relative_url }}">
61
+ <p><a href="https://fairsharing.org/">FAIRsharing</a> is a curated, informative and educational resource on data and metadata standards, inter-related to databases and data policies.</p>
62
+ <div class="row row-cols-1 row-cols-md-2 gy-2 gx-4 info-links">
63
+ {%- for standard in page.fairsharing %}
64
+ <div class="col">
65
+ <a class="btn text-start d-flex align-items-center h-100" href="{{ standard.url }}">
66
+ {{standard.name}}
67
+ </a>
79
68
  </div>
69
+ {%- endfor %}
80
70
  </div>
81
71
  </div>
82
- {%- endif %}
83
- {%- if actual_faircookbook or actual_fairsharing or actual_dsw or actual_rdmkit %}
84
- <!-- FAIR Cookbook and FAIRsharing -->
85
- <div class="col">
86
- <div class="card h-100 info-card">
87
- <div class="card-header fw-bold">Links to other ELIXIR resources</div>
88
- <div class="card-body">
89
- <div class="d-grid gap-2">
90
- {%- if actual_faircookbook %}
91
- {%- for recipe in page.faircookbook %}
92
- <a class="btn bg-white hover-primary text-start d-block" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRCookbook" href="{{ recipe.url }}">
93
- <div class="row g-1">
94
- <div class="col-2 d-flex align-items-center justify-content-center">
95
- <img alt="FAIRCookbook logo" class="img-fluid" src="{{ 'assets/img/fairplus_compact_logo.svg' | relative_url }}">
96
- </div>
97
- <div class="col-10 d-flex align-items-center">
98
- <span class="text-start">Step-by-step process for: {{recipe.name}}</span>
99
- </div>
100
- </div>
101
- </a>
102
- {%- endfor %}
103
- {%- endif %}
104
- {%- if actual_dsw %}
105
- {%- for question in page.dsw %}
106
- <a class="btn bg-white hover-primary text-start d-block" data-bs-toggle="tooltip" data-bs-placement="right" title="DSW" href="{{ site.dsw_deep_link_prefix | append: question.uuid }}">
107
- <div class="row g-1">
108
- <div class="col-2 d-flex align-items-center justify-content-center">
109
- <img alt="DSW logo" class="img-fluid" src="{{ 'assets/img/dsw_compact_logo.svg' | relative_url }}">
110
- </div>
111
- <div class="col-10 d-flex align-items-center">
112
- <span class="text-start">Support for DMP on: {{question.name}}</span>
113
- </div>
114
- </div>
115
- </a>
116
- {%- endfor %}
117
- {%- endif %}
118
- {%- if actual_fairsharing %}
119
- {%- for standard in page.fairsharing %}
120
- <a class="btn bg-white hover-primary text-start d-block" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRsharing" href="{{ standard.url }}">
121
- <div class="row g-1">
122
- <div class="col-2 d-flex align-items-center justify-content-center">
123
- <img alt="FAIRsharing logo" class="img-fluid" src="{{ 'assets/img/fairsharing_compact_logo.svg' | relative_url }}">
124
- </div>
125
- <div class="col-10 d-flex align-items-center">
126
- <span class="text-start">FAIRsharing collection about: {{standard.name}}</span>
127
- </div>
72
+ </div>
73
+ {%- endif %}
74
+
75
+ {%- if actual_faircookbook %}
76
+ <!-- FAIR Cookbook -->
77
+ <a data-bs-toggle="collapse" href="#faircookbook_collapse" role="button" aria-expanded="false" aria-controls="faircookbook_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
78
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to FAIR Cookbook</h3><i class="fa-solid fa-chevron-down fs-5"></i>
79
+ </a>
80
+ <div class="collapse info-card" id="faircookbook_collapse">
81
+ <div class="mt-2 p-3 pb-5">
82
+ <img alt="FAIR Cookbook logo" class="img-fluid info-logo mb-4" src="{{ 'assets/img/faircookbook_logo.svg' | relative_url }}">
83
+ <p><a href="https://faircookbook.elixir-europe.org/">FAIR Cookbook</a> is an online, open and live resource for the Life Sciences with recipes that help you to make and keep data Findable, Accessible, Interoperable and Reusable; in one word FAIR.</p>
84
+ <div class="row row-cols-1 row-cols-md-2 gy-2 gx-4 info-links">
85
+ {%- for recipe in page.faircookbook %}
86
+ <div class="col">
87
+ <a class="btn text-start d-flex align-items-center h-100" href="{{ recipe.url }}">
88
+ {{recipe.name}}
89
+ </a>
90
+ </div>
91
+ {%- endfor %}
92
+ </div>
93
+ </div>
94
+ </div>
95
+ {%- endif %}
96
+
97
+ {%- if actual_dsw %}
98
+ <!-- DSW -->
99
+ <a data-bs-toggle="collapse" href="#dsw_collapse" role="button" aria-expanded="false" aria-controls="dsw_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
100
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to DSW</h3><i class="fa-solid fa-chevron-down fs-5"></i>
101
+ </a>
102
+ <div class="collapse info-card" id="dsw_collapse">
103
+ <div class="mt-2 p-3 pb-5">
104
+ <img alt="DSW logo" class="img-fluid info-logo mb-4" src="{{ 'assets/img/dsw_logo.svg' | relative_url }}">
105
+ <p>With <a href="https://ds-wizard.org/">Data Stewardship Wizard</a> (DSW), you can create, plan, collaborate, and bring your data management plans to life with a tool trusted by thousands of people worldwide — from data management pioneers, to international research institutes.</p>
106
+ <div class="row row-cols-1 row-cols-md-2 gy-2 gx-4 info-links">
107
+ {%- for question in page.dsw %}
108
+ <div class="col">
109
+ <a class="btn text-start d-flex align-items-center h-100" href="{{ site.dsw_deep_link_prefix | append: question.uuid }}">
110
+ {{question.name}}
111
+ </a>
112
+ </div>
113
+ {%- endfor %}
114
+ </div>
115
+ </div>
116
+ </div>
117
+ {%- endif %}
118
+
119
+ {%- if actual_rdmkit %}
120
+ <!-- RDMkit -->
121
+ <a data-bs-toggle="collapse" href="#rdmkit_collapse" role="button" aria-expanded="false" aria-controls="rdmkit_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
122
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to RDMkit</h3><i class="fa-solid fa-chevron-down fs-5"></i>
123
+ </a>
124
+ <div class="collapse info-card" id="rdmkit_collapse">
125
+ <div class="mt-2 p-3 pb-5">
126
+ <img alt="RDMkit logo" class="img-fluid info-logo mb-4" src="{{ 'assets/img/rdmkit_logo.svg' | relative_url }}">
127
+ <p><a href="https://rdmkit.elixir-europe.org/">RDMkit</a> is the Research Data Management toolkit for Life Sciences describing best practices and guidelines to help you make your data FAIR (Findable, Accessible, Interoperable and Reusable)</p>
128
+ <div class="row row-cols-1 row-cols-md-2 gy-2 gx-4 info-links">
129
+ {%- for rdmdoc in page.rdmkit %}
130
+ <div class="col">
131
+ <a class="btn text-start d-flex align-items-center h-100" href="{{ rdmdoc.url }}">
132
+ {{rdmdoc.name}}
133
+ </a>
134
+ </div>
135
+ {%- endfor %}
136
+ </div>
137
+ </div>
138
+ </div>
139
+ {%- endif %}
140
+
141
+
142
+ {%- if actual_training %}
143
+ <!-- Training -->
144
+ <a data-bs-toggle="collapse" href="#training_collapse" role="button" aria-expanded="false" aria-controls="training_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
145
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Training</h3><i class="fa-solid fa-chevron-down fs-5"></i>
146
+ </a>
147
+ <div class="collapse info-card" id="training_collapse">
148
+ <div class="mt-2 p-3 pb-5">
149
+ <div class="row row-cols-1 row-cols-md-2 gy-2 gx-4 info-links">
150
+ {%- for training in page.training %}
151
+ <div class="col">
152
+ <a class="btn d-grid h-100" href="{{ training.url }}">
153
+ <div class="row g-1">
154
+ <div class="col-2 d-flex align-items-center justify-content-center">
155
+ {%- assign registry = training.registry | downcase %}
156
+ {%- if registry == "tess" %}
157
+ <img alt="TeSS logo" class="img-fluid" src="{{ 'assets/img/tess_logo.svg' | relative_url }}">
158
+ {%- elsif registry == "zenodo" %}
159
+ <img alt="Zenodo logo" class="img-fluid" src="{{ 'assets/img/zenodo_logo.svg' | relative_url }}">
160
+ {%- elsif registry == "youtube" %}
161
+ <img alt="YouTube logo" class="img-fluid" src="{{ 'assets/img/youtube_logo.svg' | relative_url }}">
162
+ {%- elsif registry == "carpentries" %}
163
+ <img alt="Carpentries" class="img-fluid" src="{{ 'assets/img/carpentries_logo.svg' | relative_url }}">
164
+ {%- elsif registry == "github" %}
165
+ <i class="fa-brands fa-github text-dark fa-2xl my-3"></i>
166
+ {%- else %}
167
+ <i class="fa-solid fa-external-link-alt text-primary fa-lg my-3"></i>
168
+ {%- endif %}
128
169
  </div>
129
- </a>
130
- {%- endfor %}
131
- {%- endif %}
132
- {%- if actual_rdmkit %}
133
- {%- for rdmdoc in page.rdmkit %}
134
- <a class="btn bg-white hover-primary text-start d-block" data-bs-toggle="tooltip" data-bs-placement="right" title="RDMkit" href="{{ rdmdoc.url }}">
135
- <div class="row g-1">
136
- <div class="col-2 d-flex align-items-center justify-content-center">
137
- <img alt="RDMkit logo" class="img-fluid" src="{{ 'assets/img/rdmkit_compact_logo.svg' | relative_url }}">
138
- </div>
139
- <div class="col-10 d-flex align-items-center">
140
- <span class="text-start">Data management guidelines on: {{rdmdoc.name}}</span>
141
- </div>
170
+ <div class="col-10 d-flex align-items-center">
171
+ <span class="text-start">{{training.name}}</span>
142
172
  </div>
143
- </a>
144
- {%- endfor %}
145
- {%- endif %}
146
- </div>
173
+ </div>
174
+ </a>
147
175
  </div>
176
+ {%- endfor %}
148
177
  </div>
149
178
  </div>
150
- {%- endif %}
151
179
  </div>
152
180
  {%- endif %}
@@ -5,32 +5,38 @@
5
5
  {%- endunless %}
6
6
  {%- endfor %}
7
7
  {%- if actual_related != nil %}
8
- <!-- Read next -->
8
+ <!-- Related pages -->
9
9
  <h2>{{site.theme_variables.headings.related-pages | default: 'Related pages' }}</h2>
10
-
11
- <div class="row row-cols-1 row-cols-md-2 g-4 mt-2">
10
+ <div class="row row-cols-1 row-cols-md-2 g-4 mt-2 navigation-tiles">
12
11
  {%- if page.related_pages %}
13
- <!-- Related pages -->
14
12
  {%- for section in page.related_pages %}
15
13
  {%- unless section[1].size == 0 %}
14
+ {%- for page_id in section[1] %}
15
+ {%- assign section_pages = site.pages | where:"type", section[0] %}
16
+ {%- assign page_hit = section_pages | where:"page_id", page_id | first %}
17
+ {%- if page_hit %}
16
18
  <div class="col">
17
- <div class="card h-100 info-card">
18
- <div class="card-header fw-bold">{{ section[0] | replace: "_", " " | capitalize }}</div>
19
- <div class="card-body">
20
- <div class="d-grid gap-2">
21
- {%- for page_id in section[1] %}
22
- {%- assign section_pages = site.pages | where:"type", section[0] %}
23
- {%- assign metadata = section_pages | where:"page_id", page_id %}
24
- {%- for page_hit in metadata %}
25
- <a class="btn bg-white hover-primary text-start d-block" href="{{ page_hit.url | relative_url }}">
26
- <span>{{page_hit.title}}{% if page_hit.description %}</span><br><small class="text-muted">{{ page_hit.description }}</small>{% endif %}
27
- </a>
28
- {%- endfor %}
29
- {%- endfor %}
19
+ <div class="card h-100">
20
+ <div class="card-body d-flex flex-column">
21
+ <div class="d-flex align-items-center">
22
+ {%- if page_hit.type_img %}
23
+ <img src="{{page_hit.type_img | relative_url}}" class="type-icon me-2" alt="{{page_hit.type}} icon">
24
+ {%- endif %}
25
+ {%- if page_hit.type %}
26
+ <span class=""><small>{{page_hit.type | replace: "_", " " | capitalize }}</small></span>
27
+ {%- endif %}
30
28
  </div>
29
+ <a class="stretched-link section-title" aria-label="Go to the {{page_hit.title}} page" href="{{ page_hit.url | relative_url }}">
30
+ <b>{{page_hit.title}}</b>
31
+ </a>
32
+ {%- if page_hit.description %}
33
+ <p class="card-text">{{ page_hit.description}}</p>
34
+ {%- endif %}
31
35
  </div>
32
36
  </div>
33
37
  </div>
38
+ {%- endif %}
39
+ {%- endfor %}
34
40
  {%- endunless %}
35
41
  {%- endfor %}
36
42
  {%- endif %}
@@ -1,15 +1,23 @@
1
1
  {%- if include.tag %}
2
- {%- assign tools = site.data.tool_and_resource_list | add_related_pages | where:"related_pages", include.tag | sort_natural: "name" %}
2
+ {%- assign tools = site.data.tool_and_resource_list | add_related_pages | where:"related_pages", include.tag | sort_natural: "name" %}
3
3
  {%- else %}
4
- {%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %}
4
+ {%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %}
5
5
  {%- endif %}
6
6
  {%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %}
7
7
  {%- unless tools.size == 0 or tools == nil %}
8
8
  {%- if include.tag %}
9
- <h2>{{site.theme_variables.headings.resource-table-all | default: 'Tools and resources on this page' }}</h2>
10
- {%- endif %}
11
9
  <a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
12
- <div class="table-responsive mt-4 mb-5">
10
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
11
+ <a data-bs-toggle="collapse" href="#tools_collapse" role="button" aria-expanded="false" aria-controls="tools_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
12
+ {%- endif %}
13
+ {% if site.theme_variables.headings.resource-table-all-collapse %}<h3 class="mb-0 mt-3 flex-grow-1 text-dark">{% else %}<h2 class="h2-like fs-2">{% endif %}{{site.theme_variables.headings.resource-table-all | default: 'Tools and resources on this page' }}{% if site.theme_variables.headings.resource-table-all-collapse %}</h3>{% else % %}</h2>{% endif %}
14
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
15
+ <i class="fa-solid fa-chevron-down fs-5"></i>
16
+ </a>
17
+ <div class="collapse info-card" id="tools_collapse">
18
+ {%- endif %}
19
+ {%- endif %}
20
+ <div class="table-responsive mt-4">
13
21
  <table class="tooltable table display">
14
22
  <thead>
15
23
  <tr class="text-nowrap">
@@ -55,10 +63,10 @@
55
63
  {%- if tool.how_to_access %}
56
64
  <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>
57
65
  {%- endif %}
58
- {%- unless instances_tool == 0 or total_county_tools == 0 or include.tag == nil %}
59
- <a href="#national-resources-button">
60
- <span class="badge text-white bg-primary"><i class="fa-solid fa-arrow-circle-down me-2"></i>Different instances available</span>
61
- </a>
66
+ {%- unless instances_tool == 0 or total_county_tools == 0 or include.tag == nil %}
67
+ <!-- <a href="#national-resources-button">
68
+ <span class="badge text-white bg-primary"><i class="fa-solid fa-arrow-circle-down me-2"></i>Different instances available</span>
69
+ </a> -->
62
70
  {%- endunless %}
63
71
  </div>
64
72
  {%- endif %}
@@ -67,38 +75,72 @@
67
75
  {%- for tag in tool.related_pages %}
68
76
  {%- unless tag == page.page_id %}
69
77
  {%- assign related_page = site.pages | where:"page_id",tag | first %}
70
- <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>
71
79
  {%- endunless %}
72
80
  {%- endfor %}
73
81
  {%- endcapture %}
74
82
  <td>{{related_pages}}</td>
75
83
  <td>
76
- {%- if tool.registry.biotools %}
84
+ {%- if tool.registry.biotools and tool.registry.biotools != "NA" %}
77
85
  <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>
78
86
  {%- endif %}
79
- {%- if tool.registry.fairsharing %}
87
+ {%- if tool.registry.fairsharing and tool.registry.fairsharing != "NA" %}
80
88
  <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>
81
89
  {%- endif %}
82
- {%- if tool.registry.fairsharing-coll %}
90
+ {%- if tool.registry.fairsharing-coll and tool.registry.fairsharing-coll != "NA" %}
83
91
  <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>
84
92
  {%- endif %}
85
- {%- if tool.registry.tess %}
93
+ {%- if tool.registry.tess and tool.registry.tess != "NA" %}
86
94
  <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>
87
95
  {%- endif %}
88
- {%- if tool.registry.europmc %}
96
+ {%- if tool.registry.europmc and tool.registry.europmc != "NA" %}
89
97
  <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>
90
98
  {%- endif %}
91
99
  </td>
92
100
  </tr>
93
101
  {%- endfor %}
94
- {%- unless total_county_tools == 0 or include.tag == nil %}
95
- <tr class="collapse multi-collapse table-light" id="resource_title">
96
- <td><b>National resources</b></td>
97
- <td></td>
98
- <td></td>
99
- <td></td>
102
+ </tbody>
103
+ </table>
104
+ </div>
105
+ {%- if include.tag %}
106
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
107
+ </div>
108
+ {%- endif %}
109
+ <div id="skip-tool-table"></div>
110
+ {%- endif %}
111
+ {%- unless total_county_tools == 0 or include.tag == nil %}
112
+ {%- if include.tag %}
113
+ <a class="visually-hidden-focusable" href='#skip-nat-tool-table'>Skip national tools table</a>
114
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
115
+ <a data-bs-toggle="collapse" href="#nat_tools_collapse" role="button" aria-expanded="false" aria-controls="nat_tools_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
116
+ {%- endif %}
117
+ <h3 class="{% if site.theme_variables.headings.resource-table-all-collapse %}mb-0 mt-3 flex-grow-1 text-dark {% endif %}">National resources</h3>
118
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
119
+ <i class="fa-solid fa-chevron-down fs-5"></i>
120
+ </a>
121
+ <div class="collapse info-card" id="nat_tools_collapse">
122
+ {%- endif %}
123
+ {%- endif %}
124
+ <p class="mt-4">Tools and resources tailored to users in different countries.</p>
125
+ <div class="table-responsive mt-3">
126
+ <table class="tooltable table display" id="national-resources-button">
127
+ <thead>
128
+ <tr class="text-nowrap">
129
+ <th>Tool or resource {%- if include.tag -%}
130
+ <a data-bs-toggle="tooltip" data-bs-original-title="This is a curated list which means that not all tools or resources that exist for this topic are listed here. This is mainly because we do not intend to be a registry. In most cases you will only find back the tools or resources that are mentioned in this page.">
131
+ <i class="fa-solid fa-info-circle"></i>
132
+ </a>{%- endif %}
133
+ </th>
134
+ <th>Description</th>
135
+ <th>Related pages</th>
136
+ <th>Registry {%- if include.tag -%}
137
+ <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.">
138
+ <i class="fa-solid fa-info-circle"></i>
139
+ </a>{%- endif %}
140
+ </th>
100
141
  </tr>
101
- {%- endunless %}
142
+ </thead>
143
+ <tbody>
102
144
  {%- assign hide_ids = "resource_title" %}
103
145
  {%- for country_page in country_pages %}
104
146
  {%- if include.tag %}
@@ -109,7 +151,7 @@
109
151
  {%- for tool in tool_matches %}
110
152
  {%- assign tool_id = tool.name | slugify %}
111
153
  {%- assign hide_ids = hide_ids | append: " " | append: tool_id %}
112
- <tr {% unless include.tag==nil %} class="collapse multi-collapse" id="{{tool_id}}" {% endunless %}>
154
+ <tr>
113
155
  {% if tool.url %}
114
156
  <td><a href="{{tool.url}}">{{tool.name}}</a><a href="{{country_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{country_page.title}}"><span class="flag-icon ms-2 shadow-sm flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
115
157
  {%- else %}
@@ -135,7 +177,7 @@
135
177
  {%- for tag in section[1] %}
136
178
  {%- unless tag == page.page_id %}
137
179
  {%- assign related_page = site.pages | where:"page_id",tag | first %}
138
- <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>
139
181
  {%- endunless %}
140
182
  {%- endfor %}
141
183
  {%- endunless %}
@@ -146,19 +188,19 @@
146
188
  <td></td>
147
189
  {%- endif %}
148
190
  <td>
149
- {%- if tool.registry.biotools %}
191
+ {%- if tool.registry.biotools and tool.registry.biotools != "NA" %}
150
192
  <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>
151
193
  {%- endif %}
152
- {%- if tool.registry.fairsharing %}
194
+ {%- if tool.registry.fairsharing and tool.registry.fairsharing != "NA" %}
153
195
  <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>
154
196
  {%- endif %}
155
- {%- if tool.registry.fairsharing-coll %}
197
+ {%- if tool.registry.fairsharing-coll and tool.registry.fairsharing-coll != "NA" %}
156
198
  <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>
157
199
  {%- endif %}
158
- {%- if tool.registry.tess %}
200
+ {%- if tool.registry.tess and tool.registry.tess != "NA" %}
159
201
  <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>
160
202
  {%- endif %}
161
- {%- if tool.registry.europmc %}
203
+ {%- if tool.registry.europmc and tool.registry.europmc != "NA" %}
162
204
  <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>
163
205
  {%- endif %}
164
206
  </td>
@@ -168,10 +210,11 @@
168
210
  </tbody>
169
211
  </table>
170
212
  </div>
171
- {%- unless total_county_tools == 0 or include.tag == nil %}
172
- <a class="btn btn-primary" id="national-resources-button" data-bs-toggle="collapse" data-bs-target=".multi-collapse" role="button" aria-expanded="false" aria-controls="{{hide_ids}}">
173
- View national resources <span class="badge bg-white text-primary ms-2">{{total_county_tools}}</span>
174
- </a>
213
+ {%- if include.tag %}
214
+ {%- if site.theme_variables.headings.resource-table-all-collapse %}
215
+ </div>
216
+ {%- endif %}
217
+ <div id="skip-nat-tool-table"></div>
218
+ {%- endif %}
175
219
  {%- endunless %}
176
- <div id="skip-tool-table"></div>
177
220
  {%- endunless %}
@@ -1,11 +1,11 @@
1
1
  {%- assign allcountries = site.data.countries %}
2
2
  {%- assign except = include.except | split: ", " %}
3
- <div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} g-3 my-4 navigation-tiles">
3
+ <div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} gy-2 gx-4 my-4 navigation-tiles">
4
4
  {%- for current_page in site.pages | sorted %}
5
5
  {%- if current_page.title and current_page.search_exclude != true and current_page.type == include.type %}
6
6
  {%- unless except contains current_page.name %}
7
7
  <div class="col d-grid">
8
- <a role="button" class="btn bg-light py-4 fs-3 hover-primary" href="{{ current_page.url | relative_url }}">{{current_page.title}}{% if current_page.country_code %}<span class="flag-icon shadow-sm ms-3 flag-icon-{{current_page.country_code | downcase }}"></span>{% endif %}</a>
8
+ <a role="button" class="btn py-4 fs-3 section-title" href="{{ current_page.url | relative_url }}">{{current_page.title}}{% if current_page.country_code %}<span class="flag-icon shadow-sm ms-3 flag-icon-{{current_page.country_code | downcase }}"></span>{% endif %}</a>
9
9
  </div>
10
10
  {% endunless %}
11
11
  {%- endif %}