-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Enterprise only
badge under the title based on metadata (tier
)
and remove the section from the info box The information related to the tier is set in gateway's metadata file.
- Loading branch information
Showing
6 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,8 @@ topologies: | |
- traditional | ||
- hybrid | ||
- db-less | ||
|
||
tiers: | ||
enterprise: | ||
text: Enterprise only | ||
url: '/gateway/enterprise/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,39 @@ | ||
{% if include.products or include.tools %} | ||
{% if include.products or include.tools or include.tier %} | ||
<div class="flex gap-2 items-center"> | ||
<span>Uses: </span> | ||
{% if include.tier %} | ||
{% assign tier = site.data.products.gateway.tiers[include.tier] %} | ||
{% include badge.html url=tier.url text=tier.text %} | ||
{% endif %} | ||
|
||
{% if include.tier %} | ||
{% if include.products or include.tools %} | ||
<span class="text-sm"> and uses: </span> | ||
{% endif %} | ||
{% else %} | ||
<span class="text-sm">Uses: </span> | ||
{% endif %} | ||
|
||
{% for product in include.products %} | ||
{% assign product_info = site.data.products[product] %} | ||
{% capture url %}/{{ product }}/{% endcapture %} | ||
{% include badge.html url=url text=product_info.name %} | ||
{% endfor %} | ||
{% if include.products %} | ||
{% for product in include.products %} | ||
{% assign product_info = site.data.products[product] %} | ||
{% capture url %}/{{ product }}/{% endcapture %} | ||
{% include badge.html url=url text=product_info.name %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% if include.products and include.tools %} | ||
<span class="bg-brand-saturated/40 w-[1px] h-3/4"></span> | ||
{% endif %} | ||
|
||
{% assign tools = include.tools | sort %} | ||
{% for tool in tools %} | ||
{% assign tool_info = site.data.tools[tool] %} | ||
{% if tool_info %} | ||
{% capture url %}/{{ tool }}/{% endcapture %} | ||
{% include badge.html url=url text=tool_info.name %} | ||
{% if include.tools %} | ||
{% assign tools = include.tools | sort %} | ||
{% for tool in tools %} | ||
{% assign tool_info = site.data.tools[tool] %} | ||
{% if tool_info %} | ||
{% capture url %}/{{ tool }}/{% endcapture %} | ||
{% include badge.html url=url text=tool_info.name %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters