Skip to content

Commit 3f3d6b5

Browse files
committed
Consistent empty state for lists
1 parent d2883f3 commit 3f3d6b5

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

readthedocs/templates/core/project_details.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ <h3>{% trans "Versions" %}</h3>
4646
</li>
4747

4848
{% empty %}
49-
<p>
50-
{% trans "No active versions." %}
51-
</p>
49+
<li class="module-item">
50+
<p class="quiet">
51+
{% trans "No active versions." %}
52+
</p>
53+
</li>
5254
{% endfor %}
5355
</ul>
5456
</div>

readthedocs/templates/core/project_downloads.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
{% endif %}
2727

2828
{% empty %}
29-
<p>
30-
{% trans "No downloads for this project." %}
29+
<li class="module-item">
30+
<p class="quiet">
31+
{% trans "No downloads for this project." %}
3132
</p>
33+
</li>
3234
{% endfor %}

readthedocs/templates/projects/project_version_list.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ <h1>{% trans "Active Versions" %}</h1>
5959
{% endblock active-versions %}
6060

6161
{% empty %}
62-
<p>
63-
{% trans "No active versions." %}
64-
</p>
62+
<li class="module-item">
63+
<p class="quiet">
64+
{% trans "No active versions." %}
65+
</p>
66+
</li>
6567
{% endfor %}
6668
</ul>
6769
</div>

0 commit comments

Comments
 (0)