##// END OF EJS Templates
repo-settings: unify the URL schemas and always use settings/ for repo based...
marcink -
r1745:ff1034ea default
parent child Browse files
Show More
@@ -44,23 +44,23 b' def includeme(config):'
44 # Maintenance
44 # Maintenance
45 config.add_route(
45 config.add_route(
46 name='repo_maintenance',
46 name='repo_maintenance',
47 pattern='/{repo_name:.*?[^/]}/maintenance', repo_route=True)
47 pattern='/{repo_name:.*?[^/]}/settings/maintenance', repo_route=True)
48
48
49 config.add_route(
49 config.add_route(
50 name='repo_maintenance_execute',
50 name='repo_maintenance_execute',
51 pattern='/{repo_name:.*?[^/]}/maintenance/execute', repo_route=True)
51 pattern='/{repo_name:.*?[^/]}/settings/maintenance/execute', repo_route=True)
52
52
53 # Strip
53 # Strip
54 config.add_route(
54 config.add_route(
55 name='strip',
55 name='strip',
56 pattern='/{repo_name:.*?[^/]}/strip', repo_route=True)
56 pattern='/{repo_name:.*?[^/]}/settings/strip', repo_route=True)
57
57
58 config.add_route(
58 config.add_route(
59 name='strip_check',
59 name='strip_check',
60 pattern='/{repo_name:.*?[^/]}/strip_check', repo_route=True)
60 pattern='/{repo_name:.*?[^/]}/settings/strip_check', repo_route=True)
61
61
62 config.add_route(
62 config.add_route(
63 name='strip_execute',
63 name='strip_execute',
64 pattern='/{repo_name:.*?[^/]}/strip_execute', repo_route=True)
64 pattern='/{repo_name:.*?[^/]}/settings/strip_execute', repo_route=True)
65 # Scan module for configuration decorators.
65 # Scan module for configuration decorators.
66 config.scan()
66 config.scan()
@@ -100,11 +100,11 b' function registerRCRoutes() {'
100 pyroutes.register('edit_repo_caches', '/%(repo_name)s/settings/caches', ['repo_name']);
100 pyroutes.register('edit_repo_caches', '/%(repo_name)s/settings/caches', ['repo_name']);
101 pyroutes.register('edit_repo_perms', '/%(repo_name)s/settings/permissions', ['repo_name']);
101 pyroutes.register('edit_repo_perms', '/%(repo_name)s/settings/permissions', ['repo_name']);
102 pyroutes.register('repo_reviewers', '/%(repo_name)s/settings/review/rules', ['repo_name']);
102 pyroutes.register('repo_reviewers', '/%(repo_name)s/settings/review/rules', ['repo_name']);
103 pyroutes.register('repo_maintenance', '/%(repo_name)s/maintenance', ['repo_name']);
103 pyroutes.register('repo_maintenance', '/%(repo_name)s/settings/maintenance', ['repo_name']);
104 pyroutes.register('repo_maintenance_execute', '/%(repo_name)s/maintenance/execute', ['repo_name']);
104 pyroutes.register('repo_maintenance_execute', '/%(repo_name)s/settings/maintenance/execute', ['repo_name']);
105 pyroutes.register('strip', '/%(repo_name)s/strip', ['repo_name']);
105 pyroutes.register('strip', '/%(repo_name)s/settings/strip', ['repo_name']);
106 pyroutes.register('strip_check', '/%(repo_name)s/strip_check', ['repo_name']);
106 pyroutes.register('strip_check', '/%(repo_name)s/settings/strip_check', ['repo_name']);
107 pyroutes.register('strip_execute', '/%(repo_name)s/strip_execute', ['repo_name']);
107 pyroutes.register('strip_execute', '/%(repo_name)s/settings/strip_execute', ['repo_name']);
108 pyroutes.register('search', '/_admin/search', []);
108 pyroutes.register('search', '/_admin/search', []);
109 pyroutes.register('search_repo', '/%(repo_name)s/search', ['repo_name']);
109 pyroutes.register('search_repo', '/%(repo_name)s/search', ['repo_name']);
110 pyroutes.register('user_profile', '/_profiles/%(username)s', ['username']);
110 pyroutes.register('user_profile', '/_profiles/%(username)s', ['username']);
General Comments 0
You need to be logged in to leave comments. Login now