mirror of
https://github.com/correl/codereview.git
synced 2024-11-15 03:00:10 +00:00
Renamed browser commit view
This commit is contained in:
parent
139b2af47a
commit
6d22447153
4 changed files with 5 additions and 4 deletions
|
@ -8,5 +8,6 @@ urlpatterns = patterns('',
|
|||
# Path log
|
||||
(r'^(?P<repository>.*?)/log/(?P<path>.*?)/$', 'codereview.browser.views.log'),
|
||||
# Commit view
|
||||
(r'^(?P<repository>.*?)/view/(?P<ref>.*?)/$', 'codereview.browser.views.view'),
|
||||
(r'^(?P<repository>.*?)/commit/(?P<ref>.*?)/$',
|
||||
'codereview.browser.views.commit'),
|
||||
)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<h3>
|
||||
{{ 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>
|
||||
{% endwith %}
|
||||
{% if blob.data %}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<span class="marker tag"><a href="{% url codereview.browser.views.log repository=repository %}?c={{ tag }}">{{ tag }}</a></span>
|
||||
{% endif %}
|
||||
{% 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>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue