Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More tweaks for revision binding

  • Loading branch information...
commit a841abaacb9688d1d21676efccece4f842b5755f 1 parent 956987f
@dcramer dcramer authored
View
2  src/zumanji/templates/zumanji/index.html
@@ -8,7 +8,7 @@
<li class="span6">
<h4><a href="{% url zumanji:view_project project_label=project.label %}">{{ project.label }}</a></h4>
{% if revision %}
- <a href="{% url zumanji:view_revision project_label=project.label, revision_id=build.id %}">{{ revision.label }}</a><br>
+ <a href="{% url zumanji:view_revision project_label=project.label, revision_label=revision.label %}">{{ revision.label }}</a><br>
<small>{{ revision.oneline }} &mdash; {{ revision.author.name }}</small>
{% else %}
No builds have been executed.
View
2  src/zumanji/urls.py
@@ -6,7 +6,7 @@
url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)/tag/(?P<tag_id>\d+)$', 'zumanji.views.view_tag', name='view_tag'),
url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)/build/(?P<build_id>\d+)/report/(?P<test_label>[^/]+)$', 'zumanji.views.view_test', name='view_test'),
url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)/build/(?P<build_id>\d+)$', 'zumanji.views.view_build', name='view_build'),
- url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)/revision/(?P<revision_label>\d+)$', 'zumanji.views.view_revision', name='view_revision'),
+ url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)/revision/(?P<revision_label>[^\/]+)$', 'zumanji.views.view_revision', name='view_revision'),
url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)/upload$', 'zumanji.views.upload_project_build', name='upload_project_build'),
url(r'^project/(?P<project_label>[^/]+(?:/[^/]+)?)$', 'zumanji.views.view_project', name='view_project'),
)
View
2  src/zumanji/views.py
@@ -69,7 +69,7 @@ def view_tag(request, project_label, tag_id):
def view_revision(request, project_label, revision_label):
- revision = get_object_or_404(Build, project__label=project_label, label=revision_label)
+ revision = get_object_or_404(Revision, project__label=project_label, label=revision_label)
project = revision.project
previous_revision = revision.get_previous_revision()
next_revision = revision.get_next_revision()
Please sign in to comment.
Something went wrong with that request. Please try again.