From 6d22447153b81c508c2673ec610916c57b8ae7c2 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 22 Nov 2010 16:10:07 -0500 Subject: [PATCH] Renamed browser commit view --- browser/urls.py | 3 ++- browser/views.py | 2 +- templates/browser/blob.html | 2 +- templates/browser/commitlog.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/browser/urls.py b/browser/urls.py index 6da1ea1..9607843 100644 --- a/browser/urls.py +++ b/browser/urls.py @@ -8,5 +8,6 @@ urlpatterns = patterns('', # Path log (r'^(?P.*?)/log/(?P.*?)/$', 'codereview.browser.views.log'), # Commit view - (r'^(?P.*?)/view/(?P.*?)/$', 'codereview.browser.views.view'), + (r'^(?P.*?)/commit/(?P.*?)/$', + 'codereview.browser.views.commit'), ) diff --git a/browser/views.py b/browser/views.py index fd72de7..7c1d55a 100755 --- a/browser/views.py +++ b/browser/views.py @@ -43,7 +43,7 @@ def log(request, repository, path=None): data.update(_log_data(request, repo, ref, path)) data.update(_nav_data(request, repo, ref, path)) return render_to_response('browser/log.html', data) -def view(request, repository, ref): +def commit(request, repository, ref): try: repository = Repository.objects.get(name=repository) except: diff --git a/templates/browser/blob.html b/templates/browser/blob.html index bce3c9b..1e0b220 100644 --- a/templates/browser/blob.html +++ b/templates/browser/blob.html @@ -11,7 +11,7 @@

{{ blob.path|basename }} @ - {{ commit.id }} + {{ commit.id }}

{% endwith %} {% if blob.data %} diff --git a/templates/browser/commitlog.html b/templates/browser/commitlog.html index 860d285..f24ed4e 100644 --- a/templates/browser/commitlog.html +++ b/templates/browser/commitlog.html @@ -26,7 +26,7 @@ {{ tag }} {% endif %} {% endfor %} - {{ commit.message|oneline }} + {{ commit.message|oneline }} {% endfor %}