diff --git a/pylons_app/config/routing.py b/pylons_app/config/routing.py --- a/pylons_app/config/routing.py +++ b/pylons_app/config/routing.py @@ -32,13 +32,22 @@ def make_map(config): m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') - map.connect('changeset_home', '/{repo_name}/changeset/{revision}', controller='changeset', revision='tip') - map.connect('summary_home', '/{repo_name}/summary', controller='summary') - map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', controller='shortlog', revision='tip') - map.connect('branches_home', '/{repo_name}/branches', controller='branches') - map.connect('tags_home', '/{repo_name}/tags', controller='tags') - map.connect('changelog_home', '/{repo_name}/changelog/{revision}', controller='changelog', revision='tip') - map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', controller='files', revision='tip', f_path='') - map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', controller='files', action='diff', revision='tip', f_path='') - + map.connect('changeset_home', '/{repo_name}/changeset/{revision}', + controller='changeset', revision='tip') + map.connect('summary_home', '/{repo_name}/summary', + controller='summary') + map.connect('shortlog_home', '/{repo_name}/shortlog/{revision}', + controller='shortlog', revision='tip') + map.connect('branches_home', '/{repo_name}/branches', + controller='branches') + map.connect('tags_home', '/{repo_name}/tags', + controller='tags') + map.connect('changelog_home', '/{repo_name}/changelog/{revision}', + controller='changelog', revision='tip') + map.connect('files_home', '/{repo_name}/files/{revision}/{f_path:.*}', + controller='files', revision='tip', f_path='') + map.connect('files_diff_home', '/{repo_name}/diff/{f_path:.*}', + controller='files', action='diff', revision='tip', f_path='') + map.connect('files_raw_home', '/{repo_name}/rawfile/{revision}/{f_path:.*}', + controller='files', action='rawfile', revision='tip', f_path='') return map diff --git a/pylons_app/templates/files/files_source.html b/pylons_app/templates/files/files_source.html --- a/pylons_app/templates/files/files_source.html +++ b/pylons_app/templates/files/files_source.html @@ -4,7 +4,7 @@