Skip to content

Commit eec5c7c

Browse files
committed
Add conditional for displaying conversion utility section
1 parent 9ebdd06 commit eec5c7c

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

content/geoip/docs/databases/city-and-country.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ would be `GeoIP2-City-Blocks-IPv4.csv`.
8383
[City subset by continent databases](https://www.maxmind.com/en/geoip2-city-database-by-continent)
8484
blocks files have the same columns as the City database.
8585

86-
{{< csv-block-table isEnterprise="false" >}}
86+
{{< csv-block-table isEnterprise="false" includeUtility="true">}}
8787

8888
{{< snippet "snippets/coordinates-warning.md" >}}
8989

content/geoip/docs/databases/enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ There are two CSV files for network blocks, one each for IPv4 and IPv6 blocks.
8080
These files are named `GeoIP2-Enterprise-Blocks-IPv4.csv` and
8181
`GeoIP2-Enterprise-Blocks-IPv6.csv` respectively.
8282

83-
{{< csv-block-table isEnterprise="true" >}}
83+
{{< csv-block-table isEnterprise="true" includeUtility="true">}}
8484

8585
{{< snippet "snippets/coordinates-warning.md" >}}
8686

content/geoip/geolite-on-snowflake.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ particular dataset you are querying:
3434

3535
### Geolocation data
3636

37-
{{< csv-block-table isEnterprise="false" >}}
37+
{{< csv-block-table isEnterprise="false" includeUtility="false">}}
3838

3939
{{< snippet "snippets/coordinates-warning.md" >}}
4040

layouts/shortcodes/csv-block-table.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ $isEnterprise := .Get "isEnterprise" }}
2+
{{ $includeUtility := .Get "includeUtility" }}
23
<div class="table">
34
<table>
45
<tbody>
@@ -13,6 +14,7 @@
1314
<tr>
1415
<td>network</td>
1516
<td>IP network as a string</td>
17+
{{ if eq $includeUtility "true" }}
1618
<td>
1719
This is the IPv4 or IPv6 network in CIDR format such as
1820
&quot;2.21.92.0/29&quot; or &quot;2001:4b0::/80&quot;. We offer a
@@ -26,6 +28,13 @@
2628
</a>
2729
for details.
2830
</td>
31+
{{ end }}
32+
{{ if eq $includeUtility "false" }}
33+
<td>
34+
This is the IPv4 or IPv6 network in CIDR format such as
35+
&quot;2.21.92.0/29&quot; or &quot;2001:4b0::/80&quot;.
36+
</td>
37+
{{ end }}
2938
{{ if eq $isEnterprise "false" }}
3039
<td>
3140
<span class="tag tag--checked">Country</span>

0 commit comments

Comments
 (0)