Skip to content

Commit

Permalink
Link to version detail page from build detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Dec 18, 2017
1 parent 9e7bcb7 commit 508a7f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion readthedocs/templates/builds/build_detail.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "projects/base_project.html" %}

{% load i18n %}
{% load privacy_tags %}
{% load static %}

{% block title %}{{ build.project.name }}{% endblock %}
Expand Down Expand Up @@ -62,7 +63,11 @@

<div class="build-version">
<span class="build-version-slug">
{{ build.version.slug }}
{% if request.user|is_admin:project %}
<a href="{% url "project_version_detail" build.version.project.slug build.version.slug %}">{{ build.version.slug }}</a>
{% else %}
{{ build.version.slug }}
{% endif %}
</span>
<span class="build-commit"
data-bind="visible: commit">
Expand Down

0 comments on commit 508a7f0

Please sign in to comment.