Skip to content

Commit

Permalink
Merge pull request #5400 from rtfd/remove-view-docs-dropdown
Browse files Browse the repository at this point in the history
Remove view docs dropdown
  • Loading branch information
stsewd authored Mar 6, 2019
2 parents bdb4aa5 + 5a1e667 commit 4911600
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 32 deletions.
23 changes: 7 additions & 16 deletions readthedocs/templates/core/project_list_detailed.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,15 @@
<span class="right-menu quiet">{% trans "No builds" %}</span>
{% endif %}

{% 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>
<li><input type="search" placeholder="{% trans "Search" %}&hellip;" /></li>
{% for version in project.ordered_active_versions reversed %}
<li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
{% endfor %}
</ul>
</span>
{% else %}
<ul class="module-item-menu">
<li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
<li>
{% if project.has_good_build %}
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
{% else %}
<a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a>
{% endif %}
</li>
</ul>
{% endif %}


</li>
Expand Down
23 changes: 7 additions & 16 deletions readthedocs/templates/core/project_list_featured.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,15 @@
<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>
<li><input type="search" placeholder="{% trans "Search" %}&hellip;" /></li>
{% for version in project.ordered_active_versions reversed %}
<li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
{% endfor %}
</ul>
</span>
{% else %}
<ul class="module-item-menu">
<li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
<li>
{% if project.has_good_build %}
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
{% else %}
<a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a>
{% endif %}
</li>
</ul>
{% endif %}

</li>

Expand Down

0 comments on commit 4911600

Please sign in to comment.