Skip to content

Commit 92d4a37

Browse files
authored
Merge pull request #1293 from maxmind/dallas/utility-section
Add conditional for displaying conversion utility section
2 parents a38ef37 + bb5dd6c commit 92d4a37

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
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: 16 additions & 10 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>
@@ -15,16 +16,21 @@
1516
<td>IP network as a string</td>
1617
<td>
1718
This is the IPv4 or IPv6 network in CIDR format such as
18-
&quot;2.21.92.0/29&quot; or &quot;2001:4b0::/80&quot;. We offer a
19-
utility to convert this column to start/end IPs or start/end
20-
integers. See
21-
<a
22-
href="#conversion-utility"
23-
>
24-
the conversion utility
25-
section
26-
</a>
27-
for details.
19+
&quot;2.21.92.0/29&quot; or &quot;2001:4b0::/80&quot;.
20+
{{ if eq $includeUtility "true" }}
21+
<span>
22+
We offer a
23+
utility to convert this column to start/end IPs or start/end
24+
integers. See
25+
<a
26+
href="#conversion-utility"
27+
>
28+
the conversion utility
29+
section
30+
</a>
31+
for details.
32+
</span>
33+
{{ end }}
2834
</td>
2935
{{ if eq $isEnterprise "false" }}
3036
<td>

0 commit comments

Comments
 (0)