|
41 | 41 | Limited Availability |
42 | 42 | </span> |
43 | 43 | {{/if}} |
| 44 | + {{!-- ADP platform badges: only show when limited to one platform --}} |
| 45 | + {{#if page.attributes.adp}} |
| 46 | + {{#if page.attributes.byoc-only}} |
| 47 | + <span class="status-badge status-badge--byoc" data-tippy-content="This feature is only available in BYOC (Bring Your Own Cloud) clusters."> |
| 48 | + <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> |
| 49 | + <path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/> |
| 50 | + </svg> |
| 51 | + Only in BYOC |
| 52 | + </span> |
| 53 | + {{else if page.attributes.cloud-only}} |
| 54 | + <span class="status-badge status-badge--cloud" data-tippy-content="This feature is only available in fully managed Redpanda Cloud clusters."> |
| 55 | + <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> |
| 56 | + <path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/> |
| 57 | + </svg> |
| 58 | + Only in Cloud |
| 59 | + </span> |
| 60 | + {{/if}} |
| 61 | + {{/if}} |
44 | 62 | </div> |
45 | 63 | {{#with page.title}} |
46 | 64 | <h1 class="page">{{{this}}}</h1> |
47 | 65 | {{/with}} |
48 | 66 | {{/if}} |
49 | 67 | {{#unless (or (eq page.attributes.role 'component-home-v2') (eq page.attributes.role 'component-home-v3'))}} |
50 | 68 | <div class="metadata metadata--main"> |
51 | | - {{!-- Only show BYOC/Cloud badges on non-ADP pages (ADP uses availability block instead) --}} |
| 69 | + {{!-- Only show BYOC/Cloud badges on non-ADP pages (ADP uses inline status badges instead) --}} |
52 | 70 | {{#unless page.attributes.adp}} |
53 | 71 | {{#if page.attributes.byoc}} |
54 | 72 | <div class="byoc-label"> |
|
72 | 90 | {{> markdown-dropdown}} |
73 | 91 | </div> |
74 | 92 | {{/unless}} |
75 | | -{{!-- Availability block for ADP pages showing platform support --}} |
76 | | -{{#if page.attributes.adp}} |
77 | | -{{#unless (eq page.attributes.role 'component-home-v2')}} |
78 | | -{{#unless (eq page.attributes.role 'component-home-v3')}} |
79 | | -{{#unless (eq page.attributes.role 'home')}} |
80 | | -{{#unless (eq page.layout 'index')}} |
81 | | -<div class="availability-block"> |
82 | | - <strong>Available in:</strong> |
83 | | - {{#if (and page.attributes.byoc page.attributes.cloud-only)}} |
84 | | - Cloud, BYOC |
85 | | - {{else if page.attributes.byoc}} |
86 | | - BYOC |
87 | | - {{else if page.attributes.cloud-only}} |
88 | | - Cloud |
89 | | - {{else}} |
90 | | - Cloud, BYOC |
91 | | - {{/if}} |
92 | | - <span class="availability-info" tabindex="0" aria-label="Availability information"> |
93 | | - <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
94 | | - <circle cx="12" cy="12" r="10"></circle> |
95 | | - <line x1="12" y1="16" x2="12" y2="12"></line> |
96 | | - <line x1="12" y1="8" x2="12.01" y2="8"></line> |
97 | | - </svg> |
98 | | - </span> |
99 | | -</div> |
100 | | -<script> |
101 | | -document.addEventListener("DOMContentLoaded", () => { |
102 | | - const availabilityInfo = document.querySelector(".availability-info"); |
103 | | - if (availabilityInfo && typeof tippy !== 'undefined') { |
104 | | - tippy(availabilityInfo, { |
105 | | - content: "This indicates which Redpanda Cloud cluster types support this feature. Cloud refers to fully managed clusters. BYOC (Bring Your Own Cloud) refers to clusters running in your own cloud account.", |
106 | | - animation: "scale", |
107 | | - theme: "redpanda-term", |
108 | | - touch: "hold", |
109 | | - interactive: true, |
110 | | - allowHTML: true, |
111 | | - appendTo: () => document.body, |
112 | | - maxWidth: 300 |
113 | | - }); |
114 | | - } |
115 | | -}); |
116 | | -</script> |
117 | | -{{/unless}} |
118 | | -{{/unless}} |
119 | | -{{/unless}} |
120 | | -{{/unless}} |
121 | | -{{/if}} |
122 | 93 | {{#if (or page.attributes.beta page.attributes.limited-availability page.attributes.byoc page.attributes.cloud-only page.attributes.context-switcher)}} |
123 | 94 | <script> |
124 | 95 | document.addEventListener("DOMContentLoaded", () => { |
|
0 commit comments