Performance improvement: stop listing all versions on the homepage
This is similar to
where resolving a ton of URL's for versions is time consuming.
This limits that by only listing the stable version,
if it exists,
for featured projects on our homepage
<a href="#">&#x25BC;</a>
</span>
<ul>
- <li><input type="search" placeholder="{% trans "Search" %}&hellip;" /></li>
- {% for version in project.ordered_active_versions reversed %}
+ {% with project.get_stable_version as version %}
<li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
- {% endfor %}
+ {% endwith %}
</ul>
</span>
{% else %}
