From b3274fb082f8f6135ac423172dde7e66dc1567a1 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 18 Dec 2017 14:21:55 -0500 Subject: [PATCH] Link to version detail page from build detail page --- readthedocs/templates/builds/build_detail.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/readthedocs/templates/builds/build_detail.html b/readthedocs/templates/builds/build_detail.html index b07a252a479..e617ba59254 100644 --- a/readthedocs/templates/builds/build_detail.html +++ b/readthedocs/templates/builds/build_detail.html @@ -1,6 +1,7 @@ {% extends "projects/base_project.html" %} {% load i18n %} +{% load privacy_tags %} {% load static %} {% block title %}{{ build.project.name }}{% endblock %} @@ -62,7 +63,11 @@
- {{ build.version.slug }} + {% if request.user|is_admin:project %} + {{ build.version.slug }} + {% else %} + {{ build.version.slug }} + {% endif %}