Renamed browser commit view

This commit is contained in:
Correl Roush 2010-11-22 16:10:07 -05:00
parent 139b2af47a
commit 6d22447153
4 changed files with 5 additions and 4 deletions

View file

@ -8,5 +8,6 @@ urlpatterns = patterns('',
# Path log # Path log
(r'^(?P<repository>.*?)/log/(?P<path>.*?)/$', 'codereview.browser.views.log'), (r'^(?P<repository>.*?)/log/(?P<path>.*?)/$', 'codereview.browser.views.log'),
# Commit view # Commit view
(r'^(?P<repository>.*?)/view/(?P<ref>.*?)/$', 'codereview.browser.views.view'), (r'^(?P<repository>.*?)/commit/(?P<ref>.*?)/$',
'codereview.browser.views.commit'),
) )

View file

@ -43,7 +43,7 @@ def log(request, repository, path=None):
data.update(_log_data(request, repo, ref, path)) data.update(_log_data(request, repo, ref, path))
data.update(_nav_data(request, repo, ref, path)) data.update(_nav_data(request, repo, ref, path))
return render_to_response('browser/log.html', data) return render_to_response('browser/log.html', data)
def view(request, repository, ref): def commit(request, repository, ref):
try: try:
repository = Repository.objects.get(name=repository) repository = Repository.objects.get(name=repository)
except: except:

View file

@ -11,7 +11,7 @@
<h3> <h3>
{{ blob.path|basename }} {{ blob.path|basename }}
@ @
<a href="{% url codereview.browser.views.view repository=repository ref=commit.id %}">{{ commit.id }}</a> <a href="{% url codereview.browser.views.commit repository=repository ref=commit.id %}">{{ commit.id }}</a>
</h3> </h3>
{% endwith %} {% endwith %}
{% if blob.data %} {% if blob.data %}

View file

@ -26,7 +26,7 @@
<span class="marker tag"><a href="{% url codereview.browser.views.log repository=repository %}?c={{ tag }}">{{ tag }}</a></span> <span class="marker tag"><a href="{% url codereview.browser.views.log repository=repository %}?c={{ tag }}">{{ tag }}</a></span>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<a href="{% url codereview.browser.views.view repository=repository ref=commit.id %}">{{ commit.message|oneline }}</a> <a href="{% url codereview.browser.views.commit repository=repository ref=commit.id %}">{{ commit.message|oneline }}</a>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}