File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 35
35
<a href =" /ui/" >See all versions of jQuery UI</a >.
36
36
</p >
37
37
38
- {{ #with ui. [0 ]}}
39
- {{ include " ui-latest" }}
40
- {{ /with }}
41
-
38
+ {{ #if ui. [0 ].latestStable }}
39
+ {{ #with ui. [0 ]}}
40
+ {{ include " ui-latest" }}
41
+ {{ /with }}
42
+ {{ /if }}
42
43
{{ #with ui. [1 ]}}
43
44
{{ include " ui-latest" }}
44
45
{{ /with }}
45
-
46
+ {{ #unless ui. [0 ].latestStable }}
47
+ {{ #with ui. [2 ]}}
48
+ {{ include " ui-latest" }}
49
+ {{ /with }}
50
+ {{ /unless }}
46
51
{{ #with mobile.latestStable }}
47
52
<h2 >jQuery Mobile</h2 >
48
53
<p >
Original file line number Diff line number Diff line change 6
6
7
7
{{ #each ui }}
8
8
<h2 >jQuery UI {{ major }} </h2 >
9
- {{ release " jQuery UI" latestStable }}
10
- <h3 >Themes</h3 >
11
- {{ #each latestStable.themes }}
12
- <a href =" /ui/{{ ../latestStable/version }} /themes/{{ this }} /jquery-ui.css" >{{ this }} </a >
13
- {{ /each }}
9
+ {{ #if latestStable }}
10
+ {{ release " jQuery UI" latestStable }}
11
+ <h3 >Themes</h3 >
12
+ {{ #each latestStable.themes }}
13
+ <a href =" /ui/{{ ../latestStable/version }} /themes/{{ this }} /jquery-ui.css" >{{ this }} </a >
14
+ {{ /each }}
15
+ {{ /if }}
14
16
{{ #if all.length }}
15
- <h3 >Previous Releases</h3 >
17
+ {{ #if latestStable }}
18
+ <h3 >Previous Releases</h3 >
19
+ {{ else }}
20
+ <h3 >Pre-Releases</h3 >
21
+ {{ /if }}
16
22
<ul >
17
23
{{ #each all }}
18
24
<li >
You can’t perform that action at this time.
0 commit comments