Skip to content

Commit 26102e0

Browse files
authored
Merge pull request #3418 from rtfd/humitos/build/link-version-detail
Link to version detail page from build detail page
2 parents b5660a6 + b3274fb commit 26102e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readthedocs/templates/builds/build_detail.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "projects/base_project.html" %}
22

33
{% load i18n %}
4+
{% load privacy_tags %}
45
{% load static %}
56

67
{% block title %}{{ build.project.name }}{% endblock %}
@@ -62,7 +63,11 @@
6263

6364
<div class="build-version">
6465
<span class="build-version-slug">
65-
{{ build.version.slug }}
66+
{% if request.user|is_admin:project %}
67+
<a href="{% url "project_version_detail" build.version.project.slug build.version.slug %}">{{ build.version.slug }}</a>
68+
{% else %}
69+
{{ build.version.slug }}
70+
{% endif %}
6671
</span>
6772
<span class="build-commit"
6873
data-bind="visible: commit">

0 commit comments

Comments
 (0)