Skip to content

Commit 90ac70d

Browse files
humitosagjohnson
authored andcommitted
Show the proper version in the project dashboard (readthedocs#3307)
The bug was introduced at https://github.com/rtfd/readthedocs.org/pull/2944/files#diff-9a10ae0511ab8eb72096c4a0510a364eL38 Since the {% blocktrans %} was removed, the `slug` name was undefined. Besides, there is no need to translate the slug, so the first one was also removed
1 parent dbf6898 commit 90ac70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/templates/core/project_details.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ <h3>{% trans "Versions" %}</h3>
2828
{% if version.uploaded or version.built %}
2929
{# Link to the docs #}
3030
<a class="module-item-title" href="{{ version.get_absolute_url }}">
31-
{% blocktrans with version.slug as slug %} {{ slug }} {% endblocktrans %}
31+
{{ version.slug }}
3232
{% if request.user in project.users.all %}
3333
<span class="right-menu quiet">{{ version.get_privacy_level_display }}</span>
3434
{% endif %}
3535
</a>
3636
{% else %}
3737
<a class="module-item-title" href="{{ version.project.get_builds_url }}">
38-
{{ slug }}
38+
{{ version.slug }}
3939
</a>
4040
{% endif %}
4141
{% if request.user|is_admin:project %}

0 commit comments

Comments
 (0)