Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions archetypes/pattern/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ industries:
- Industry 1
- Industry 2
- etc
partners:
- partner 1
- partner 2
- etc
links:
install:
arch:
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ markup:
taxonomies:
industry: 'industries'
rh_product: 'rh_products'
other_product: 'other_products'
partners: 'partners'
blog_tag: 'blog_tags'

mediaTypes:
Expand Down
2 changes: 1 addition & 1 deletion content/patterns/ansible-edge-gitops-kasten/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rh_products:
- Red Hat OpenShift Virtualization
- Red Hat Enterprise Linux
- Red Hat OpenShift Data Foundation
other_products:
partners:
- Veeam Kasten
industries:
- Chemical
Expand Down
2 changes: 1 addition & 1 deletion content/patterns/hypershift/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summary: This pattern is for deploying the Hosted Control Plane (HyperShift) ser
rh_products:
- Red Hat OpenShift Container Platform
- Red Hat MultiCluster Engine
other_products:
partners:
- AWS Controller for Kubernetes
industries:
- Infrastructure
Expand Down
2 changes: 1 addition & 1 deletion content/patterns/multicloud-gitops-Portworx/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summary: This pattern helps you develop and deploy applications on an open hybri
rh_products:
- Red Hat OpenShift Container Platform
- Red Hat Advanced Cluster Management
other_products:
partners:
- Portworx Enterprise
industries:
- General
Expand Down
12 changes: 6 additions & 6 deletions layouts/partials/menu-patterns-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ <h2 class="accordion-header" id="rhProductHeading">
</div>
</div>

<!--OTHER PRODUCTS-->
<!--PARTNERS-->

<div class="accordion-item">
<h2 class="accordion-header" id="otherProductHeading">
<button class="pf-c-accordion__toggle collapsed" title="Filter patterns by other products" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOtherProducts" aria-expanded="false" aria-controls="collapseOtherProducts">
Other products
<h2 class="accordion-header" id="partnerHeading">
<button class="pf-c-accordion__toggle collapsed" title="Filter patterns by partners" type="button" data-bs-toggle="collapse" data-bs-target="#collapsePartners" aria-expanded="false" aria-controls="collapsePartners">
Partners
<span class="pf-c-accordion__toggle-icon">
<i class="fas fa-angle-right" aria-hidden="true"></i>
</span>
Expand All @@ -89,10 +89,10 @@ <h2 class="accordion-header" id="otherProductHeading">
</span>
</button>
</h2>
<div id="collapseOtherProducts" class="pf-c-accordion__expanded-content collapse" aria-labelledby="otherProductHeading" data-bs-parent="#patternsAccordionNav">
<div id="collapsePartners" class="pf-c-accordion__expanded-content collapse" aria-labelledby="PartnersHeading" data-bs-parent="#patternsAccordionNav">
<div class="pf-c-accordion__expanded-content-body">
<div class="pf-c-select__menu-group">
<fieldset class="pf-c-select__menu-fieldset" aria-labelledby="select-checkbox-expanded-selected-group-otherproducts" id="OtherProductsItems">
<fieldset class="pf-c-select__menu-fieldset" aria-labelledby="select-checkbox-expanded-selected-group-partners" id="PartnersItems">
</fieldset>
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions layouts/patterns/list.json.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
{{- $rh_products_filter_types := slice "AND" "OR" }}
{{- $rh_products_dict := dict "filter_list" $rh_products_list "filter_types" $rh_products_filter_types }}

{{/* Other Products */}}
{{- $other_products := .Site.Taxonomies.other_products }}
{{- $other_products_list := slice }}
{{- range $index, $other_product := $other_products.Alphabetical }}
{{- $other_products_list = $other_products_list | append (dict "Name" $other_product.Name "LinkTitle" $other_product.Page.LinkTitle) }}
{{/* Partners */}}
{{- $partners := .Site.Taxonomies.partners }}
{{- $partners_list := slice }}
{{- range $index, $partners := $partners.Alphabetical }}
{{- $partners_list = $partners_list | append (dict "Name" $partners.Name "LinkTitle" $partners.Page.LinkTitle) }}
{{- end }}
{{- $other_products_filter_types := slice "AND" "OR" }}
{{- $other_products_dict := dict "filter_list" $other_products_list "filter_types" $other_products_filter_types }}
{{- $partners_filter_types := slice "AND" "OR" }}
{{- $partners_dict := dict "filter_list" $partners_list "filter_types" $partners_filter_types }}

{{/* Industries */}}
{{- $industries := .Site.Taxonomies.industries }}
Expand All @@ -43,6 +43,6 @@
{{- $tiers_filter_types := slice "OR" }}
{{- $tiers_dict := dict "filter_list" $tiers_list "filter_types" $tiers_filter_types }}

{{- $filter_categories := dict "rh_products" $rh_products_dict "other_products" $other_products_dict "industries" $industries_dict "tier" $tiers_dict -}}
{{- $filter_categories := dict "rh_products" $rh_products_dict "partners" $partners_dict "industries" $industries_dict "tier" $tiers_dict -}}
{{- dict "patterns" $pattern_list "filter_categories" $filter_categories | jsonify }}
{{- end }}
6 changes: 3 additions & 3 deletions static/js/patterns-browser-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ function getParams() {
enabledParams.filters.industries = urlParams.get("industries_filter");
enabledParams.categories.rh_products = urlParams.getAll("rh_products");
enabledParams.filters.rh_products = urlParams.get("rh_products_filter");
enabledParams.categories.other_products = urlParams.getAll("other_products");
enabledParams.filters.other_products = urlParams.get("other_products_filter");
enabledParams.categories.partners = urlParams.getAll("partners");
enabledParams.filters.partners = urlParams.get("partners_filter");
return enabledParams;
}

Expand Down Expand Up @@ -401,6 +401,6 @@ patternsData.then(output => {
renderFilter("TiersItems", "tier", output.filter_categories.tier, enabledParams.categories.tier, enabledParams.filters.tier);
renderFilter("IndustriesItems", "industries", output.filter_categories.industries, enabledParams.categories.industries, enabledParams.filters.industries);
renderFilter("RhProductsItems", "rh_products", output.filter_categories.rh_products, enabledParams.categories.rh_products, enabledParams.filters.rh_products);
renderFilter("OtherProductsItems", "other_products", output.filter_categories.other_products, enabledParams.categories.other_products, enabledParams.filters.other_products);
renderFilter("PartnersItems", "partners", output.filter_categories.partners, enabledParams.categories.partners, enabledParams.filters.partners);
renderFilteredCards(output.patterns, output.filter_categories)
});