Skip to content

Commit b727e39

Browse files
committed
Merge branch 'fix-inactive-version-list-not-showing' into rel
2 parents 9e0465e + 5fb1070 commit b727e39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/templates/projects/project_version_list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h1>{% trans "Active Versions" %}</h1>
7676
<div class="module project-versions-inactive">
7777
<div class="module-wrapper">
7878

79-
{% if inactive_versions %}
79+
{% if inactive_versions or request.GET.version_filter %}
8080
<div class="module-header">
8181
<h1>{% trans "Activate a version" %}</h1>
8282
<p>{% trans "Active versions are built whenever new code is pushed to that branch or tag." %}</p>
@@ -126,6 +126,8 @@ <h1>{% trans "Activate a version" %}</h1>
126126
</li>
127127
{% endblock inactive-versions %}
128128

129+
{% empty %}
130+
<li class="module-item quiet">{% trans "No versions found" %}</li>
129131
{% endfor %}
130132
</ul>
131133
</div>

0 commit comments

Comments
 (0)