Skip to content

Commit d8d1399

Browse files
committed
add resource-table-category-new.html
1 parent 6291595 commit d8d1399

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{%- if include.tag %}
2+
{%- assign tools = site.data.tool_and_resource_list | add_related_pages | where:"related_pages", include.tag | sort_natural: "name" %}
3+
{%- else %}
4+
{%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %}
5+
{%- endif %}
6+
{%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %}
7+
{%- unless tools.size == 0 or tools == nil %}
8+
<a class="visually-hidden-focusable" href='#skip-tool-table'>Skip tool table</a>
9+
<div class="table-responsive mt-4 mb-5">
10+
<table class="tooltable table display">
11+
<thead>
12+
<tr class="text-nowrap">
13+
<th>Resource</th>
14+
<th>Description</th>
15+
<th class="resource-type">Type</th>
16+
</tr>
17+
</thead>
18+
<tbody>
19+
{%- for tool in tools %}
20+
<tr>
21+
{% if tool.URL %}
22+
<td><a href="{{tool.URL}}">{{tool.Title}}</a></td>
23+
{%- else %}
24+
<td>{{tool.Title}}</td>
25+
{%- endif %}
26+
<td>{{tool.Description}}</td>
27+
<td>
28+
{% if tool.Type %}
29+
{%- for type in tool.Type %}
30+
<button class="btn btn-light badge border border-dark text-dark mb-2 text-wrap text-center topic-badge">
31+
{{type}}
32+
</button>
33+
{%- endfor %}
34+
{%- endif %}
35+
</td>
36+
</tr>
37+
{%- endfor %}
38+
</tbody>
39+
</table>
40+
</div>
41+
{%- endunless %}
42+
<div id="skip-tool-table"></div>

0 commit comments

Comments
 (0)