{% load i18n %}

{% for project in featured_list %}
  <li class="module-item">
    <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a>
    {% for user in project.users.all %}
        <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a>
    {% endfor %}

    {% if project.has_good_build %}
    <span class="dropdown" style="position:absolute; right:0px; top:0px;">
      <span>
          <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
        <a href="#">&#x25BC;</a>
      </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>
    {% else %}
    <ul class="module-item-menu">
      <li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
    </ul>
    {% endif %}

  </li>

{% empty %}
  <li class="module-item quiet">{% trans "No projects found" %}</li>
{% endfor %}

{% load i18n %}

{% for project in featured_list %}
  <li class="module-item">
    <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a>
    {% for user in project.users.all %}
        <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a>
    {% endfor %}

    {% if project.has_good_build %}
    <span class="dropdown" style="position:absolute; right:0px; top:0px;">
      <span>
          <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
        <a href="#">&#x25BC;</a>
      </span>
      <ul>
          {% with project.get_stable_version as version %}
          {% if version %}
            <li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
          {% else %}
            <li>No stable version</li>
          {% endif %}
          {% endwith %}
      </ul>
    </span>
    {% else %}
    <ul class="module-item-menu">
      <li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
    </ul>
    {% endif %}

  </li>

{% empty %}
  <li class="module-item quiet">{% trans "No projects found" %}</li>
{% endfor %}

Handle case with no stable
Handle case with no stable
