Skip to content

Commit 4911600

Browse files
authored
Merge pull request #5400 from rtfd/remove-view-docs-dropdown
Remove view docs dropdown
2 parents bdb4aa5 + 5a1e667 commit 4911600

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

readthedocs/templates/core/project_list_detailed.html

+7-16
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,15 @@
2929
<span class="right-menu quiet">{% trans "No builds" %}</span>
3030
{% endif %}
3131

32-
{% if project.has_good_build %}
33-
<span class="dropdown" style="position:absolute; right:0px; top:0px;">
34-
<span>
35-
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
36-
<a href="#">&#x25BC;</a>
37-
</span>
38-
<ul>
39-
<li><input type="search" placeholder="{% trans "Search" %}&hellip;" /></li>
40-
{% for version in project.ordered_active_versions reversed %}
41-
<li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
42-
{% endfor %}
43-
</ul>
44-
</span>
45-
{% else %}
4632
<ul class="module-item-menu">
47-
<li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
33+
<li>
34+
{% if project.has_good_build %}
35+
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
36+
{% else %}
37+
<a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a>
38+
{% endif %}
39+
</li>
4840
</ul>
49-
{% endif %}
5041

5142

5243
</li>

readthedocs/templates/core/project_list_featured.html

+7-16
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,15 @@
77
<a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a>
88
{% endfor %}
99

10-
{% if project.has_good_build %}
11-
<span class="dropdown" style="position:absolute; right:0px; top:0px;">
12-
<span>
13-
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
14-
<a href="#">&#x25BC;</a>
15-
</span>
16-
<ul>
17-
<li><input type="search" placeholder="{% trans "Search" %}&hellip;" /></li>
18-
{% for version in project.ordered_active_versions reversed %}
19-
<li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
20-
{% endfor %}
21-
</ul>
22-
</span>
23-
{% else %}
2410
<ul class="module-item-menu">
25-
<li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
11+
<li>
12+
{% if project.has_good_build %}
13+
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
14+
{% else %}
15+
<a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a>
16+
{% endif %}
17+
</li>
2618
</ul>
27-
{% endif %}
2819

2920
</li>
3021

0 commit comments

Comments
 (0)