70 lines
3.1 KiB
HTML
70 lines
3.1 KiB
HTML
{{ $scratch := newScratch }}
|
||
{{ $productPathData := findRE "[^/]+.*?" .RelPermalink }}
|
||
{{ $version := index $productPathData 1 }}
|
||
{{ $altVersion := cond (ne $version "cloud-iox") "cloud-iox" "cloud" }}
|
||
{{ $engine := cond (eq $version "cloud-iox") "IOx" "TSM" }}
|
||
{{ $altEngine := cond (eq $version "cloud-iox") "TSM" "IOx" }}
|
||
{{ $altDoc := .Page.Params.alt_engine | default "" }}
|
||
{{ $altLink := cond (ne $altDoc "") $altDoc (print "/influxdb/" $altVersion "/") }}
|
||
{{ $isCloud := eq $version "cloud" }}
|
||
{{ $isIOx := eq $version "cloud-iox" }}
|
||
|
||
{{ $scratch.Set "link" "" }}
|
||
{{ if $isCloud }}
|
||
{{ $altIOxPage := $.GetPage ((replaceRE "influxdb/cloud" "influxdb/cloud-iox" $.Page.RelPermalink) | replaceRE `\/$` "") }}
|
||
{{ if ne $altDoc "" }}
|
||
{{ $scratch.Set "link" $altDoc }}
|
||
{{ else if gt (len $altIOxPage.Title) 0 }}
|
||
{{ $scratch.Set "link" $altIOxPage.RelPermalink }}
|
||
{{ end }}
|
||
{{ else if $isIOx }}
|
||
{{ $altCloudPage := $.GetPage ((replaceRE "influxdb/cloud-iox" "influxdb/cloud" $.Page.RelPermalink) | replaceRE `\/$` "") }}
|
||
{{ if ne $altDoc "" }}
|
||
{{ $scratch.Set "link" $altDoc }}
|
||
{{ else if gt (len $altCloudPage.Title) 0 }}
|
||
{{ $scratch.Set "link" $altCloudPage.RelPermalink }}
|
||
{{ end }}
|
||
{{ end }}
|
||
|
||
{{ $altLink := cond (eq ($scratch.Get "link") "") (print "/influxdb/" $altVersion "/") ($scratch.Get "link") }}
|
||
|
||
<div id="iox-wayfinding-modal">
|
||
<div class="wayfinding-wrapper">
|
||
<div class="wayfinding-content">
|
||
<h4>InfluxDB Cloud powered by {{ $engine }}</h4>
|
||
<div class="wayfinding-content-info">
|
||
<div>
|
||
<p>
|
||
You are currently viewing documentation specific to InfluxDB Cloud
|
||
powered by the <strong>{{ $engine }} storage engine</strong>, which
|
||
offers different functionality than InfluxDB Cloud powered by the
|
||
{{ $altEngine }} storage engine.
|
||
</p>
|
||
<p>
|
||
<strong>Are you using the {{ $engine }} storage engine?</strong>
|
||
<a href="#" id="find-out-toggle">How to find out?</a>
|
||
</p>
|
||
<div id="find-out-instructions">
|
||
<p>
|
||
Visit <a href="https://cloud2.influxdata.com" target="_blank">your organization's homepage</a>
|
||
and look for:
|
||
</p>
|
||
<div class="powered-by-example">
|
||
InfluxDB Cloud powered by {{ $engine }}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="wayfinding-actions">
|
||
<a class="iox-wayfinding-btn" data-engine="{{ $engine | lower }}" href="#" id="iox-wayfinding-stay"><strong>Yes</strong><span class="small"> – I'm using {{ $engine }}</span></a>
|
||
<a class="iox-wayfinding-btn" data-engine="{{ $altEngine | lower }}" id="iox-wayfinding-switch" href="{{ $altLink }}"><strong>No</strong><span class="small"> – I'm using {{ $altEngine }}</span></a>
|
||
<label>
|
||
<input id="iox-wayfinding-opt-out-input" type="checkbox" />
|
||
<span id="iox-wayfinding-opt-out" class="checkbox"></span>
|
||
<span class="checkbox-text">Don't ask again</span>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<span id="iox-wayfinding-close" class="cf-icon Remove_New"></span>
|
||
</div>
|
||
</div> |