File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 14
14
< a href ="# "> ▼</ a >
15
15
</ span >
16
16
< ul >
17
- {% with project.get_stable_version as version %}
18
- {% if version %}
19
- < li > < a href ="{{ version.get_absolute_url }} "> {{ version.slug }}</ a > </ li >
20
- {% else %}
21
- < li > No stable version</ li >
22
- {% endif %}
23
- {% endwith %}
17
+ < li > < input type ="search " placeholder ="{% trans "Search " %}…" /> </ li >
18
+ {% for version in project.ordered_active_versions reversed %}
19
+ < li > < a href ="{{ version.get_absolute_url }} "> {{ version.slug }}</ a > </ li >
20
+ {% endfor %}
24
21
</ ul >
25
22
</ span >
26
23
{% else %}
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ <h3>Multiple versions</h3>
116
116
</ section >
117
117
118
118
{% if featured_list %}
119
+ {% cache 600 homepage featured_list %}
119
120
<!-- BEGIN projects list -->
120
121
< section >
121
122
< h3 > {% trans "Featured Projects" %}</ h3 >
@@ -128,6 +129,7 @@ <h3>{% trans "Featured Projects" %}</h3>
128
129
</ div >
129
130
</ section >
130
131
<!-- END projects list -->
132
+ {% endcache %}
131
133
{% endif %}
132
134
133
135
<!-- Funding and Contributing -->
You can’t perform that action at this time.
0 commit comments