2010-11-19 05:12:29 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2010-11-22 20:12:09 +00:00
|
|
|
# Root log
|
2010-11-22 14:50:41 +00:00
|
|
|
(r'^(?P<repository>.*?)/log/$', 'codereview.browser.views.log'),
|
2010-11-22 20:12:09 +00:00
|
|
|
# File (Blob) view
|
|
|
|
(r'^(?P<repository>.*?)/blob/(?P<path>.*?)$', 'codereview.browser.views.blob'),
|
|
|
|
# Path log
|
|
|
|
(r'^(?P<repository>.*?)/log/(?P<path>.*?)/$', 'codereview.browser.views.log'),
|
|
|
|
# Commit view
|
2010-11-22 21:10:07 +00:00
|
|
|
(r'^(?P<repository>.*?)/commit/(?P<ref>.*?)/$',
|
|
|
|
'codereview.browser.views.commit'),
|
2010-12-17 19:50:26 +00:00
|
|
|
# Diff view
|
|
|
|
(r'^(?P<repository>.*?)/diff/$',
|
|
|
|
'codereview.browser.views.diff'),
|
2010-11-19 05:12:29 +00:00
|
|
|
)
|