Skip to content

Commit 5d631c8

Browse files
committed
Default to Spin 3.x (in case we want to merge before Spin 4 ships)
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 1250ba3 commit 5d631c8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

templates/main.hbs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
{{! This adds the version selector }}
1111
<select class="version-dropdown"
1212
onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
13-
<option value="/v4/index">Spin v4.x</option>
1413
<option value="/v3/index" {{#if (active_project request.spin-full-url "/v3/" )}} selected {{/if}}>
1514
Spin v3.x</option>
1615
<option value="/v2/index" {{#if (active_project request.spin-full-url "/v2/" )}} selected {{/if}}>
1716
Spin v2.x</option>
1817
<option value="/v1/index" {{#if (active_project request.spin-full-url "/v1/" )}} selected {{/if}}>
1918
Spin v1.x</option>
19+
<option value="/v4/index" {{#if (active_project request.spin-full-url "/v4/" )}} selected {{/if}}>
20+
Spin v4.x (Preview)</option>
2021
</select>
2122

2223
{{#if (active_project request.spin-full-url "/v1/")}}
@@ -25,10 +26,10 @@
2526
{{#if (active_project request.spin-full-url "/v2/")}}
2627
{{> sidebar_v2 }}
2728
{{else}}
28-
{{#if (active_project request.spin-full-url "/v3/")}}
29-
{{> sidebar_v3 }}
30-
{{else}}
29+
{{#if (active_project request.spin-full-url "/v4/")}}
3130
{{> sidebar_v4 }}
31+
{{else}}
32+
{{> sidebar_v3 }}
3233
{{/if}}
3334
{{/if}}
3435
{{/if}}

0 commit comments

Comments
 (0)