Skip to content

Commit a4bc497

Browse files
committed
Hide scopes and plans
1 parent 05e116b commit a4bc497

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/portal_product_detail.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
</div>
9797
</div>
9898
{{end}}
99+
<!-- Hiding scopes
99100
{{if len .product.Scopes }}
100101
<div class="api-product-page__info">
101102
<div class="api-product-page__info-title">
@@ -110,6 +111,7 @@
110111
</div>
111112
</div>
112113
{{end}}
114+
-->
113115
{{ $upstreamURL := ProviderUpstreamURL req $thisProduct.ProviderID }}
114116
{{if $upstreamURL }}
115117
<div class="api-product-page__info">
@@ -156,7 +158,7 @@
156158
{{end}}
157159
<!-- Not displaying plans when there are none available for subscription -->
158160
{{ $plansLength := len .unique_plans }}
159-
{{ if gt $plansLength 0 }}
161+
{{ if ge $plansLength 1 }}
160162
<!-- Not displaying plans for Products with Basic Auth -->
161163
{{if and (ne $.product.AuthType "ba") (ne $.product.AuthType "custom")}}
162164
<div class="api-product-page__info">

0 commit comments

Comments
 (0)