summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-28 17:52:16 -0500
committerDan McGee <dan@archlinux.org>2011-04-28 17:53:23 -0500
commit11962fab9da3839564fb132109267b8cd6feb6ac (patch)
treea3ece00b56e812e4c9c033c5b00ddeae2eff9eeb
parent1ff9c0fc5db1aab393eed5751e94ed8ac127c0c2 (diff)
downloadarchweb-11962fab9da3839564fb132109267b8cd6feb6ac.tar.gz
archweb-11962fab9da3839564fb132109267b8cd6feb6ac.zip
Remove more hardcoded isotests links
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--isotests/views.py6
-rw-r--r--templates/isotests/add.html2
-rw-r--r--templates/isotests/result_list.html2
-rw-r--r--templates/isotests/thanks.html4
-rw-r--r--templates/public/index.html2
5 files changed, 8 insertions, 8 deletions
diff --git a/isotests/views.py b/isotests/views.py
index 8e66d7b4..cfd6f408 100644
--- a/isotests/views.py
+++ b/isotests/views.py
@@ -1,7 +1,7 @@
from django import forms
from django.conf import settings
-from django.http import HttpResponseRedirect, Http404
-from django.shortcuts import get_object_or_404
+from django.http import Http404
+from django.shortcuts import get_object_or_404, redirect
from django.views.generic.simple import direct_to_template
from .models import (Architecture, BootType, Bootloader, ClockChoice,
@@ -58,7 +58,7 @@ def submit_test_result(request):
test = form.save(commit=False)
test.ip_address = request.META.get("REMOTE_ADDR", None)
test.save()
- return HttpResponseRedirect('/isotests/thanks/')
+ return redirect('releng-test-thanks')
else:
form = TestForm()
diff --git a/templates/isotests/add.html b/templates/isotests/add.html
index dadcdd10..3678532d 100644
--- a/templates/isotests/add.html
+++ b/templates/isotests/add.html
@@ -9,7 +9,7 @@
<p>This page allows you to submit feedback after testing and using a
release engineering install ISO. If you do not currently have feedback to
submit, you may want to take a look at the current
- <a href="/isotests/">results page</a>.</p>
+ <a href="{% url releng-test-overview %}">results page</a>.</p>
<div id="releng-feedback"> <form action="" method="post">{% csrf_token %}
{{ form.as_p }}
diff --git a/templates/isotests/result_list.html b/templates/isotests/result_list.html
index 29ad19ec..b3ae025b 100644
--- a/templates/isotests/result_list.html
+++ b/templates/isotests/result_list.html
@@ -7,7 +7,7 @@
{{ iso_name|default:"" }}
</h2>
- <p><a href="/isotests/">Go back to testing results</a></p>
+ <p><a href="{% url releng-test-overview %}">Go back to testing results</a></p>
<table id="releng-result" class="results">
<thead>
diff --git a/templates/isotests/thanks.html b/templates/isotests/thanks.html
index 8929c0db..b261426d 100644
--- a/templates/isotests/thanks.html
+++ b/templates/isotests/thanks.html
@@ -7,7 +7,7 @@
<h2>Thanks!</h2>
<p>Thank you for taking the time to give us this information!
Your results have been succesfully added to our database.</p>
- <p>You can now <a href="/isotests/">go back to the results</a>,
- or <a href="/isotests/add/">give more feedback</a>.</p>
+ <p>You can now <a href="{% url releng-test-overview %}">go back to the results</a>,
+ or <a href="{% url releng-test-submit %}">give more feedback</a>.</p>
</div>
{% endblock %}
diff --git a/templates/public/index.html b/templates/public/index.html
index 773d4782..5b79a1fe 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -119,7 +119,7 @@
title="Arch communities in your native language">International Communities</a></li>
<li><a href="https://wiki.archlinux.org/index.php/Related_Projects"
title="Projects that are in some way related to Arch Linux">Related Projects</a></li>
- <li><a href="/isotests/"
+ <li><a href="{% url releng-test-overview %}"
title="Releng Testbuild Feedback">Releng Testbuild Feedback</a></li>
</ul>