Properly check for version
</span>
<ul>
{% with project.get_stable_version as version %}
+ {% if version %}
<li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
+ {% endif %}
{% endwith %}
</ul>
</span>
