Skip to content

Commit 4f4782f

Browse files
authored
Merge pull request #105 from karthik2804/fix_spin_version_selector
fix spin version dropdown behavior
2 parents a1744e5 + ae0e0d8 commit 4f4782f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/main.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
<select class="version-dropdown"
1212
onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
1313
<option value="/v3/index">Spin v3.x</option>
14-
<option value="/v2/index" {{#if (active_project request.spin-full-url "/spin/v2/" )}} selected
15-
{{/if}}>Spin v2.x</option>
16-
<option value="/v1/index" {{#if (active_project request.spin-full-url "/spin/v1/" )}} selected
17-
{{/if}}>Spin v1.x</option>
14+
<option value="/v2/index" {{#if (active_project request.spin-full-url "/v2/" )}} selected {{/if}}>
15+
Spin v2.x</option>
16+
<option value="/v1/index" {{#if (active_project request.spin-full-url "/v1/" )}} selected {{/if}}>
17+
Spin v1.x</option>
1818
</select>
19-
19+
2020
{{> sidebar }}
2121
</aside>
2222
</div>

0 commit comments

Comments
 (0)