Show More
@@ -0,0 +1,46 b'' | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | # Copyright (C) 2016-2018 RhodeCode GmbH | |||
|
4 | # | |||
|
5 | # This program is free software: you can redistribute it and/or modify | |||
|
6 | # it under the terms of the GNU Affero General Public License, version 3 | |||
|
7 | # (only), as published by the Free Software Foundation. | |||
|
8 | # | |||
|
9 | # This program is distributed in the hope that it will be useful, | |||
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
12 | # GNU General Public License for more details. | |||
|
13 | # | |||
|
14 | # You should have received a copy of the GNU Affero General Public License | |||
|
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
|
16 | # | |||
|
17 | # This program is dual-licensed. If you wish to learn more about the | |||
|
18 | # RhodeCode Enterprise Edition, including its added features, Support services, | |||
|
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ | |||
|
20 | ||||
|
21 | import logging | |||
|
22 | ||||
|
23 | from pyramid.view import view_config | |||
|
24 | ||||
|
25 | from rhodecode.apps._base import RepoAppView | |||
|
26 | from rhodecode.apps.repository.utils import get_default_reviewers_data | |||
|
27 | from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator | |||
|
28 | ||||
|
29 | log = logging.getLogger(__name__) | |||
|
30 | ||||
|
31 | ||||
|
32 | class RepoAutomationView(RepoAppView): | |||
|
33 | def load_default_context(self): | |||
|
34 | c = self._get_local_tmpl_context() | |||
|
35 | return c | |||
|
36 | ||||
|
37 | @LoginRequired() | |||
|
38 | @HasRepoPermissionAnyDecorator('repository.admin') | |||
|
39 | @view_config( | |||
|
40 | route_name='repo_automation', request_method='GET', | |||
|
41 | renderer='rhodecode:templates/admin/repos/repo_edit.mako') | |||
|
42 | def repo_automation(self): | |||
|
43 | c = self.load_default_context() | |||
|
44 | c.active = 'automation' | |||
|
45 | ||||
|
46 | return self._get_template_context(c) |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
@@ -0,0 +1,9 b'' | |||||
|
1 | <div class="panel panel-default"> | |||
|
2 | <div class="panel-heading"> | |||
|
3 | <h3 class="panel-title">${_('Repo Automation')}</h3> | |||
|
4 | </div> | |||
|
5 | <div class="panel-body"> | |||
|
6 | <h4>${_('This feature is available in RhodeCode EE edition only. Contact {sales_email} to obtain a trial license.').format(sales_email='<a href="mailto:sales@rhodecode.com">sales@rhodecode.com</a>')|n}</h4> | |||
|
7 | <img style="width: 100%; height: 100%" src="${h.asset('images/ee_features/repo_automation.png')}"/> | |||
|
8 | </div> | |||
|
9 | </div> |
@@ -1,458 +1,463 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 | # Copyright (C) 2016-2018 RhodeCode GmbH |
|
3 | # Copyright (C) 2016-2018 RhodeCode GmbH | |
4 | # |
|
4 | # | |
5 | # This program is free software: you can redistribute it and/or modify |
|
5 | # This program is free software: you can redistribute it and/or modify | |
6 | # it under the terms of the GNU Affero General Public License, version 3 |
|
6 | # it under the terms of the GNU Affero General Public License, version 3 | |
7 | # (only), as published by the Free Software Foundation. |
|
7 | # (only), as published by the Free Software Foundation. | |
8 | # |
|
8 | # | |
9 | # This program is distributed in the hope that it will be useful, |
|
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. |
|
12 | # GNU General Public License for more details. | |
13 | # |
|
13 | # | |
14 | # You should have received a copy of the GNU Affero General Public License |
|
14 | # You should have received a copy of the GNU Affero General Public License | |
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | # |
|
16 | # | |
17 | # This program is dual-licensed. If you wish to learn more about the |
|
17 | # This program is dual-licensed. If you wish to learn more about the | |
18 | # RhodeCode Enterprise Edition, including its added features, Support services, |
|
18 | # RhodeCode Enterprise Edition, including its added features, Support services, | |
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ | |
20 | from rhodecode.apps._base import add_route_with_slash |
|
20 | from rhodecode.apps._base import add_route_with_slash | |
21 |
|
21 | |||
22 |
|
22 | |||
23 | def includeme(config): |
|
23 | def includeme(config): | |
24 |
|
24 | |||
25 | # repo creating checks, special cases that aren't repo routes |
|
25 | # repo creating checks, special cases that aren't repo routes | |
26 | config.add_route( |
|
26 | config.add_route( | |
27 | name='repo_creating', |
|
27 | name='repo_creating', | |
28 | pattern='/{repo_name:.*?[^/]}/repo_creating') |
|
28 | pattern='/{repo_name:.*?[^/]}/repo_creating') | |
29 |
|
29 | |||
30 | config.add_route( |
|
30 | config.add_route( | |
31 | name='repo_creating_check', |
|
31 | name='repo_creating_check', | |
32 | pattern='/{repo_name:.*?[^/]}/repo_creating_check') |
|
32 | pattern='/{repo_name:.*?[^/]}/repo_creating_check') | |
33 |
|
33 | |||
34 | # Summary |
|
34 | # Summary | |
35 | # NOTE(marcink): one additional route is defined in very bottom, catch |
|
35 | # NOTE(marcink): one additional route is defined in very bottom, catch | |
36 | # all pattern |
|
36 | # all pattern | |
37 | config.add_route( |
|
37 | config.add_route( | |
38 | name='repo_summary_explicit', |
|
38 | name='repo_summary_explicit', | |
39 | pattern='/{repo_name:.*?[^/]}/summary', repo_route=True) |
|
39 | pattern='/{repo_name:.*?[^/]}/summary', repo_route=True) | |
40 | config.add_route( |
|
40 | config.add_route( | |
41 | name='repo_summary_commits', |
|
41 | name='repo_summary_commits', | |
42 | pattern='/{repo_name:.*?[^/]}/summary-commits', repo_route=True) |
|
42 | pattern='/{repo_name:.*?[^/]}/summary-commits', repo_route=True) | |
43 |
|
43 | |||
44 | # Commits |
|
44 | # Commits | |
45 | config.add_route( |
|
45 | config.add_route( | |
46 | name='repo_commit', |
|
46 | name='repo_commit', | |
47 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}', repo_route=True) |
|
47 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}', repo_route=True) | |
48 |
|
48 | |||
49 | config.add_route( |
|
49 | config.add_route( | |
50 | name='repo_commit_children', |
|
50 | name='repo_commit_children', | |
51 | pattern='/{repo_name:.*?[^/]}/changeset_children/{commit_id}', repo_route=True) |
|
51 | pattern='/{repo_name:.*?[^/]}/changeset_children/{commit_id}', repo_route=True) | |
52 |
|
52 | |||
53 | config.add_route( |
|
53 | config.add_route( | |
54 | name='repo_commit_parents', |
|
54 | name='repo_commit_parents', | |
55 | pattern='/{repo_name:.*?[^/]}/changeset_parents/{commit_id}', repo_route=True) |
|
55 | pattern='/{repo_name:.*?[^/]}/changeset_parents/{commit_id}', repo_route=True) | |
56 |
|
56 | |||
57 | config.add_route( |
|
57 | config.add_route( | |
58 | name='repo_commit_raw', |
|
58 | name='repo_commit_raw', | |
59 | pattern='/{repo_name:.*?[^/]}/changeset-diff/{commit_id}', repo_route=True) |
|
59 | pattern='/{repo_name:.*?[^/]}/changeset-diff/{commit_id}', repo_route=True) | |
60 |
|
60 | |||
61 | config.add_route( |
|
61 | config.add_route( | |
62 | name='repo_commit_patch', |
|
62 | name='repo_commit_patch', | |
63 | pattern='/{repo_name:.*?[^/]}/changeset-patch/{commit_id}', repo_route=True) |
|
63 | pattern='/{repo_name:.*?[^/]}/changeset-patch/{commit_id}', repo_route=True) | |
64 |
|
64 | |||
65 | config.add_route( |
|
65 | config.add_route( | |
66 | name='repo_commit_download', |
|
66 | name='repo_commit_download', | |
67 | pattern='/{repo_name:.*?[^/]}/changeset-download/{commit_id}', repo_route=True) |
|
67 | pattern='/{repo_name:.*?[^/]}/changeset-download/{commit_id}', repo_route=True) | |
68 |
|
68 | |||
69 | config.add_route( |
|
69 | config.add_route( | |
70 | name='repo_commit_data', |
|
70 | name='repo_commit_data', | |
71 | pattern='/{repo_name:.*?[^/]}/changeset-data/{commit_id}', repo_route=True) |
|
71 | pattern='/{repo_name:.*?[^/]}/changeset-data/{commit_id}', repo_route=True) | |
72 |
|
72 | |||
73 | config.add_route( |
|
73 | config.add_route( | |
74 | name='repo_commit_comment_create', |
|
74 | name='repo_commit_comment_create', | |
75 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/create', repo_route=True) |
|
75 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/create', repo_route=True) | |
76 |
|
76 | |||
77 | config.add_route( |
|
77 | config.add_route( | |
78 | name='repo_commit_comment_preview', |
|
78 | name='repo_commit_comment_preview', | |
79 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/preview', repo_route=True) |
|
79 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/preview', repo_route=True) | |
80 |
|
80 | |||
81 | config.add_route( |
|
81 | config.add_route( | |
82 | name='repo_commit_comment_delete', |
|
82 | name='repo_commit_comment_delete', | |
83 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/{comment_id}/delete', repo_route=True) |
|
83 | pattern='/{repo_name:.*?[^/]}/changeset/{commit_id}/comment/{comment_id}/delete', repo_route=True) | |
84 |
|
84 | |||
85 | # still working url for backward compat. |
|
85 | # still working url for backward compat. | |
86 | config.add_route( |
|
86 | config.add_route( | |
87 | name='repo_commit_raw_deprecated', |
|
87 | name='repo_commit_raw_deprecated', | |
88 | pattern='/{repo_name:.*?[^/]}/raw-changeset/{commit_id}', repo_route=True) |
|
88 | pattern='/{repo_name:.*?[^/]}/raw-changeset/{commit_id}', repo_route=True) | |
89 |
|
89 | |||
90 | # Files |
|
90 | # Files | |
91 | config.add_route( |
|
91 | config.add_route( | |
92 | name='repo_archivefile', |
|
92 | name='repo_archivefile', | |
93 | pattern='/{repo_name:.*?[^/]}/archive/{fname}', repo_route=True) |
|
93 | pattern='/{repo_name:.*?[^/]}/archive/{fname}', repo_route=True) | |
94 |
|
94 | |||
95 | config.add_route( |
|
95 | config.add_route( | |
96 | name='repo_files_diff', |
|
96 | name='repo_files_diff', | |
97 | pattern='/{repo_name:.*?[^/]}/diff/{f_path:.*}', repo_route=True) |
|
97 | pattern='/{repo_name:.*?[^/]}/diff/{f_path:.*}', repo_route=True) | |
98 | config.add_route( # legacy route to make old links work |
|
98 | config.add_route( # legacy route to make old links work | |
99 | name='repo_files_diff_2way_redirect', |
|
99 | name='repo_files_diff_2way_redirect', | |
100 | pattern='/{repo_name:.*?[^/]}/diff-2way/{f_path:.*}', repo_route=True) |
|
100 | pattern='/{repo_name:.*?[^/]}/diff-2way/{f_path:.*}', repo_route=True) | |
101 |
|
101 | |||
102 | config.add_route( |
|
102 | config.add_route( | |
103 | name='repo_files', |
|
103 | name='repo_files', | |
104 | pattern='/{repo_name:.*?[^/]}/files/{commit_id}/{f_path:.*}', repo_route=True) |
|
104 | pattern='/{repo_name:.*?[^/]}/files/{commit_id}/{f_path:.*}', repo_route=True) | |
105 | config.add_route( |
|
105 | config.add_route( | |
106 | name='repo_files:default_path', |
|
106 | name='repo_files:default_path', | |
107 | pattern='/{repo_name:.*?[^/]}/files/{commit_id}/', repo_route=True) |
|
107 | pattern='/{repo_name:.*?[^/]}/files/{commit_id}/', repo_route=True) | |
108 | config.add_route( |
|
108 | config.add_route( | |
109 | name='repo_files:default_commit', |
|
109 | name='repo_files:default_commit', | |
110 | pattern='/{repo_name:.*?[^/]}/files', repo_route=True) |
|
110 | pattern='/{repo_name:.*?[^/]}/files', repo_route=True) | |
111 |
|
111 | |||
112 | config.add_route( |
|
112 | config.add_route( | |
113 | name='repo_files:rendered', |
|
113 | name='repo_files:rendered', | |
114 | pattern='/{repo_name:.*?[^/]}/render/{commit_id}/{f_path:.*}', repo_route=True) |
|
114 | pattern='/{repo_name:.*?[^/]}/render/{commit_id}/{f_path:.*}', repo_route=True) | |
115 |
|
115 | |||
116 | config.add_route( |
|
116 | config.add_route( | |
117 | name='repo_files:annotated', |
|
117 | name='repo_files:annotated', | |
118 | pattern='/{repo_name:.*?[^/]}/annotate/{commit_id}/{f_path:.*}', repo_route=True) |
|
118 | pattern='/{repo_name:.*?[^/]}/annotate/{commit_id}/{f_path:.*}', repo_route=True) | |
119 | config.add_route( |
|
119 | config.add_route( | |
120 | name='repo_files:annotated_previous', |
|
120 | name='repo_files:annotated_previous', | |
121 | pattern='/{repo_name:.*?[^/]}/annotate-previous/{commit_id}/{f_path:.*}', repo_route=True) |
|
121 | pattern='/{repo_name:.*?[^/]}/annotate-previous/{commit_id}/{f_path:.*}', repo_route=True) | |
122 |
|
122 | |||
123 | config.add_route( |
|
123 | config.add_route( | |
124 | name='repo_nodetree_full', |
|
124 | name='repo_nodetree_full', | |
125 | pattern='/{repo_name:.*?[^/]}/nodetree_full/{commit_id}/{f_path:.*}', repo_route=True) |
|
125 | pattern='/{repo_name:.*?[^/]}/nodetree_full/{commit_id}/{f_path:.*}', repo_route=True) | |
126 | config.add_route( |
|
126 | config.add_route( | |
127 | name='repo_nodetree_full:default_path', |
|
127 | name='repo_nodetree_full:default_path', | |
128 | pattern='/{repo_name:.*?[^/]}/nodetree_full/{commit_id}/', repo_route=True) |
|
128 | pattern='/{repo_name:.*?[^/]}/nodetree_full/{commit_id}/', repo_route=True) | |
129 |
|
129 | |||
130 | config.add_route( |
|
130 | config.add_route( | |
131 | name='repo_files_nodelist', |
|
131 | name='repo_files_nodelist', | |
132 | pattern='/{repo_name:.*?[^/]}/nodelist/{commit_id}/{f_path:.*}', repo_route=True) |
|
132 | pattern='/{repo_name:.*?[^/]}/nodelist/{commit_id}/{f_path:.*}', repo_route=True) | |
133 |
|
133 | |||
134 | config.add_route( |
|
134 | config.add_route( | |
135 | name='repo_file_raw', |
|
135 | name='repo_file_raw', | |
136 | pattern='/{repo_name:.*?[^/]}/raw/{commit_id}/{f_path:.*}', repo_route=True) |
|
136 | pattern='/{repo_name:.*?[^/]}/raw/{commit_id}/{f_path:.*}', repo_route=True) | |
137 |
|
137 | |||
138 | config.add_route( |
|
138 | config.add_route( | |
139 | name='repo_file_download', |
|
139 | name='repo_file_download', | |
140 | pattern='/{repo_name:.*?[^/]}/download/{commit_id}/{f_path:.*}', repo_route=True) |
|
140 | pattern='/{repo_name:.*?[^/]}/download/{commit_id}/{f_path:.*}', repo_route=True) | |
141 | config.add_route( # backward compat to keep old links working |
|
141 | config.add_route( # backward compat to keep old links working | |
142 | name='repo_file_download:legacy', |
|
142 | name='repo_file_download:legacy', | |
143 | pattern='/{repo_name:.*?[^/]}/rawfile/{commit_id}/{f_path:.*}', |
|
143 | pattern='/{repo_name:.*?[^/]}/rawfile/{commit_id}/{f_path:.*}', | |
144 | repo_route=True) |
|
144 | repo_route=True) | |
145 |
|
145 | |||
146 | config.add_route( |
|
146 | config.add_route( | |
147 | name='repo_file_history', |
|
147 | name='repo_file_history', | |
148 | pattern='/{repo_name:.*?[^/]}/history/{commit_id}/{f_path:.*}', repo_route=True) |
|
148 | pattern='/{repo_name:.*?[^/]}/history/{commit_id}/{f_path:.*}', repo_route=True) | |
149 |
|
149 | |||
150 | config.add_route( |
|
150 | config.add_route( | |
151 | name='repo_file_authors', |
|
151 | name='repo_file_authors', | |
152 | pattern='/{repo_name:.*?[^/]}/authors/{commit_id}/{f_path:.*}', repo_route=True) |
|
152 | pattern='/{repo_name:.*?[^/]}/authors/{commit_id}/{f_path:.*}', repo_route=True) | |
153 |
|
153 | |||
154 | config.add_route( |
|
154 | config.add_route( | |
155 | name='repo_files_remove_file', |
|
155 | name='repo_files_remove_file', | |
156 | pattern='/{repo_name:.*?[^/]}/remove_file/{commit_id}/{f_path:.*}', |
|
156 | pattern='/{repo_name:.*?[^/]}/remove_file/{commit_id}/{f_path:.*}', | |
157 | repo_route=True) |
|
157 | repo_route=True) | |
158 | config.add_route( |
|
158 | config.add_route( | |
159 | name='repo_files_delete_file', |
|
159 | name='repo_files_delete_file', | |
160 | pattern='/{repo_name:.*?[^/]}/delete_file/{commit_id}/{f_path:.*}', |
|
160 | pattern='/{repo_name:.*?[^/]}/delete_file/{commit_id}/{f_path:.*}', | |
161 | repo_route=True) |
|
161 | repo_route=True) | |
162 | config.add_route( |
|
162 | config.add_route( | |
163 | name='repo_files_edit_file', |
|
163 | name='repo_files_edit_file', | |
164 | pattern='/{repo_name:.*?[^/]}/edit_file/{commit_id}/{f_path:.*}', |
|
164 | pattern='/{repo_name:.*?[^/]}/edit_file/{commit_id}/{f_path:.*}', | |
165 | repo_route=True) |
|
165 | repo_route=True) | |
166 | config.add_route( |
|
166 | config.add_route( | |
167 | name='repo_files_update_file', |
|
167 | name='repo_files_update_file', | |
168 | pattern='/{repo_name:.*?[^/]}/update_file/{commit_id}/{f_path:.*}', |
|
168 | pattern='/{repo_name:.*?[^/]}/update_file/{commit_id}/{f_path:.*}', | |
169 | repo_route=True) |
|
169 | repo_route=True) | |
170 | config.add_route( |
|
170 | config.add_route( | |
171 | name='repo_files_add_file', |
|
171 | name='repo_files_add_file', | |
172 | pattern='/{repo_name:.*?[^/]}/add_file/{commit_id}/{f_path:.*}', |
|
172 | pattern='/{repo_name:.*?[^/]}/add_file/{commit_id}/{f_path:.*}', | |
173 | repo_route=True) |
|
173 | repo_route=True) | |
174 | config.add_route( |
|
174 | config.add_route( | |
175 | name='repo_files_create_file', |
|
175 | name='repo_files_create_file', | |
176 | pattern='/{repo_name:.*?[^/]}/create_file/{commit_id}/{f_path:.*}', |
|
176 | pattern='/{repo_name:.*?[^/]}/create_file/{commit_id}/{f_path:.*}', | |
177 | repo_route=True) |
|
177 | repo_route=True) | |
178 |
|
178 | |||
179 | # Refs data |
|
179 | # Refs data | |
180 | config.add_route( |
|
180 | config.add_route( | |
181 | name='repo_refs_data', |
|
181 | name='repo_refs_data', | |
182 | pattern='/{repo_name:.*?[^/]}/refs-data', repo_route=True) |
|
182 | pattern='/{repo_name:.*?[^/]}/refs-data', repo_route=True) | |
183 |
|
183 | |||
184 | config.add_route( |
|
184 | config.add_route( | |
185 | name='repo_refs_changelog_data', |
|
185 | name='repo_refs_changelog_data', | |
186 | pattern='/{repo_name:.*?[^/]}/refs-data-changelog', repo_route=True) |
|
186 | pattern='/{repo_name:.*?[^/]}/refs-data-changelog', repo_route=True) | |
187 |
|
187 | |||
188 | config.add_route( |
|
188 | config.add_route( | |
189 | name='repo_stats', |
|
189 | name='repo_stats', | |
190 | pattern='/{repo_name:.*?[^/]}/repo_stats/{commit_id}', repo_route=True) |
|
190 | pattern='/{repo_name:.*?[^/]}/repo_stats/{commit_id}', repo_route=True) | |
191 |
|
191 | |||
192 | # Changelog |
|
192 | # Changelog | |
193 | config.add_route( |
|
193 | config.add_route( | |
194 | name='repo_changelog', |
|
194 | name='repo_changelog', | |
195 | pattern='/{repo_name:.*?[^/]}/changelog', repo_route=True) |
|
195 | pattern='/{repo_name:.*?[^/]}/changelog', repo_route=True) | |
196 | config.add_route( |
|
196 | config.add_route( | |
197 | name='repo_changelog_file', |
|
197 | name='repo_changelog_file', | |
198 | pattern='/{repo_name:.*?[^/]}/changelog/{commit_id}/{f_path:.*}', repo_route=True) |
|
198 | pattern='/{repo_name:.*?[^/]}/changelog/{commit_id}/{f_path:.*}', repo_route=True) | |
199 | config.add_route( |
|
199 | config.add_route( | |
200 | name='repo_changelog_elements', |
|
200 | name='repo_changelog_elements', | |
201 | pattern='/{repo_name:.*?[^/]}/changelog_elements', repo_route=True) |
|
201 | pattern='/{repo_name:.*?[^/]}/changelog_elements', repo_route=True) | |
202 | config.add_route( |
|
202 | config.add_route( | |
203 | name='repo_changelog_elements_file', |
|
203 | name='repo_changelog_elements_file', | |
204 | pattern='/{repo_name:.*?[^/]}/changelog_elements/{commit_id}/{f_path:.*}', repo_route=True) |
|
204 | pattern='/{repo_name:.*?[^/]}/changelog_elements/{commit_id}/{f_path:.*}', repo_route=True) | |
205 |
|
205 | |||
206 | # Compare |
|
206 | # Compare | |
207 | config.add_route( |
|
207 | config.add_route( | |
208 | name='repo_compare_select', |
|
208 | name='repo_compare_select', | |
209 | pattern='/{repo_name:.*?[^/]}/compare', repo_route=True) |
|
209 | pattern='/{repo_name:.*?[^/]}/compare', repo_route=True) | |
210 |
|
210 | |||
211 | config.add_route( |
|
211 | config.add_route( | |
212 | name='repo_compare', |
|
212 | name='repo_compare', | |
213 | pattern='/{repo_name:.*?[^/]}/compare/{source_ref_type}@{source_ref:.*?}...{target_ref_type}@{target_ref:.*?}', repo_route=True) |
|
213 | pattern='/{repo_name:.*?[^/]}/compare/{source_ref_type}@{source_ref:.*?}...{target_ref_type}@{target_ref:.*?}', repo_route=True) | |
214 |
|
214 | |||
215 | # Tags |
|
215 | # Tags | |
216 | config.add_route( |
|
216 | config.add_route( | |
217 | name='tags_home', |
|
217 | name='tags_home', | |
218 | pattern='/{repo_name:.*?[^/]}/tags', repo_route=True) |
|
218 | pattern='/{repo_name:.*?[^/]}/tags', repo_route=True) | |
219 |
|
219 | |||
220 | # Branches |
|
220 | # Branches | |
221 | config.add_route( |
|
221 | config.add_route( | |
222 | name='branches_home', |
|
222 | name='branches_home', | |
223 | pattern='/{repo_name:.*?[^/]}/branches', repo_route=True) |
|
223 | pattern='/{repo_name:.*?[^/]}/branches', repo_route=True) | |
224 |
|
224 | |||
225 | # Bookmarks |
|
225 | # Bookmarks | |
226 | config.add_route( |
|
226 | config.add_route( | |
227 | name='bookmarks_home', |
|
227 | name='bookmarks_home', | |
228 | pattern='/{repo_name:.*?[^/]}/bookmarks', repo_route=True) |
|
228 | pattern='/{repo_name:.*?[^/]}/bookmarks', repo_route=True) | |
229 |
|
229 | |||
230 | # Forks |
|
230 | # Forks | |
231 | config.add_route( |
|
231 | config.add_route( | |
232 | name='repo_fork_new', |
|
232 | name='repo_fork_new', | |
233 | pattern='/{repo_name:.*?[^/]}/fork', repo_route=True, |
|
233 | pattern='/{repo_name:.*?[^/]}/fork', repo_route=True, | |
234 | repo_accepted_types=['hg', 'git']) |
|
234 | repo_accepted_types=['hg', 'git']) | |
235 |
|
235 | |||
236 | config.add_route( |
|
236 | config.add_route( | |
237 | name='repo_fork_create', |
|
237 | name='repo_fork_create', | |
238 | pattern='/{repo_name:.*?[^/]}/fork/create', repo_route=True, |
|
238 | pattern='/{repo_name:.*?[^/]}/fork/create', repo_route=True, | |
239 | repo_accepted_types=['hg', 'git']) |
|
239 | repo_accepted_types=['hg', 'git']) | |
240 |
|
240 | |||
241 | config.add_route( |
|
241 | config.add_route( | |
242 | name='repo_forks_show_all', |
|
242 | name='repo_forks_show_all', | |
243 | pattern='/{repo_name:.*?[^/]}/forks', repo_route=True, |
|
243 | pattern='/{repo_name:.*?[^/]}/forks', repo_route=True, | |
244 | repo_accepted_types=['hg', 'git']) |
|
244 | repo_accepted_types=['hg', 'git']) | |
245 | config.add_route( |
|
245 | config.add_route( | |
246 | name='repo_forks_data', |
|
246 | name='repo_forks_data', | |
247 | pattern='/{repo_name:.*?[^/]}/forks/data', repo_route=True, |
|
247 | pattern='/{repo_name:.*?[^/]}/forks/data', repo_route=True, | |
248 | repo_accepted_types=['hg', 'git']) |
|
248 | repo_accepted_types=['hg', 'git']) | |
249 |
|
249 | |||
250 | # Pull Requests |
|
250 | # Pull Requests | |
251 | config.add_route( |
|
251 | config.add_route( | |
252 | name='pullrequest_show', |
|
252 | name='pullrequest_show', | |
253 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}', |
|
253 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}', | |
254 | repo_route=True) |
|
254 | repo_route=True) | |
255 |
|
255 | |||
256 | config.add_route( |
|
256 | config.add_route( | |
257 | name='pullrequest_show_all', |
|
257 | name='pullrequest_show_all', | |
258 | pattern='/{repo_name:.*?[^/]}/pull-request', |
|
258 | pattern='/{repo_name:.*?[^/]}/pull-request', | |
259 | repo_route=True, repo_accepted_types=['hg', 'git']) |
|
259 | repo_route=True, repo_accepted_types=['hg', 'git']) | |
260 |
|
260 | |||
261 | config.add_route( |
|
261 | config.add_route( | |
262 | name='pullrequest_show_all_data', |
|
262 | name='pullrequest_show_all_data', | |
263 | pattern='/{repo_name:.*?[^/]}/pull-request-data', |
|
263 | pattern='/{repo_name:.*?[^/]}/pull-request-data', | |
264 | repo_route=True, repo_accepted_types=['hg', 'git']) |
|
264 | repo_route=True, repo_accepted_types=['hg', 'git']) | |
265 |
|
265 | |||
266 | config.add_route( |
|
266 | config.add_route( | |
267 | name='pullrequest_repo_refs', |
|
267 | name='pullrequest_repo_refs', | |
268 | pattern='/{repo_name:.*?[^/]}/pull-request/refs/{target_repo_name:.*?[^/]}', |
|
268 | pattern='/{repo_name:.*?[^/]}/pull-request/refs/{target_repo_name:.*?[^/]}', | |
269 | repo_route=True) |
|
269 | repo_route=True) | |
270 |
|
270 | |||
271 | config.add_route( |
|
271 | config.add_route( | |
272 | name='pullrequest_repo_destinations', |
|
272 | name='pullrequest_repo_destinations', | |
273 | pattern='/{repo_name:.*?[^/]}/pull-request/repo-destinations', |
|
273 | pattern='/{repo_name:.*?[^/]}/pull-request/repo-destinations', | |
274 | repo_route=True) |
|
274 | repo_route=True) | |
275 |
|
275 | |||
276 | config.add_route( |
|
276 | config.add_route( | |
277 | name='pullrequest_new', |
|
277 | name='pullrequest_new', | |
278 | pattern='/{repo_name:.*?[^/]}/pull-request/new', |
|
278 | pattern='/{repo_name:.*?[^/]}/pull-request/new', | |
279 | repo_route=True, repo_accepted_types=['hg', 'git']) |
|
279 | repo_route=True, repo_accepted_types=['hg', 'git']) | |
280 |
|
280 | |||
281 | config.add_route( |
|
281 | config.add_route( | |
282 | name='pullrequest_create', |
|
282 | name='pullrequest_create', | |
283 | pattern='/{repo_name:.*?[^/]}/pull-request/create', |
|
283 | pattern='/{repo_name:.*?[^/]}/pull-request/create', | |
284 | repo_route=True, repo_accepted_types=['hg', 'git']) |
|
284 | repo_route=True, repo_accepted_types=['hg', 'git']) | |
285 |
|
285 | |||
286 | config.add_route( |
|
286 | config.add_route( | |
287 | name='pullrequest_update', |
|
287 | name='pullrequest_update', | |
288 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/update', |
|
288 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/update', | |
289 | repo_route=True) |
|
289 | repo_route=True) | |
290 |
|
290 | |||
291 | config.add_route( |
|
291 | config.add_route( | |
292 | name='pullrequest_merge', |
|
292 | name='pullrequest_merge', | |
293 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/merge', |
|
293 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/merge', | |
294 | repo_route=True) |
|
294 | repo_route=True) | |
295 |
|
295 | |||
296 | config.add_route( |
|
296 | config.add_route( | |
297 | name='pullrequest_delete', |
|
297 | name='pullrequest_delete', | |
298 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/delete', |
|
298 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/delete', | |
299 | repo_route=True) |
|
299 | repo_route=True) | |
300 |
|
300 | |||
301 | config.add_route( |
|
301 | config.add_route( | |
302 | name='pullrequest_comment_create', |
|
302 | name='pullrequest_comment_create', | |
303 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment', |
|
303 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment', | |
304 | repo_route=True) |
|
304 | repo_route=True) | |
305 |
|
305 | |||
306 | config.add_route( |
|
306 | config.add_route( | |
307 | name='pullrequest_comment_delete', |
|
307 | name='pullrequest_comment_delete', | |
308 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/delete', |
|
308 | pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/delete', | |
309 | repo_route=True, repo_accepted_types=['hg', 'git']) |
|
309 | repo_route=True, repo_accepted_types=['hg', 'git']) | |
310 |
|
310 | |||
311 | # Settings |
|
311 | # Settings | |
312 | config.add_route( |
|
312 | config.add_route( | |
313 | name='edit_repo', |
|
313 | name='edit_repo', | |
314 | pattern='/{repo_name:.*?[^/]}/settings', repo_route=True) |
|
314 | pattern='/{repo_name:.*?[^/]}/settings', repo_route=True) | |
315 | # update is POST on edit_repo |
|
315 | # update is POST on edit_repo | |
316 |
|
316 | |||
317 | # Settings advanced |
|
317 | # Settings advanced | |
318 | config.add_route( |
|
318 | config.add_route( | |
319 | name='edit_repo_advanced', |
|
319 | name='edit_repo_advanced', | |
320 | pattern='/{repo_name:.*?[^/]}/settings/advanced', repo_route=True) |
|
320 | pattern='/{repo_name:.*?[^/]}/settings/advanced', repo_route=True) | |
321 | config.add_route( |
|
321 | config.add_route( | |
322 | name='edit_repo_advanced_delete', |
|
322 | name='edit_repo_advanced_delete', | |
323 | pattern='/{repo_name:.*?[^/]}/settings/advanced/delete', repo_route=True) |
|
323 | pattern='/{repo_name:.*?[^/]}/settings/advanced/delete', repo_route=True) | |
324 | config.add_route( |
|
324 | config.add_route( | |
325 | name='edit_repo_advanced_locking', |
|
325 | name='edit_repo_advanced_locking', | |
326 | pattern='/{repo_name:.*?[^/]}/settings/advanced/locking', repo_route=True) |
|
326 | pattern='/{repo_name:.*?[^/]}/settings/advanced/locking', repo_route=True) | |
327 | config.add_route( |
|
327 | config.add_route( | |
328 | name='edit_repo_advanced_journal', |
|
328 | name='edit_repo_advanced_journal', | |
329 | pattern='/{repo_name:.*?[^/]}/settings/advanced/journal', repo_route=True) |
|
329 | pattern='/{repo_name:.*?[^/]}/settings/advanced/journal', repo_route=True) | |
330 | config.add_route( |
|
330 | config.add_route( | |
331 | name='edit_repo_advanced_fork', |
|
331 | name='edit_repo_advanced_fork', | |
332 | pattern='/{repo_name:.*?[^/]}/settings/advanced/fork', repo_route=True) |
|
332 | pattern='/{repo_name:.*?[^/]}/settings/advanced/fork', repo_route=True) | |
333 |
|
333 | |||
334 | # Caches |
|
334 | # Caches | |
335 | config.add_route( |
|
335 | config.add_route( | |
336 | name='edit_repo_caches', |
|
336 | name='edit_repo_caches', | |
337 | pattern='/{repo_name:.*?[^/]}/settings/caches', repo_route=True) |
|
337 | pattern='/{repo_name:.*?[^/]}/settings/caches', repo_route=True) | |
338 |
|
338 | |||
339 | # Permissions |
|
339 | # Permissions | |
340 | config.add_route( |
|
340 | config.add_route( | |
341 | name='edit_repo_perms', |
|
341 | name='edit_repo_perms', | |
342 | pattern='/{repo_name:.*?[^/]}/settings/permissions', repo_route=True) |
|
342 | pattern='/{repo_name:.*?[^/]}/settings/permissions', repo_route=True) | |
343 |
|
343 | |||
344 | # Maintenance |
|
344 | # Maintenance | |
345 | config.add_route( |
|
345 | config.add_route( | |
346 | name='edit_repo_maintenance', |
|
346 | name='edit_repo_maintenance', | |
347 | pattern='/{repo_name:.*?[^/]}/settings/maintenance', repo_route=True) |
|
347 | pattern='/{repo_name:.*?[^/]}/settings/maintenance', repo_route=True) | |
348 |
|
348 | |||
349 | config.add_route( |
|
349 | config.add_route( | |
350 | name='edit_repo_maintenance_execute', |
|
350 | name='edit_repo_maintenance_execute', | |
351 | pattern='/{repo_name:.*?[^/]}/settings/maintenance/execute', repo_route=True) |
|
351 | pattern='/{repo_name:.*?[^/]}/settings/maintenance/execute', repo_route=True) | |
352 |
|
352 | |||
353 | # Fields |
|
353 | # Fields | |
354 | config.add_route( |
|
354 | config.add_route( | |
355 | name='edit_repo_fields', |
|
355 | name='edit_repo_fields', | |
356 | pattern='/{repo_name:.*?[^/]}/settings/fields', repo_route=True) |
|
356 | pattern='/{repo_name:.*?[^/]}/settings/fields', repo_route=True) | |
357 | config.add_route( |
|
357 | config.add_route( | |
358 | name='edit_repo_fields_create', |
|
358 | name='edit_repo_fields_create', | |
359 | pattern='/{repo_name:.*?[^/]}/settings/fields/create', repo_route=True) |
|
359 | pattern='/{repo_name:.*?[^/]}/settings/fields/create', repo_route=True) | |
360 | config.add_route( |
|
360 | config.add_route( | |
361 | name='edit_repo_fields_delete', |
|
361 | name='edit_repo_fields_delete', | |
362 | pattern='/{repo_name:.*?[^/]}/settings/fields/{field_id}/delete', repo_route=True) |
|
362 | pattern='/{repo_name:.*?[^/]}/settings/fields/{field_id}/delete', repo_route=True) | |
363 |
|
363 | |||
364 | # Locking |
|
364 | # Locking | |
365 | config.add_route( |
|
365 | config.add_route( | |
366 | name='repo_edit_toggle_locking', |
|
366 | name='repo_edit_toggle_locking', | |
367 | pattern='/{repo_name:.*?[^/]}/settings/toggle_locking', repo_route=True) |
|
367 | pattern='/{repo_name:.*?[^/]}/settings/toggle_locking', repo_route=True) | |
368 |
|
368 | |||
369 | # Remote |
|
369 | # Remote | |
370 | config.add_route( |
|
370 | config.add_route( | |
371 | name='edit_repo_remote', |
|
371 | name='edit_repo_remote', | |
372 | pattern='/{repo_name:.*?[^/]}/settings/remote', repo_route=True) |
|
372 | pattern='/{repo_name:.*?[^/]}/settings/remote', repo_route=True) | |
373 | config.add_route( |
|
373 | config.add_route( | |
374 | name='edit_repo_remote_pull', |
|
374 | name='edit_repo_remote_pull', | |
375 | pattern='/{repo_name:.*?[^/]}/settings/remote/pull', repo_route=True) |
|
375 | pattern='/{repo_name:.*?[^/]}/settings/remote/pull', repo_route=True) | |
376 | config.add_route( |
|
376 | config.add_route( | |
377 | name='edit_repo_remote_push', |
|
377 | name='edit_repo_remote_push', | |
378 | pattern='/{repo_name:.*?[^/]}/settings/remote/push', repo_route=True) |
|
378 | pattern='/{repo_name:.*?[^/]}/settings/remote/push', repo_route=True) | |
379 |
|
379 | |||
380 | # Statistics |
|
380 | # Statistics | |
381 | config.add_route( |
|
381 | config.add_route( | |
382 | name='edit_repo_statistics', |
|
382 | name='edit_repo_statistics', | |
383 | pattern='/{repo_name:.*?[^/]}/settings/statistics', repo_route=True) |
|
383 | pattern='/{repo_name:.*?[^/]}/settings/statistics', repo_route=True) | |
384 | config.add_route( |
|
384 | config.add_route( | |
385 | name='edit_repo_statistics_reset', |
|
385 | name='edit_repo_statistics_reset', | |
386 | pattern='/{repo_name:.*?[^/]}/settings/statistics/update', repo_route=True) |
|
386 | pattern='/{repo_name:.*?[^/]}/settings/statistics/update', repo_route=True) | |
387 |
|
387 | |||
388 | # Issue trackers |
|
388 | # Issue trackers | |
389 | config.add_route( |
|
389 | config.add_route( | |
390 | name='edit_repo_issuetracker', |
|
390 | name='edit_repo_issuetracker', | |
391 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers', repo_route=True) |
|
391 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers', repo_route=True) | |
392 | config.add_route( |
|
392 | config.add_route( | |
393 | name='edit_repo_issuetracker_test', |
|
393 | name='edit_repo_issuetracker_test', | |
394 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/test', repo_route=True) |
|
394 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/test', repo_route=True) | |
395 | config.add_route( |
|
395 | config.add_route( | |
396 | name='edit_repo_issuetracker_delete', |
|
396 | name='edit_repo_issuetracker_delete', | |
397 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/delete', repo_route=True) |
|
397 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/delete', repo_route=True) | |
398 | config.add_route( |
|
398 | config.add_route( | |
399 | name='edit_repo_issuetracker_update', |
|
399 | name='edit_repo_issuetracker_update', | |
400 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/update', repo_route=True) |
|
400 | pattern='/{repo_name:.*?[^/]}/settings/issue_trackers/update', repo_route=True) | |
401 |
|
401 | |||
402 | # VCS Settings |
|
402 | # VCS Settings | |
403 | config.add_route( |
|
403 | config.add_route( | |
404 | name='edit_repo_vcs', |
|
404 | name='edit_repo_vcs', | |
405 | pattern='/{repo_name:.*?[^/]}/settings/vcs', repo_route=True) |
|
405 | pattern='/{repo_name:.*?[^/]}/settings/vcs', repo_route=True) | |
406 | config.add_route( |
|
406 | config.add_route( | |
407 | name='edit_repo_vcs_update', |
|
407 | name='edit_repo_vcs_update', | |
408 | pattern='/{repo_name:.*?[^/]}/settings/vcs/update', repo_route=True) |
|
408 | pattern='/{repo_name:.*?[^/]}/settings/vcs/update', repo_route=True) | |
409 |
|
409 | |||
410 | # svn pattern |
|
410 | # svn pattern | |
411 | config.add_route( |
|
411 | config.add_route( | |
412 | name='edit_repo_vcs_svn_pattern_delete', |
|
412 | name='edit_repo_vcs_svn_pattern_delete', | |
413 | pattern='/{repo_name:.*?[^/]}/settings/vcs/svn_pattern/delete', repo_route=True) |
|
413 | pattern='/{repo_name:.*?[^/]}/settings/vcs/svn_pattern/delete', repo_route=True) | |
414 |
|
414 | |||
415 | # Repo Review Rules (EE feature) |
|
415 | # Repo Review Rules (EE feature) | |
416 | config.add_route( |
|
416 | config.add_route( | |
417 | name='repo_reviewers', |
|
417 | name='repo_reviewers', | |
418 | pattern='/{repo_name:.*?[^/]}/settings/review/rules', repo_route=True) |
|
418 | pattern='/{repo_name:.*?[^/]}/settings/review/rules', repo_route=True) | |
419 |
|
419 | |||
420 | config.add_route( |
|
420 | config.add_route( | |
421 | name='repo_default_reviewers_data', |
|
421 | name='repo_default_reviewers_data', | |
422 | pattern='/{repo_name:.*?[^/]}/settings/review/default-reviewers', repo_route=True) |
|
422 | pattern='/{repo_name:.*?[^/]}/settings/review/default-reviewers', repo_route=True) | |
423 |
|
423 | |||
|
424 | # Repo Automation (EE feature) | |||
|
425 | config.add_route( | |||
|
426 | name='repo_automation', | |||
|
427 | pattern='/{repo_name:.*?[^/]}/settings/automation', repo_route=True) | |||
|
428 | ||||
424 | # Strip |
|
429 | # Strip | |
425 | config.add_route( |
|
430 | config.add_route( | |
426 | name='edit_repo_strip', |
|
431 | name='edit_repo_strip', | |
427 | pattern='/{repo_name:.*?[^/]}/settings/strip', repo_route=True) |
|
432 | pattern='/{repo_name:.*?[^/]}/settings/strip', repo_route=True) | |
428 |
|
433 | |||
429 | config.add_route( |
|
434 | config.add_route( | |
430 | name='strip_check', |
|
435 | name='strip_check', | |
431 | pattern='/{repo_name:.*?[^/]}/settings/strip_check', repo_route=True) |
|
436 | pattern='/{repo_name:.*?[^/]}/settings/strip_check', repo_route=True) | |
432 |
|
437 | |||
433 | config.add_route( |
|
438 | config.add_route( | |
434 | name='strip_execute', |
|
439 | name='strip_execute', | |
435 | pattern='/{repo_name:.*?[^/]}/settings/strip_execute', repo_route=True) |
|
440 | pattern='/{repo_name:.*?[^/]}/settings/strip_execute', repo_route=True) | |
436 |
|
441 | |||
437 | # Audit logs |
|
442 | # Audit logs | |
438 | config.add_route( |
|
443 | config.add_route( | |
439 | name='edit_repo_audit_logs', |
|
444 | name='edit_repo_audit_logs', | |
440 | pattern='/{repo_name:.*?[^/]}/settings/audit_logs', repo_route=True) |
|
445 | pattern='/{repo_name:.*?[^/]}/settings/audit_logs', repo_route=True) | |
441 |
|
446 | |||
442 | # ATOM/RSS Feed |
|
447 | # ATOM/RSS Feed | |
443 | config.add_route( |
|
448 | config.add_route( | |
444 | name='rss_feed_home', |
|
449 | name='rss_feed_home', | |
445 | pattern='/{repo_name:.*?[^/]}/feed/rss', repo_route=True) |
|
450 | pattern='/{repo_name:.*?[^/]}/feed/rss', repo_route=True) | |
446 |
|
451 | |||
447 | config.add_route( |
|
452 | config.add_route( | |
448 | name='atom_feed_home', |
|
453 | name='atom_feed_home', | |
449 | pattern='/{repo_name:.*?[^/]}/feed/atom', repo_route=True) |
|
454 | pattern='/{repo_name:.*?[^/]}/feed/atom', repo_route=True) | |
450 |
|
455 | |||
451 | # NOTE(marcink): needs to be at the end for catch-all |
|
456 | # NOTE(marcink): needs to be at the end for catch-all | |
452 | add_route_with_slash( |
|
457 | add_route_with_slash( | |
453 | config, |
|
458 | config, | |
454 | name='repo_summary', |
|
459 | name='repo_summary', | |
455 | pattern='/{repo_name:.*?[^/]}', repo_route=True) |
|
460 | pattern='/{repo_name:.*?[^/]}', repo_route=True) | |
456 |
|
461 | |||
457 | # Scan module for configuration decorators. |
|
462 | # Scan module for configuration decorators. | |
458 | config.scan('.views', ignore='.tests') |
|
463 | config.scan('.views', ignore='.tests') |
@@ -1,320 +1,321 b'' | |||||
1 |
|
1 | |||
2 | /****************************************************************************** |
|
2 | /****************************************************************************** | |
3 | * * |
|
3 | * * | |
4 | * DO NOT CHANGE THIS FILE MANUALLY * |
|
4 | * DO NOT CHANGE THIS FILE MANUALLY * | |
5 | * * |
|
5 | * * | |
6 | * * |
|
6 | * * | |
7 | * This file is automatically generated when the app starts up with * |
|
7 | * This file is automatically generated when the app starts up with * | |
8 | * generate_js_files = true * |
|
8 | * generate_js_files = true * | |
9 | * * |
|
9 | * * | |
10 | * To add a route here pass jsroute=True to the route definition in the app * |
|
10 | * To add a route here pass jsroute=True to the route definition in the app * | |
11 | * * |
|
11 | * * | |
12 | ******************************************************************************/ |
|
12 | ******************************************************************************/ | |
13 | function registerRCRoutes() { |
|
13 | function registerRCRoutes() { | |
14 | // routes registration |
|
14 | // routes registration | |
15 | pyroutes.register('favicon', '/favicon.ico', []); |
|
15 | pyroutes.register('favicon', '/favicon.ico', []); | |
16 | pyroutes.register('robots', '/robots.txt', []); |
|
16 | pyroutes.register('robots', '/robots.txt', []); | |
17 | pyroutes.register('auth_home', '/_admin/auth*traverse', []); |
|
17 | pyroutes.register('auth_home', '/_admin/auth*traverse', []); | |
18 | pyroutes.register('global_integrations_new', '/_admin/integrations/new', []); |
|
18 | pyroutes.register('global_integrations_new', '/_admin/integrations/new', []); | |
19 | pyroutes.register('global_integrations_home', '/_admin/integrations', []); |
|
19 | pyroutes.register('global_integrations_home', '/_admin/integrations', []); | |
20 | pyroutes.register('global_integrations_list', '/_admin/integrations/%(integration)s', ['integration']); |
|
20 | pyroutes.register('global_integrations_list', '/_admin/integrations/%(integration)s', ['integration']); | |
21 | pyroutes.register('global_integrations_create', '/_admin/integrations/%(integration)s/new', ['integration']); |
|
21 | pyroutes.register('global_integrations_create', '/_admin/integrations/%(integration)s/new', ['integration']); | |
22 | pyroutes.register('global_integrations_edit', '/_admin/integrations/%(integration)s/%(integration_id)s', ['integration', 'integration_id']); |
|
22 | pyroutes.register('global_integrations_edit', '/_admin/integrations/%(integration)s/%(integration_id)s', ['integration', 'integration_id']); | |
23 | pyroutes.register('repo_group_integrations_home', '/%(repo_group_name)s/_settings/integrations', ['repo_group_name']); |
|
23 | pyroutes.register('repo_group_integrations_home', '/%(repo_group_name)s/_settings/integrations', ['repo_group_name']); | |
24 | pyroutes.register('repo_group_integrations_new', '/%(repo_group_name)s/_settings/integrations/new', ['repo_group_name']); |
|
24 | pyroutes.register('repo_group_integrations_new', '/%(repo_group_name)s/_settings/integrations/new', ['repo_group_name']); | |
25 | pyroutes.register('repo_group_integrations_list', '/%(repo_group_name)s/_settings/integrations/%(integration)s', ['repo_group_name', 'integration']); |
|
25 | pyroutes.register('repo_group_integrations_list', '/%(repo_group_name)s/_settings/integrations/%(integration)s', ['repo_group_name', 'integration']); | |
26 | pyroutes.register('repo_group_integrations_create', '/%(repo_group_name)s/_settings/integrations/%(integration)s/new', ['repo_group_name', 'integration']); |
|
26 | pyroutes.register('repo_group_integrations_create', '/%(repo_group_name)s/_settings/integrations/%(integration)s/new', ['repo_group_name', 'integration']); | |
27 | pyroutes.register('repo_group_integrations_edit', '/%(repo_group_name)s/_settings/integrations/%(integration)s/%(integration_id)s', ['repo_group_name', 'integration', 'integration_id']); |
|
27 | pyroutes.register('repo_group_integrations_edit', '/%(repo_group_name)s/_settings/integrations/%(integration)s/%(integration_id)s', ['repo_group_name', 'integration', 'integration_id']); | |
28 | pyroutes.register('repo_integrations_home', '/%(repo_name)s/settings/integrations', ['repo_name']); |
|
28 | pyroutes.register('repo_integrations_home', '/%(repo_name)s/settings/integrations', ['repo_name']); | |
29 | pyroutes.register('repo_integrations_new', '/%(repo_name)s/settings/integrations/new', ['repo_name']); |
|
29 | pyroutes.register('repo_integrations_new', '/%(repo_name)s/settings/integrations/new', ['repo_name']); | |
30 | pyroutes.register('repo_integrations_list', '/%(repo_name)s/settings/integrations/%(integration)s', ['repo_name', 'integration']); |
|
30 | pyroutes.register('repo_integrations_list', '/%(repo_name)s/settings/integrations/%(integration)s', ['repo_name', 'integration']); | |
31 | pyroutes.register('repo_integrations_create', '/%(repo_name)s/settings/integrations/%(integration)s/new', ['repo_name', 'integration']); |
|
31 | pyroutes.register('repo_integrations_create', '/%(repo_name)s/settings/integrations/%(integration)s/new', ['repo_name', 'integration']); | |
32 | pyroutes.register('repo_integrations_edit', '/%(repo_name)s/settings/integrations/%(integration)s/%(integration_id)s', ['repo_name', 'integration', 'integration_id']); |
|
32 | pyroutes.register('repo_integrations_edit', '/%(repo_name)s/settings/integrations/%(integration)s/%(integration_id)s', ['repo_name', 'integration', 'integration_id']); | |
33 | pyroutes.register('ops_ping', '/_admin/ops/ping', []); |
|
33 | pyroutes.register('ops_ping', '/_admin/ops/ping', []); | |
34 | pyroutes.register('ops_error_test', '/_admin/ops/error', []); |
|
34 | pyroutes.register('ops_error_test', '/_admin/ops/error', []); | |
35 | pyroutes.register('ops_redirect_test', '/_admin/ops/redirect', []); |
|
35 | pyroutes.register('ops_redirect_test', '/_admin/ops/redirect', []); | |
36 | pyroutes.register('ops_ping_legacy', '/_admin/ping', []); |
|
36 | pyroutes.register('ops_ping_legacy', '/_admin/ping', []); | |
37 | pyroutes.register('ops_error_test_legacy', '/_admin/error_test', []); |
|
37 | pyroutes.register('ops_error_test_legacy', '/_admin/error_test', []); | |
38 | pyroutes.register('admin_home', '/_admin', []); |
|
38 | pyroutes.register('admin_home', '/_admin', []); | |
39 | pyroutes.register('admin_audit_logs', '/_admin/audit_logs', []); |
|
39 | pyroutes.register('admin_audit_logs', '/_admin/audit_logs', []); | |
40 | pyroutes.register('admin_audit_log_entry', '/_admin/audit_logs/%(audit_log_id)s', ['audit_log_id']); |
|
40 | pyroutes.register('admin_audit_log_entry', '/_admin/audit_logs/%(audit_log_id)s', ['audit_log_id']); | |
41 | pyroutes.register('pull_requests_global_0', '/_admin/pull_requests/%(pull_request_id)s', ['pull_request_id']); |
|
41 | pyroutes.register('pull_requests_global_0', '/_admin/pull_requests/%(pull_request_id)s', ['pull_request_id']); | |
42 | pyroutes.register('pull_requests_global_1', '/_admin/pull-requests/%(pull_request_id)s', ['pull_request_id']); |
|
42 | pyroutes.register('pull_requests_global_1', '/_admin/pull-requests/%(pull_request_id)s', ['pull_request_id']); | |
43 | pyroutes.register('pull_requests_global', '/_admin/pull-request/%(pull_request_id)s', ['pull_request_id']); |
|
43 | pyroutes.register('pull_requests_global', '/_admin/pull-request/%(pull_request_id)s', ['pull_request_id']); | |
44 | pyroutes.register('admin_settings_open_source', '/_admin/settings/open_source', []); |
|
44 | pyroutes.register('admin_settings_open_source', '/_admin/settings/open_source', []); | |
45 | pyroutes.register('admin_settings_vcs_svn_generate_cfg', '/_admin/settings/vcs/svn_generate_cfg', []); |
|
45 | pyroutes.register('admin_settings_vcs_svn_generate_cfg', '/_admin/settings/vcs/svn_generate_cfg', []); | |
46 | pyroutes.register('admin_settings_system', '/_admin/settings/system', []); |
|
46 | pyroutes.register('admin_settings_system', '/_admin/settings/system', []); | |
47 | pyroutes.register('admin_settings_system_update', '/_admin/settings/system/updates', []); |
|
47 | pyroutes.register('admin_settings_system_update', '/_admin/settings/system/updates', []); | |
48 | pyroutes.register('admin_settings_sessions', '/_admin/settings/sessions', []); |
|
48 | pyroutes.register('admin_settings_sessions', '/_admin/settings/sessions', []); | |
49 | pyroutes.register('admin_settings_sessions_cleanup', '/_admin/settings/sessions/cleanup', []); |
|
49 | pyroutes.register('admin_settings_sessions_cleanup', '/_admin/settings/sessions/cleanup', []); | |
50 | pyroutes.register('admin_settings_process_management', '/_admin/settings/process_management', []); |
|
50 | pyroutes.register('admin_settings_process_management', '/_admin/settings/process_management', []); | |
51 | pyroutes.register('admin_settings_process_management_data', '/_admin/settings/process_management/data', []); |
|
51 | pyroutes.register('admin_settings_process_management_data', '/_admin/settings/process_management/data', []); | |
52 | pyroutes.register('admin_settings_process_management_signal', '/_admin/settings/process_management/signal', []); |
|
52 | pyroutes.register('admin_settings_process_management_signal', '/_admin/settings/process_management/signal', []); | |
53 | pyroutes.register('admin_settings_process_management_master_signal', '/_admin/settings/process_management/master_signal', []); |
|
53 | pyroutes.register('admin_settings_process_management_master_signal', '/_admin/settings/process_management/master_signal', []); | |
54 | pyroutes.register('admin_defaults_repositories', '/_admin/defaults/repositories', []); |
|
54 | pyroutes.register('admin_defaults_repositories', '/_admin/defaults/repositories', []); | |
55 | pyroutes.register('admin_defaults_repositories_update', '/_admin/defaults/repositories/update', []); |
|
55 | pyroutes.register('admin_defaults_repositories_update', '/_admin/defaults/repositories/update', []); | |
56 | pyroutes.register('admin_settings', '/_admin/settings', []); |
|
56 | pyroutes.register('admin_settings', '/_admin/settings', []); | |
57 | pyroutes.register('admin_settings_update', '/_admin/settings/update', []); |
|
57 | pyroutes.register('admin_settings_update', '/_admin/settings/update', []); | |
58 | pyroutes.register('admin_settings_global', '/_admin/settings/global', []); |
|
58 | pyroutes.register('admin_settings_global', '/_admin/settings/global', []); | |
59 | pyroutes.register('admin_settings_global_update', '/_admin/settings/global/update', []); |
|
59 | pyroutes.register('admin_settings_global_update', '/_admin/settings/global/update', []); | |
60 | pyroutes.register('admin_settings_vcs', '/_admin/settings/vcs', []); |
|
60 | pyroutes.register('admin_settings_vcs', '/_admin/settings/vcs', []); | |
61 | pyroutes.register('admin_settings_vcs_update', '/_admin/settings/vcs/update', []); |
|
61 | pyroutes.register('admin_settings_vcs_update', '/_admin/settings/vcs/update', []); | |
62 | pyroutes.register('admin_settings_vcs_svn_pattern_delete', '/_admin/settings/vcs/svn_pattern_delete', []); |
|
62 | pyroutes.register('admin_settings_vcs_svn_pattern_delete', '/_admin/settings/vcs/svn_pattern_delete', []); | |
63 | pyroutes.register('admin_settings_mapping', '/_admin/settings/mapping', []); |
|
63 | pyroutes.register('admin_settings_mapping', '/_admin/settings/mapping', []); | |
64 | pyroutes.register('admin_settings_mapping_update', '/_admin/settings/mapping/update', []); |
|
64 | pyroutes.register('admin_settings_mapping_update', '/_admin/settings/mapping/update', []); | |
65 | pyroutes.register('admin_settings_visual', '/_admin/settings/visual', []); |
|
65 | pyroutes.register('admin_settings_visual', '/_admin/settings/visual', []); | |
66 | pyroutes.register('admin_settings_visual_update', '/_admin/settings/visual/update', []); |
|
66 | pyroutes.register('admin_settings_visual_update', '/_admin/settings/visual/update', []); | |
67 | pyroutes.register('admin_settings_issuetracker', '/_admin/settings/issue-tracker', []); |
|
67 | pyroutes.register('admin_settings_issuetracker', '/_admin/settings/issue-tracker', []); | |
68 | pyroutes.register('admin_settings_issuetracker_update', '/_admin/settings/issue-tracker/update', []); |
|
68 | pyroutes.register('admin_settings_issuetracker_update', '/_admin/settings/issue-tracker/update', []); | |
69 | pyroutes.register('admin_settings_issuetracker_test', '/_admin/settings/issue-tracker/test', []); |
|
69 | pyroutes.register('admin_settings_issuetracker_test', '/_admin/settings/issue-tracker/test', []); | |
70 | pyroutes.register('admin_settings_issuetracker_delete', '/_admin/settings/issue-tracker/delete', []); |
|
70 | pyroutes.register('admin_settings_issuetracker_delete', '/_admin/settings/issue-tracker/delete', []); | |
71 | pyroutes.register('admin_settings_email', '/_admin/settings/email', []); |
|
71 | pyroutes.register('admin_settings_email', '/_admin/settings/email', []); | |
72 | pyroutes.register('admin_settings_email_update', '/_admin/settings/email/update', []); |
|
72 | pyroutes.register('admin_settings_email_update', '/_admin/settings/email/update', []); | |
73 | pyroutes.register('admin_settings_hooks', '/_admin/settings/hooks', []); |
|
73 | pyroutes.register('admin_settings_hooks', '/_admin/settings/hooks', []); | |
74 | pyroutes.register('admin_settings_hooks_update', '/_admin/settings/hooks/update', []); |
|
74 | pyroutes.register('admin_settings_hooks_update', '/_admin/settings/hooks/update', []); | |
75 | pyroutes.register('admin_settings_hooks_delete', '/_admin/settings/hooks/delete', []); |
|
75 | pyroutes.register('admin_settings_hooks_delete', '/_admin/settings/hooks/delete', []); | |
76 | pyroutes.register('admin_settings_search', '/_admin/settings/search', []); |
|
76 | pyroutes.register('admin_settings_search', '/_admin/settings/search', []); | |
77 | pyroutes.register('admin_settings_labs', '/_admin/settings/labs', []); |
|
77 | pyroutes.register('admin_settings_labs', '/_admin/settings/labs', []); | |
78 | pyroutes.register('admin_settings_labs_update', '/_admin/settings/labs/update', []); |
|
78 | pyroutes.register('admin_settings_labs_update', '/_admin/settings/labs/update', []); | |
79 | pyroutes.register('admin_permissions_application', '/_admin/permissions/application', []); |
|
79 | pyroutes.register('admin_permissions_application', '/_admin/permissions/application', []); | |
80 | pyroutes.register('admin_permissions_application_update', '/_admin/permissions/application/update', []); |
|
80 | pyroutes.register('admin_permissions_application_update', '/_admin/permissions/application/update', []); | |
81 | pyroutes.register('admin_permissions_global', '/_admin/permissions/global', []); |
|
81 | pyroutes.register('admin_permissions_global', '/_admin/permissions/global', []); | |
82 | pyroutes.register('admin_permissions_global_update', '/_admin/permissions/global/update', []); |
|
82 | pyroutes.register('admin_permissions_global_update', '/_admin/permissions/global/update', []); | |
83 | pyroutes.register('admin_permissions_object', '/_admin/permissions/object', []); |
|
83 | pyroutes.register('admin_permissions_object', '/_admin/permissions/object', []); | |
84 | pyroutes.register('admin_permissions_object_update', '/_admin/permissions/object/update', []); |
|
84 | pyroutes.register('admin_permissions_object_update', '/_admin/permissions/object/update', []); | |
85 | pyroutes.register('admin_permissions_ips', '/_admin/permissions/ips', []); |
|
85 | pyroutes.register('admin_permissions_ips', '/_admin/permissions/ips', []); | |
86 | pyroutes.register('admin_permissions_overview', '/_admin/permissions/overview', []); |
|
86 | pyroutes.register('admin_permissions_overview', '/_admin/permissions/overview', []); | |
87 | pyroutes.register('admin_permissions_auth_token_access', '/_admin/permissions/auth_token_access', []); |
|
87 | pyroutes.register('admin_permissions_auth_token_access', '/_admin/permissions/auth_token_access', []); | |
88 | pyroutes.register('admin_permissions_ssh_keys', '/_admin/permissions/ssh_keys', []); |
|
88 | pyroutes.register('admin_permissions_ssh_keys', '/_admin/permissions/ssh_keys', []); | |
89 | pyroutes.register('admin_permissions_ssh_keys_data', '/_admin/permissions/ssh_keys/data', []); |
|
89 | pyroutes.register('admin_permissions_ssh_keys_data', '/_admin/permissions/ssh_keys/data', []); | |
90 | pyroutes.register('admin_permissions_ssh_keys_update', '/_admin/permissions/ssh_keys/update', []); |
|
90 | pyroutes.register('admin_permissions_ssh_keys_update', '/_admin/permissions/ssh_keys/update', []); | |
91 | pyroutes.register('users', '/_admin/users', []); |
|
91 | pyroutes.register('users', '/_admin/users', []); | |
92 | pyroutes.register('users_data', '/_admin/users_data', []); |
|
92 | pyroutes.register('users_data', '/_admin/users_data', []); | |
93 | pyroutes.register('users_create', '/_admin/users/create', []); |
|
93 | pyroutes.register('users_create', '/_admin/users/create', []); | |
94 | pyroutes.register('users_new', '/_admin/users/new', []); |
|
94 | pyroutes.register('users_new', '/_admin/users/new', []); | |
95 | pyroutes.register('user_edit', '/_admin/users/%(user_id)s/edit', ['user_id']); |
|
95 | pyroutes.register('user_edit', '/_admin/users/%(user_id)s/edit', ['user_id']); | |
96 | pyroutes.register('user_edit_advanced', '/_admin/users/%(user_id)s/edit/advanced', ['user_id']); |
|
96 | pyroutes.register('user_edit_advanced', '/_admin/users/%(user_id)s/edit/advanced', ['user_id']); | |
97 | pyroutes.register('user_edit_global_perms', '/_admin/users/%(user_id)s/edit/global_permissions', ['user_id']); |
|
97 | pyroutes.register('user_edit_global_perms', '/_admin/users/%(user_id)s/edit/global_permissions', ['user_id']); | |
98 | pyroutes.register('user_edit_global_perms_update', '/_admin/users/%(user_id)s/edit/global_permissions/update', ['user_id']); |
|
98 | pyroutes.register('user_edit_global_perms_update', '/_admin/users/%(user_id)s/edit/global_permissions/update', ['user_id']); | |
99 | pyroutes.register('user_update', '/_admin/users/%(user_id)s/update', ['user_id']); |
|
99 | pyroutes.register('user_update', '/_admin/users/%(user_id)s/update', ['user_id']); | |
100 | pyroutes.register('user_delete', '/_admin/users/%(user_id)s/delete', ['user_id']); |
|
100 | pyroutes.register('user_delete', '/_admin/users/%(user_id)s/delete', ['user_id']); | |
101 | pyroutes.register('user_force_password_reset', '/_admin/users/%(user_id)s/password_reset', ['user_id']); |
|
101 | pyroutes.register('user_force_password_reset', '/_admin/users/%(user_id)s/password_reset', ['user_id']); | |
102 | pyroutes.register('user_create_personal_repo_group', '/_admin/users/%(user_id)s/create_repo_group', ['user_id']); |
|
102 | pyroutes.register('user_create_personal_repo_group', '/_admin/users/%(user_id)s/create_repo_group', ['user_id']); | |
103 | pyroutes.register('edit_user_auth_tokens', '/_admin/users/%(user_id)s/edit/auth_tokens', ['user_id']); |
|
103 | pyroutes.register('edit_user_auth_tokens', '/_admin/users/%(user_id)s/edit/auth_tokens', ['user_id']); | |
104 | pyroutes.register('edit_user_auth_tokens_add', '/_admin/users/%(user_id)s/edit/auth_tokens/new', ['user_id']); |
|
104 | pyroutes.register('edit_user_auth_tokens_add', '/_admin/users/%(user_id)s/edit/auth_tokens/new', ['user_id']); | |
105 | pyroutes.register('edit_user_auth_tokens_delete', '/_admin/users/%(user_id)s/edit/auth_tokens/delete', ['user_id']); |
|
105 | pyroutes.register('edit_user_auth_tokens_delete', '/_admin/users/%(user_id)s/edit/auth_tokens/delete', ['user_id']); | |
106 | pyroutes.register('edit_user_ssh_keys', '/_admin/users/%(user_id)s/edit/ssh_keys', ['user_id']); |
|
106 | pyroutes.register('edit_user_ssh_keys', '/_admin/users/%(user_id)s/edit/ssh_keys', ['user_id']); | |
107 | pyroutes.register('edit_user_ssh_keys_generate_keypair', '/_admin/users/%(user_id)s/edit/ssh_keys/generate', ['user_id']); |
|
107 | pyroutes.register('edit_user_ssh_keys_generate_keypair', '/_admin/users/%(user_id)s/edit/ssh_keys/generate', ['user_id']); | |
108 | pyroutes.register('edit_user_ssh_keys_add', '/_admin/users/%(user_id)s/edit/ssh_keys/new', ['user_id']); |
|
108 | pyroutes.register('edit_user_ssh_keys_add', '/_admin/users/%(user_id)s/edit/ssh_keys/new', ['user_id']); | |
109 | pyroutes.register('edit_user_ssh_keys_delete', '/_admin/users/%(user_id)s/edit/ssh_keys/delete', ['user_id']); |
|
109 | pyroutes.register('edit_user_ssh_keys_delete', '/_admin/users/%(user_id)s/edit/ssh_keys/delete', ['user_id']); | |
110 | pyroutes.register('edit_user_emails', '/_admin/users/%(user_id)s/edit/emails', ['user_id']); |
|
110 | pyroutes.register('edit_user_emails', '/_admin/users/%(user_id)s/edit/emails', ['user_id']); | |
111 | pyroutes.register('edit_user_emails_add', '/_admin/users/%(user_id)s/edit/emails/new', ['user_id']); |
|
111 | pyroutes.register('edit_user_emails_add', '/_admin/users/%(user_id)s/edit/emails/new', ['user_id']); | |
112 | pyroutes.register('edit_user_emails_delete', '/_admin/users/%(user_id)s/edit/emails/delete', ['user_id']); |
|
112 | pyroutes.register('edit_user_emails_delete', '/_admin/users/%(user_id)s/edit/emails/delete', ['user_id']); | |
113 | pyroutes.register('edit_user_ips', '/_admin/users/%(user_id)s/edit/ips', ['user_id']); |
|
113 | pyroutes.register('edit_user_ips', '/_admin/users/%(user_id)s/edit/ips', ['user_id']); | |
114 | pyroutes.register('edit_user_ips_add', '/_admin/users/%(user_id)s/edit/ips/new', ['user_id']); |
|
114 | pyroutes.register('edit_user_ips_add', '/_admin/users/%(user_id)s/edit/ips/new', ['user_id']); | |
115 | pyroutes.register('edit_user_ips_delete', '/_admin/users/%(user_id)s/edit/ips/delete', ['user_id']); |
|
115 | pyroutes.register('edit_user_ips_delete', '/_admin/users/%(user_id)s/edit/ips/delete', ['user_id']); | |
116 | pyroutes.register('edit_user_perms_summary', '/_admin/users/%(user_id)s/edit/permissions_summary', ['user_id']); |
|
116 | pyroutes.register('edit_user_perms_summary', '/_admin/users/%(user_id)s/edit/permissions_summary', ['user_id']); | |
117 | pyroutes.register('edit_user_perms_summary_json', '/_admin/users/%(user_id)s/edit/permissions_summary/json', ['user_id']); |
|
117 | pyroutes.register('edit_user_perms_summary_json', '/_admin/users/%(user_id)s/edit/permissions_summary/json', ['user_id']); | |
118 | pyroutes.register('edit_user_groups_management', '/_admin/users/%(user_id)s/edit/groups_management', ['user_id']); |
|
118 | pyroutes.register('edit_user_groups_management', '/_admin/users/%(user_id)s/edit/groups_management', ['user_id']); | |
119 | pyroutes.register('edit_user_groups_management_updates', '/_admin/users/%(user_id)s/edit/edit_user_groups_management/updates', ['user_id']); |
|
119 | pyroutes.register('edit_user_groups_management_updates', '/_admin/users/%(user_id)s/edit/edit_user_groups_management/updates', ['user_id']); | |
120 | pyroutes.register('edit_user_audit_logs', '/_admin/users/%(user_id)s/edit/audit', ['user_id']); |
|
120 | pyroutes.register('edit_user_audit_logs', '/_admin/users/%(user_id)s/edit/audit', ['user_id']); | |
121 | pyroutes.register('user_groups', '/_admin/user_groups', []); |
|
121 | pyroutes.register('user_groups', '/_admin/user_groups', []); | |
122 | pyroutes.register('user_groups_data', '/_admin/user_groups_data', []); |
|
122 | pyroutes.register('user_groups_data', '/_admin/user_groups_data', []); | |
123 | pyroutes.register('user_groups_new', '/_admin/user_groups/new', []); |
|
123 | pyroutes.register('user_groups_new', '/_admin/user_groups/new', []); | |
124 | pyroutes.register('user_groups_create', '/_admin/user_groups/create', []); |
|
124 | pyroutes.register('user_groups_create', '/_admin/user_groups/create', []); | |
125 | pyroutes.register('repos', '/_admin/repos', []); |
|
125 | pyroutes.register('repos', '/_admin/repos', []); | |
126 | pyroutes.register('repo_new', '/_admin/repos/new', []); |
|
126 | pyroutes.register('repo_new', '/_admin/repos/new', []); | |
127 | pyroutes.register('repo_create', '/_admin/repos/create', []); |
|
127 | pyroutes.register('repo_create', '/_admin/repos/create', []); | |
128 | pyroutes.register('repo_groups', '/_admin/repo_groups', []); |
|
128 | pyroutes.register('repo_groups', '/_admin/repo_groups', []); | |
129 | pyroutes.register('repo_group_new', '/_admin/repo_group/new', []); |
|
129 | pyroutes.register('repo_group_new', '/_admin/repo_group/new', []); | |
130 | pyroutes.register('repo_group_create', '/_admin/repo_group/create', []); |
|
130 | pyroutes.register('repo_group_create', '/_admin/repo_group/create', []); | |
131 | pyroutes.register('channelstream_connect', '/_admin/channelstream/connect', []); |
|
131 | pyroutes.register('channelstream_connect', '/_admin/channelstream/connect', []); | |
132 | pyroutes.register('channelstream_subscribe', '/_admin/channelstream/subscribe', []); |
|
132 | pyroutes.register('channelstream_subscribe', '/_admin/channelstream/subscribe', []); | |
133 | pyroutes.register('channelstream_proxy', '/_channelstream', []); |
|
133 | pyroutes.register('channelstream_proxy', '/_channelstream', []); | |
134 | pyroutes.register('login', '/_admin/login', []); |
|
134 | pyroutes.register('login', '/_admin/login', []); | |
135 | pyroutes.register('logout', '/_admin/logout', []); |
|
135 | pyroutes.register('logout', '/_admin/logout', []); | |
136 | pyroutes.register('register', '/_admin/register', []); |
|
136 | pyroutes.register('register', '/_admin/register', []); | |
137 | pyroutes.register('reset_password', '/_admin/password_reset', []); |
|
137 | pyroutes.register('reset_password', '/_admin/password_reset', []); | |
138 | pyroutes.register('reset_password_confirmation', '/_admin/password_reset_confirmation', []); |
|
138 | pyroutes.register('reset_password_confirmation', '/_admin/password_reset_confirmation', []); | |
139 | pyroutes.register('home', '/', []); |
|
139 | pyroutes.register('home', '/', []); | |
140 | pyroutes.register('user_autocomplete_data', '/_users', []); |
|
140 | pyroutes.register('user_autocomplete_data', '/_users', []); | |
141 | pyroutes.register('user_group_autocomplete_data', '/_user_groups', []); |
|
141 | pyroutes.register('user_group_autocomplete_data', '/_user_groups', []); | |
142 | pyroutes.register('repo_list_data', '/_repos', []); |
|
142 | pyroutes.register('repo_list_data', '/_repos', []); | |
143 | pyroutes.register('goto_switcher_data', '/_goto_data', []); |
|
143 | pyroutes.register('goto_switcher_data', '/_goto_data', []); | |
144 | pyroutes.register('journal', '/_admin/journal', []); |
|
144 | pyroutes.register('journal', '/_admin/journal', []); | |
145 | pyroutes.register('journal_rss', '/_admin/journal/rss', []); |
|
145 | pyroutes.register('journal_rss', '/_admin/journal/rss', []); | |
146 | pyroutes.register('journal_atom', '/_admin/journal/atom', []); |
|
146 | pyroutes.register('journal_atom', '/_admin/journal/atom', []); | |
147 | pyroutes.register('journal_public', '/_admin/public_journal', []); |
|
147 | pyroutes.register('journal_public', '/_admin/public_journal', []); | |
148 | pyroutes.register('journal_public_atom', '/_admin/public_journal/atom', []); |
|
148 | pyroutes.register('journal_public_atom', '/_admin/public_journal/atom', []); | |
149 | pyroutes.register('journal_public_atom_old', '/_admin/public_journal_atom', []); |
|
149 | pyroutes.register('journal_public_atom_old', '/_admin/public_journal_atom', []); | |
150 | pyroutes.register('journal_public_rss', '/_admin/public_journal/rss', []); |
|
150 | pyroutes.register('journal_public_rss', '/_admin/public_journal/rss', []); | |
151 | pyroutes.register('journal_public_rss_old', '/_admin/public_journal_rss', []); |
|
151 | pyroutes.register('journal_public_rss_old', '/_admin/public_journal_rss', []); | |
152 | pyroutes.register('toggle_following', '/_admin/toggle_following', []); |
|
152 | pyroutes.register('toggle_following', '/_admin/toggle_following', []); | |
153 | pyroutes.register('repo_creating', '/%(repo_name)s/repo_creating', ['repo_name']); |
|
153 | pyroutes.register('repo_creating', '/%(repo_name)s/repo_creating', ['repo_name']); | |
154 | pyroutes.register('repo_creating_check', '/%(repo_name)s/repo_creating_check', ['repo_name']); |
|
154 | pyroutes.register('repo_creating_check', '/%(repo_name)s/repo_creating_check', ['repo_name']); | |
155 | pyroutes.register('repo_summary_explicit', '/%(repo_name)s/summary', ['repo_name']); |
|
155 | pyroutes.register('repo_summary_explicit', '/%(repo_name)s/summary', ['repo_name']); | |
156 | pyroutes.register('repo_summary_commits', '/%(repo_name)s/summary-commits', ['repo_name']); |
|
156 | pyroutes.register('repo_summary_commits', '/%(repo_name)s/summary-commits', ['repo_name']); | |
157 | pyroutes.register('repo_commit', '/%(repo_name)s/changeset/%(commit_id)s', ['repo_name', 'commit_id']); |
|
157 | pyroutes.register('repo_commit', '/%(repo_name)s/changeset/%(commit_id)s', ['repo_name', 'commit_id']); | |
158 | pyroutes.register('repo_commit_children', '/%(repo_name)s/changeset_children/%(commit_id)s', ['repo_name', 'commit_id']); |
|
158 | pyroutes.register('repo_commit_children', '/%(repo_name)s/changeset_children/%(commit_id)s', ['repo_name', 'commit_id']); | |
159 | pyroutes.register('repo_commit_parents', '/%(repo_name)s/changeset_parents/%(commit_id)s', ['repo_name', 'commit_id']); |
|
159 | pyroutes.register('repo_commit_parents', '/%(repo_name)s/changeset_parents/%(commit_id)s', ['repo_name', 'commit_id']); | |
160 | pyroutes.register('repo_commit_raw', '/%(repo_name)s/changeset-diff/%(commit_id)s', ['repo_name', 'commit_id']); |
|
160 | pyroutes.register('repo_commit_raw', '/%(repo_name)s/changeset-diff/%(commit_id)s', ['repo_name', 'commit_id']); | |
161 | pyroutes.register('repo_commit_patch', '/%(repo_name)s/changeset-patch/%(commit_id)s', ['repo_name', 'commit_id']); |
|
161 | pyroutes.register('repo_commit_patch', '/%(repo_name)s/changeset-patch/%(commit_id)s', ['repo_name', 'commit_id']); | |
162 | pyroutes.register('repo_commit_download', '/%(repo_name)s/changeset-download/%(commit_id)s', ['repo_name', 'commit_id']); |
|
162 | pyroutes.register('repo_commit_download', '/%(repo_name)s/changeset-download/%(commit_id)s', ['repo_name', 'commit_id']); | |
163 | pyroutes.register('repo_commit_data', '/%(repo_name)s/changeset-data/%(commit_id)s', ['repo_name', 'commit_id']); |
|
163 | pyroutes.register('repo_commit_data', '/%(repo_name)s/changeset-data/%(commit_id)s', ['repo_name', 'commit_id']); | |
164 | pyroutes.register('repo_commit_comment_create', '/%(repo_name)s/changeset/%(commit_id)s/comment/create', ['repo_name', 'commit_id']); |
|
164 | pyroutes.register('repo_commit_comment_create', '/%(repo_name)s/changeset/%(commit_id)s/comment/create', ['repo_name', 'commit_id']); | |
165 | pyroutes.register('repo_commit_comment_preview', '/%(repo_name)s/changeset/%(commit_id)s/comment/preview', ['repo_name', 'commit_id']); |
|
165 | pyroutes.register('repo_commit_comment_preview', '/%(repo_name)s/changeset/%(commit_id)s/comment/preview', ['repo_name', 'commit_id']); | |
166 | pyroutes.register('repo_commit_comment_delete', '/%(repo_name)s/changeset/%(commit_id)s/comment/%(comment_id)s/delete', ['repo_name', 'commit_id', 'comment_id']); |
|
166 | pyroutes.register('repo_commit_comment_delete', '/%(repo_name)s/changeset/%(commit_id)s/comment/%(comment_id)s/delete', ['repo_name', 'commit_id', 'comment_id']); | |
167 | pyroutes.register('repo_commit_raw_deprecated', '/%(repo_name)s/raw-changeset/%(commit_id)s', ['repo_name', 'commit_id']); |
|
167 | pyroutes.register('repo_commit_raw_deprecated', '/%(repo_name)s/raw-changeset/%(commit_id)s', ['repo_name', 'commit_id']); | |
168 | pyroutes.register('repo_archivefile', '/%(repo_name)s/archive/%(fname)s', ['repo_name', 'fname']); |
|
168 | pyroutes.register('repo_archivefile', '/%(repo_name)s/archive/%(fname)s', ['repo_name', 'fname']); | |
169 | pyroutes.register('repo_files_diff', '/%(repo_name)s/diff/%(f_path)s', ['repo_name', 'f_path']); |
|
169 | pyroutes.register('repo_files_diff', '/%(repo_name)s/diff/%(f_path)s', ['repo_name', 'f_path']); | |
170 | pyroutes.register('repo_files_diff_2way_redirect', '/%(repo_name)s/diff-2way/%(f_path)s', ['repo_name', 'f_path']); |
|
170 | pyroutes.register('repo_files_diff_2way_redirect', '/%(repo_name)s/diff-2way/%(f_path)s', ['repo_name', 'f_path']); | |
171 | pyroutes.register('repo_files', '/%(repo_name)s/files/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
171 | pyroutes.register('repo_files', '/%(repo_name)s/files/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
172 | pyroutes.register('repo_files:default_path', '/%(repo_name)s/files/%(commit_id)s/', ['repo_name', 'commit_id']); |
|
172 | pyroutes.register('repo_files:default_path', '/%(repo_name)s/files/%(commit_id)s/', ['repo_name', 'commit_id']); | |
173 | pyroutes.register('repo_files:default_commit', '/%(repo_name)s/files', ['repo_name']); |
|
173 | pyroutes.register('repo_files:default_commit', '/%(repo_name)s/files', ['repo_name']); | |
174 | pyroutes.register('repo_files:rendered', '/%(repo_name)s/render/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
174 | pyroutes.register('repo_files:rendered', '/%(repo_name)s/render/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
175 | pyroutes.register('repo_files:annotated', '/%(repo_name)s/annotate/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
175 | pyroutes.register('repo_files:annotated', '/%(repo_name)s/annotate/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
176 | pyroutes.register('repo_files:annotated_previous', '/%(repo_name)s/annotate-previous/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
176 | pyroutes.register('repo_files:annotated_previous', '/%(repo_name)s/annotate-previous/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
177 | pyroutes.register('repo_nodetree_full', '/%(repo_name)s/nodetree_full/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
177 | pyroutes.register('repo_nodetree_full', '/%(repo_name)s/nodetree_full/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
178 | pyroutes.register('repo_nodetree_full:default_path', '/%(repo_name)s/nodetree_full/%(commit_id)s/', ['repo_name', 'commit_id']); |
|
178 | pyroutes.register('repo_nodetree_full:default_path', '/%(repo_name)s/nodetree_full/%(commit_id)s/', ['repo_name', 'commit_id']); | |
179 | pyroutes.register('repo_files_nodelist', '/%(repo_name)s/nodelist/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
179 | pyroutes.register('repo_files_nodelist', '/%(repo_name)s/nodelist/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
180 | pyroutes.register('repo_file_raw', '/%(repo_name)s/raw/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
180 | pyroutes.register('repo_file_raw', '/%(repo_name)s/raw/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
181 | pyroutes.register('repo_file_download', '/%(repo_name)s/download/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
181 | pyroutes.register('repo_file_download', '/%(repo_name)s/download/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
182 | pyroutes.register('repo_file_download:legacy', '/%(repo_name)s/rawfile/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
182 | pyroutes.register('repo_file_download:legacy', '/%(repo_name)s/rawfile/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
183 | pyroutes.register('repo_file_history', '/%(repo_name)s/history/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
183 | pyroutes.register('repo_file_history', '/%(repo_name)s/history/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
184 | pyroutes.register('repo_file_authors', '/%(repo_name)s/authors/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
184 | pyroutes.register('repo_file_authors', '/%(repo_name)s/authors/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
185 | pyroutes.register('repo_files_remove_file', '/%(repo_name)s/remove_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
185 | pyroutes.register('repo_files_remove_file', '/%(repo_name)s/remove_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
186 | pyroutes.register('repo_files_delete_file', '/%(repo_name)s/delete_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
186 | pyroutes.register('repo_files_delete_file', '/%(repo_name)s/delete_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
187 | pyroutes.register('repo_files_edit_file', '/%(repo_name)s/edit_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
187 | pyroutes.register('repo_files_edit_file', '/%(repo_name)s/edit_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
188 | pyroutes.register('repo_files_update_file', '/%(repo_name)s/update_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
188 | pyroutes.register('repo_files_update_file', '/%(repo_name)s/update_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
189 | pyroutes.register('repo_files_add_file', '/%(repo_name)s/add_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
189 | pyroutes.register('repo_files_add_file', '/%(repo_name)s/add_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
190 | pyroutes.register('repo_files_create_file', '/%(repo_name)s/create_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
190 | pyroutes.register('repo_files_create_file', '/%(repo_name)s/create_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
191 | pyroutes.register('repo_refs_data', '/%(repo_name)s/refs-data', ['repo_name']); |
|
191 | pyroutes.register('repo_refs_data', '/%(repo_name)s/refs-data', ['repo_name']); | |
192 | pyroutes.register('repo_refs_changelog_data', '/%(repo_name)s/refs-data-changelog', ['repo_name']); |
|
192 | pyroutes.register('repo_refs_changelog_data', '/%(repo_name)s/refs-data-changelog', ['repo_name']); | |
193 | pyroutes.register('repo_stats', '/%(repo_name)s/repo_stats/%(commit_id)s', ['repo_name', 'commit_id']); |
|
193 | pyroutes.register('repo_stats', '/%(repo_name)s/repo_stats/%(commit_id)s', ['repo_name', 'commit_id']); | |
194 | pyroutes.register('repo_changelog', '/%(repo_name)s/changelog', ['repo_name']); |
|
194 | pyroutes.register('repo_changelog', '/%(repo_name)s/changelog', ['repo_name']); | |
195 | pyroutes.register('repo_changelog_file', '/%(repo_name)s/changelog/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
195 | pyroutes.register('repo_changelog_file', '/%(repo_name)s/changelog/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
196 | pyroutes.register('repo_changelog_elements', '/%(repo_name)s/changelog_elements', ['repo_name']); |
|
196 | pyroutes.register('repo_changelog_elements', '/%(repo_name)s/changelog_elements', ['repo_name']); | |
197 | pyroutes.register('repo_changelog_elements_file', '/%(repo_name)s/changelog_elements/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); |
|
197 | pyroutes.register('repo_changelog_elements_file', '/%(repo_name)s/changelog_elements/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']); | |
198 | pyroutes.register('repo_compare_select', '/%(repo_name)s/compare', ['repo_name']); |
|
198 | pyroutes.register('repo_compare_select', '/%(repo_name)s/compare', ['repo_name']); | |
199 | pyroutes.register('repo_compare', '/%(repo_name)s/compare/%(source_ref_type)s@%(source_ref)s...%(target_ref_type)s@%(target_ref)s', ['repo_name', 'source_ref_type', 'source_ref', 'target_ref_type', 'target_ref']); |
|
199 | pyroutes.register('repo_compare', '/%(repo_name)s/compare/%(source_ref_type)s@%(source_ref)s...%(target_ref_type)s@%(target_ref)s', ['repo_name', 'source_ref_type', 'source_ref', 'target_ref_type', 'target_ref']); | |
200 | pyroutes.register('tags_home', '/%(repo_name)s/tags', ['repo_name']); |
|
200 | pyroutes.register('tags_home', '/%(repo_name)s/tags', ['repo_name']); | |
201 | pyroutes.register('branches_home', '/%(repo_name)s/branches', ['repo_name']); |
|
201 | pyroutes.register('branches_home', '/%(repo_name)s/branches', ['repo_name']); | |
202 | pyroutes.register('bookmarks_home', '/%(repo_name)s/bookmarks', ['repo_name']); |
|
202 | pyroutes.register('bookmarks_home', '/%(repo_name)s/bookmarks', ['repo_name']); | |
203 | pyroutes.register('repo_fork_new', '/%(repo_name)s/fork', ['repo_name']); |
|
203 | pyroutes.register('repo_fork_new', '/%(repo_name)s/fork', ['repo_name']); | |
204 | pyroutes.register('repo_fork_create', '/%(repo_name)s/fork/create', ['repo_name']); |
|
204 | pyroutes.register('repo_fork_create', '/%(repo_name)s/fork/create', ['repo_name']); | |
205 | pyroutes.register('repo_forks_show_all', '/%(repo_name)s/forks', ['repo_name']); |
|
205 | pyroutes.register('repo_forks_show_all', '/%(repo_name)s/forks', ['repo_name']); | |
206 | pyroutes.register('repo_forks_data', '/%(repo_name)s/forks/data', ['repo_name']); |
|
206 | pyroutes.register('repo_forks_data', '/%(repo_name)s/forks/data', ['repo_name']); | |
207 | pyroutes.register('pullrequest_show', '/%(repo_name)s/pull-request/%(pull_request_id)s', ['repo_name', 'pull_request_id']); |
|
207 | pyroutes.register('pullrequest_show', '/%(repo_name)s/pull-request/%(pull_request_id)s', ['repo_name', 'pull_request_id']); | |
208 | pyroutes.register('pullrequest_show_all', '/%(repo_name)s/pull-request', ['repo_name']); |
|
208 | pyroutes.register('pullrequest_show_all', '/%(repo_name)s/pull-request', ['repo_name']); | |
209 | pyroutes.register('pullrequest_show_all_data', '/%(repo_name)s/pull-request-data', ['repo_name']); |
|
209 | pyroutes.register('pullrequest_show_all_data', '/%(repo_name)s/pull-request-data', ['repo_name']); | |
210 | pyroutes.register('pullrequest_repo_refs', '/%(repo_name)s/pull-request/refs/%(target_repo_name)s', ['repo_name', 'target_repo_name']); |
|
210 | pyroutes.register('pullrequest_repo_refs', '/%(repo_name)s/pull-request/refs/%(target_repo_name)s', ['repo_name', 'target_repo_name']); | |
211 | pyroutes.register('pullrequest_repo_destinations', '/%(repo_name)s/pull-request/repo-destinations', ['repo_name']); |
|
211 | pyroutes.register('pullrequest_repo_destinations', '/%(repo_name)s/pull-request/repo-destinations', ['repo_name']); | |
212 | pyroutes.register('pullrequest_new', '/%(repo_name)s/pull-request/new', ['repo_name']); |
|
212 | pyroutes.register('pullrequest_new', '/%(repo_name)s/pull-request/new', ['repo_name']); | |
213 | pyroutes.register('pullrequest_create', '/%(repo_name)s/pull-request/create', ['repo_name']); |
|
213 | pyroutes.register('pullrequest_create', '/%(repo_name)s/pull-request/create', ['repo_name']); | |
214 | pyroutes.register('pullrequest_update', '/%(repo_name)s/pull-request/%(pull_request_id)s/update', ['repo_name', 'pull_request_id']); |
|
214 | pyroutes.register('pullrequest_update', '/%(repo_name)s/pull-request/%(pull_request_id)s/update', ['repo_name', 'pull_request_id']); | |
215 | pyroutes.register('pullrequest_merge', '/%(repo_name)s/pull-request/%(pull_request_id)s/merge', ['repo_name', 'pull_request_id']); |
|
215 | pyroutes.register('pullrequest_merge', '/%(repo_name)s/pull-request/%(pull_request_id)s/merge', ['repo_name', 'pull_request_id']); | |
216 | pyroutes.register('pullrequest_delete', '/%(repo_name)s/pull-request/%(pull_request_id)s/delete', ['repo_name', 'pull_request_id']); |
|
216 | pyroutes.register('pullrequest_delete', '/%(repo_name)s/pull-request/%(pull_request_id)s/delete', ['repo_name', 'pull_request_id']); | |
217 | pyroutes.register('pullrequest_comment_create', '/%(repo_name)s/pull-request/%(pull_request_id)s/comment', ['repo_name', 'pull_request_id']); |
|
217 | pyroutes.register('pullrequest_comment_create', '/%(repo_name)s/pull-request/%(pull_request_id)s/comment', ['repo_name', 'pull_request_id']); | |
218 | pyroutes.register('pullrequest_comment_delete', '/%(repo_name)s/pull-request/%(pull_request_id)s/comment/%(comment_id)s/delete', ['repo_name', 'pull_request_id', 'comment_id']); |
|
218 | pyroutes.register('pullrequest_comment_delete', '/%(repo_name)s/pull-request/%(pull_request_id)s/comment/%(comment_id)s/delete', ['repo_name', 'pull_request_id', 'comment_id']); | |
219 | pyroutes.register('edit_repo', '/%(repo_name)s/settings', ['repo_name']); |
|
219 | pyroutes.register('edit_repo', '/%(repo_name)s/settings', ['repo_name']); | |
220 | pyroutes.register('edit_repo_advanced', '/%(repo_name)s/settings/advanced', ['repo_name']); |
|
220 | pyroutes.register('edit_repo_advanced', '/%(repo_name)s/settings/advanced', ['repo_name']); | |
221 | pyroutes.register('edit_repo_advanced_delete', '/%(repo_name)s/settings/advanced/delete', ['repo_name']); |
|
221 | pyroutes.register('edit_repo_advanced_delete', '/%(repo_name)s/settings/advanced/delete', ['repo_name']); | |
222 | pyroutes.register('edit_repo_advanced_locking', '/%(repo_name)s/settings/advanced/locking', ['repo_name']); |
|
222 | pyroutes.register('edit_repo_advanced_locking', '/%(repo_name)s/settings/advanced/locking', ['repo_name']); | |
223 | pyroutes.register('edit_repo_advanced_journal', '/%(repo_name)s/settings/advanced/journal', ['repo_name']); |
|
223 | pyroutes.register('edit_repo_advanced_journal', '/%(repo_name)s/settings/advanced/journal', ['repo_name']); | |
224 | pyroutes.register('edit_repo_advanced_fork', '/%(repo_name)s/settings/advanced/fork', ['repo_name']); |
|
224 | pyroutes.register('edit_repo_advanced_fork', '/%(repo_name)s/settings/advanced/fork', ['repo_name']); | |
225 | pyroutes.register('edit_repo_caches', '/%(repo_name)s/settings/caches', ['repo_name']); |
|
225 | pyroutes.register('edit_repo_caches', '/%(repo_name)s/settings/caches', ['repo_name']); | |
226 | pyroutes.register('edit_repo_perms', '/%(repo_name)s/settings/permissions', ['repo_name']); |
|
226 | pyroutes.register('edit_repo_perms', '/%(repo_name)s/settings/permissions', ['repo_name']); | |
227 | pyroutes.register('edit_repo_maintenance', '/%(repo_name)s/settings/maintenance', ['repo_name']); |
|
227 | pyroutes.register('edit_repo_maintenance', '/%(repo_name)s/settings/maintenance', ['repo_name']); | |
228 | pyroutes.register('edit_repo_maintenance_execute', '/%(repo_name)s/settings/maintenance/execute', ['repo_name']); |
|
228 | pyroutes.register('edit_repo_maintenance_execute', '/%(repo_name)s/settings/maintenance/execute', ['repo_name']); | |
229 | pyroutes.register('edit_repo_fields', '/%(repo_name)s/settings/fields', ['repo_name']); |
|
229 | pyroutes.register('edit_repo_fields', '/%(repo_name)s/settings/fields', ['repo_name']); | |
230 | pyroutes.register('edit_repo_fields_create', '/%(repo_name)s/settings/fields/create', ['repo_name']); |
|
230 | pyroutes.register('edit_repo_fields_create', '/%(repo_name)s/settings/fields/create', ['repo_name']); | |
231 | pyroutes.register('edit_repo_fields_delete', '/%(repo_name)s/settings/fields/%(field_id)s/delete', ['repo_name', 'field_id']); |
|
231 | pyroutes.register('edit_repo_fields_delete', '/%(repo_name)s/settings/fields/%(field_id)s/delete', ['repo_name', 'field_id']); | |
232 | pyroutes.register('repo_edit_toggle_locking', '/%(repo_name)s/settings/toggle_locking', ['repo_name']); |
|
232 | pyroutes.register('repo_edit_toggle_locking', '/%(repo_name)s/settings/toggle_locking', ['repo_name']); | |
233 | pyroutes.register('edit_repo_remote', '/%(repo_name)s/settings/remote', ['repo_name']); |
|
233 | pyroutes.register('edit_repo_remote', '/%(repo_name)s/settings/remote', ['repo_name']); | |
234 | pyroutes.register('edit_repo_remote_pull', '/%(repo_name)s/settings/remote/pull', ['repo_name']); |
|
234 | pyroutes.register('edit_repo_remote_pull', '/%(repo_name)s/settings/remote/pull', ['repo_name']); | |
235 | pyroutes.register('edit_repo_remote_push', '/%(repo_name)s/settings/remote/push', ['repo_name']); |
|
235 | pyroutes.register('edit_repo_remote_push', '/%(repo_name)s/settings/remote/push', ['repo_name']); | |
236 | pyroutes.register('edit_repo_statistics', '/%(repo_name)s/settings/statistics', ['repo_name']); |
|
236 | pyroutes.register('edit_repo_statistics', '/%(repo_name)s/settings/statistics', ['repo_name']); | |
237 | pyroutes.register('edit_repo_statistics_reset', '/%(repo_name)s/settings/statistics/update', ['repo_name']); |
|
237 | pyroutes.register('edit_repo_statistics_reset', '/%(repo_name)s/settings/statistics/update', ['repo_name']); | |
238 | pyroutes.register('edit_repo_issuetracker', '/%(repo_name)s/settings/issue_trackers', ['repo_name']); |
|
238 | pyroutes.register('edit_repo_issuetracker', '/%(repo_name)s/settings/issue_trackers', ['repo_name']); | |
239 | pyroutes.register('edit_repo_issuetracker_test', '/%(repo_name)s/settings/issue_trackers/test', ['repo_name']); |
|
239 | pyroutes.register('edit_repo_issuetracker_test', '/%(repo_name)s/settings/issue_trackers/test', ['repo_name']); | |
240 | pyroutes.register('edit_repo_issuetracker_delete', '/%(repo_name)s/settings/issue_trackers/delete', ['repo_name']); |
|
240 | pyroutes.register('edit_repo_issuetracker_delete', '/%(repo_name)s/settings/issue_trackers/delete', ['repo_name']); | |
241 | pyroutes.register('edit_repo_issuetracker_update', '/%(repo_name)s/settings/issue_trackers/update', ['repo_name']); |
|
241 | pyroutes.register('edit_repo_issuetracker_update', '/%(repo_name)s/settings/issue_trackers/update', ['repo_name']); | |
242 | pyroutes.register('edit_repo_vcs', '/%(repo_name)s/settings/vcs', ['repo_name']); |
|
242 | pyroutes.register('edit_repo_vcs', '/%(repo_name)s/settings/vcs', ['repo_name']); | |
243 | pyroutes.register('edit_repo_vcs_update', '/%(repo_name)s/settings/vcs/update', ['repo_name']); |
|
243 | pyroutes.register('edit_repo_vcs_update', '/%(repo_name)s/settings/vcs/update', ['repo_name']); | |
244 | pyroutes.register('edit_repo_vcs_svn_pattern_delete', '/%(repo_name)s/settings/vcs/svn_pattern/delete', ['repo_name']); |
|
244 | pyroutes.register('edit_repo_vcs_svn_pattern_delete', '/%(repo_name)s/settings/vcs/svn_pattern/delete', ['repo_name']); | |
245 | pyroutes.register('repo_reviewers', '/%(repo_name)s/settings/review/rules', ['repo_name']); |
|
245 | pyroutes.register('repo_reviewers', '/%(repo_name)s/settings/review/rules', ['repo_name']); | |
246 | pyroutes.register('repo_default_reviewers_data', '/%(repo_name)s/settings/review/default-reviewers', ['repo_name']); |
|
246 | pyroutes.register('repo_default_reviewers_data', '/%(repo_name)s/settings/review/default-reviewers', ['repo_name']); | |
|
247 | pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']); | |||
247 | pyroutes.register('edit_repo_strip', '/%(repo_name)s/settings/strip', ['repo_name']); |
|
248 | pyroutes.register('edit_repo_strip', '/%(repo_name)s/settings/strip', ['repo_name']); | |
248 | pyroutes.register('strip_check', '/%(repo_name)s/settings/strip_check', ['repo_name']); |
|
249 | pyroutes.register('strip_check', '/%(repo_name)s/settings/strip_check', ['repo_name']); | |
249 | pyroutes.register('strip_execute', '/%(repo_name)s/settings/strip_execute', ['repo_name']); |
|
250 | pyroutes.register('strip_execute', '/%(repo_name)s/settings/strip_execute', ['repo_name']); | |
250 | pyroutes.register('edit_repo_audit_logs', '/%(repo_name)s/settings/audit_logs', ['repo_name']); |
|
251 | pyroutes.register('edit_repo_audit_logs', '/%(repo_name)s/settings/audit_logs', ['repo_name']); | |
251 | pyroutes.register('rss_feed_home', '/%(repo_name)s/feed/rss', ['repo_name']); |
|
252 | pyroutes.register('rss_feed_home', '/%(repo_name)s/feed/rss', ['repo_name']); | |
252 | pyroutes.register('atom_feed_home', '/%(repo_name)s/feed/atom', ['repo_name']); |
|
253 | pyroutes.register('atom_feed_home', '/%(repo_name)s/feed/atom', ['repo_name']); | |
253 | pyroutes.register('repo_summary', '/%(repo_name)s', ['repo_name']); |
|
254 | pyroutes.register('repo_summary', '/%(repo_name)s', ['repo_name']); | |
254 | pyroutes.register('repo_summary_slash', '/%(repo_name)s/', ['repo_name']); |
|
255 | pyroutes.register('repo_summary_slash', '/%(repo_name)s/', ['repo_name']); | |
255 | pyroutes.register('edit_repo_group', '/%(repo_group_name)s/_edit', ['repo_group_name']); |
|
256 | pyroutes.register('edit_repo_group', '/%(repo_group_name)s/_edit', ['repo_group_name']); | |
256 | pyroutes.register('edit_repo_group_advanced', '/%(repo_group_name)s/_settings/advanced', ['repo_group_name']); |
|
257 | pyroutes.register('edit_repo_group_advanced', '/%(repo_group_name)s/_settings/advanced', ['repo_group_name']); | |
257 | pyroutes.register('edit_repo_group_advanced_delete', '/%(repo_group_name)s/_settings/advanced/delete', ['repo_group_name']); |
|
258 | pyroutes.register('edit_repo_group_advanced_delete', '/%(repo_group_name)s/_settings/advanced/delete', ['repo_group_name']); | |
258 | pyroutes.register('edit_repo_group_perms', '/%(repo_group_name)s/_settings/permissions', ['repo_group_name']); |
|
259 | pyroutes.register('edit_repo_group_perms', '/%(repo_group_name)s/_settings/permissions', ['repo_group_name']); | |
259 | pyroutes.register('edit_repo_group_perms_update', '/%(repo_group_name)s/_settings/permissions/update', ['repo_group_name']); |
|
260 | pyroutes.register('edit_repo_group_perms_update', '/%(repo_group_name)s/_settings/permissions/update', ['repo_group_name']); | |
260 | pyroutes.register('repo_group_home', '/%(repo_group_name)s', ['repo_group_name']); |
|
261 | pyroutes.register('repo_group_home', '/%(repo_group_name)s', ['repo_group_name']); | |
261 | pyroutes.register('repo_group_home_slash', '/%(repo_group_name)s/', ['repo_group_name']); |
|
262 | pyroutes.register('repo_group_home_slash', '/%(repo_group_name)s/', ['repo_group_name']); | |
262 | pyroutes.register('user_group_members_data', '/_admin/user_groups/%(user_group_id)s/members', ['user_group_id']); |
|
263 | pyroutes.register('user_group_members_data', '/_admin/user_groups/%(user_group_id)s/members', ['user_group_id']); | |
263 | pyroutes.register('edit_user_group_perms_summary', '/_admin/user_groups/%(user_group_id)s/edit/permissions_summary', ['user_group_id']); |
|
264 | pyroutes.register('edit_user_group_perms_summary', '/_admin/user_groups/%(user_group_id)s/edit/permissions_summary', ['user_group_id']); | |
264 | pyroutes.register('edit_user_group_perms_summary_json', '/_admin/user_groups/%(user_group_id)s/edit/permissions_summary/json', ['user_group_id']); |
|
265 | pyroutes.register('edit_user_group_perms_summary_json', '/_admin/user_groups/%(user_group_id)s/edit/permissions_summary/json', ['user_group_id']); | |
265 | pyroutes.register('edit_user_group', '/_admin/user_groups/%(user_group_id)s/edit', ['user_group_id']); |
|
266 | pyroutes.register('edit_user_group', '/_admin/user_groups/%(user_group_id)s/edit', ['user_group_id']); | |
266 | pyroutes.register('user_groups_update', '/_admin/user_groups/%(user_group_id)s/update', ['user_group_id']); |
|
267 | pyroutes.register('user_groups_update', '/_admin/user_groups/%(user_group_id)s/update', ['user_group_id']); | |
267 | pyroutes.register('edit_user_group_global_perms', '/_admin/user_groups/%(user_group_id)s/edit/global_permissions', ['user_group_id']); |
|
268 | pyroutes.register('edit_user_group_global_perms', '/_admin/user_groups/%(user_group_id)s/edit/global_permissions', ['user_group_id']); | |
268 | pyroutes.register('edit_user_group_global_perms_update', '/_admin/user_groups/%(user_group_id)s/edit/global_permissions/update', ['user_group_id']); |
|
269 | pyroutes.register('edit_user_group_global_perms_update', '/_admin/user_groups/%(user_group_id)s/edit/global_permissions/update', ['user_group_id']); | |
269 | pyroutes.register('edit_user_group_perms', '/_admin/user_groups/%(user_group_id)s/edit/permissions', ['user_group_id']); |
|
270 | pyroutes.register('edit_user_group_perms', '/_admin/user_groups/%(user_group_id)s/edit/permissions', ['user_group_id']); | |
270 | pyroutes.register('edit_user_group_perms_update', '/_admin/user_groups/%(user_group_id)s/edit/permissions/update', ['user_group_id']); |
|
271 | pyroutes.register('edit_user_group_perms_update', '/_admin/user_groups/%(user_group_id)s/edit/permissions/update', ['user_group_id']); | |
271 | pyroutes.register('edit_user_group_advanced', '/_admin/user_groups/%(user_group_id)s/edit/advanced', ['user_group_id']); |
|
272 | pyroutes.register('edit_user_group_advanced', '/_admin/user_groups/%(user_group_id)s/edit/advanced', ['user_group_id']); | |
272 | pyroutes.register('edit_user_group_advanced_sync', '/_admin/user_groups/%(user_group_id)s/edit/advanced/sync', ['user_group_id']); |
|
273 | pyroutes.register('edit_user_group_advanced_sync', '/_admin/user_groups/%(user_group_id)s/edit/advanced/sync', ['user_group_id']); | |
273 | pyroutes.register('user_groups_delete', '/_admin/user_groups/%(user_group_id)s/delete', ['user_group_id']); |
|
274 | pyroutes.register('user_groups_delete', '/_admin/user_groups/%(user_group_id)s/delete', ['user_group_id']); | |
274 | pyroutes.register('search', '/_admin/search', []); |
|
275 | pyroutes.register('search', '/_admin/search', []); | |
275 | pyroutes.register('search_repo', '/%(repo_name)s/search', ['repo_name']); |
|
276 | pyroutes.register('search_repo', '/%(repo_name)s/search', ['repo_name']); | |
276 | pyroutes.register('user_profile', '/_profiles/%(username)s', ['username']); |
|
277 | pyroutes.register('user_profile', '/_profiles/%(username)s', ['username']); | |
277 | pyroutes.register('my_account_profile', '/_admin/my_account/profile', []); |
|
278 | pyroutes.register('my_account_profile', '/_admin/my_account/profile', []); | |
278 | pyroutes.register('my_account_edit', '/_admin/my_account/edit', []); |
|
279 | pyroutes.register('my_account_edit', '/_admin/my_account/edit', []); | |
279 | pyroutes.register('my_account_update', '/_admin/my_account/update', []); |
|
280 | pyroutes.register('my_account_update', '/_admin/my_account/update', []); | |
280 | pyroutes.register('my_account_password', '/_admin/my_account/password', []); |
|
281 | pyroutes.register('my_account_password', '/_admin/my_account/password', []); | |
281 | pyroutes.register('my_account_password_update', '/_admin/my_account/password/update', []); |
|
282 | pyroutes.register('my_account_password_update', '/_admin/my_account/password/update', []); | |
282 | pyroutes.register('my_account_auth_tokens', '/_admin/my_account/auth_tokens', []); |
|
283 | pyroutes.register('my_account_auth_tokens', '/_admin/my_account/auth_tokens', []); | |
283 | pyroutes.register('my_account_auth_tokens_add', '/_admin/my_account/auth_tokens/new', []); |
|
284 | pyroutes.register('my_account_auth_tokens_add', '/_admin/my_account/auth_tokens/new', []); | |
284 | pyroutes.register('my_account_auth_tokens_delete', '/_admin/my_account/auth_tokens/delete', []); |
|
285 | pyroutes.register('my_account_auth_tokens_delete', '/_admin/my_account/auth_tokens/delete', []); | |
285 | pyroutes.register('my_account_ssh_keys', '/_admin/my_account/ssh_keys', []); |
|
286 | pyroutes.register('my_account_ssh_keys', '/_admin/my_account/ssh_keys', []); | |
286 | pyroutes.register('my_account_ssh_keys_generate', '/_admin/my_account/ssh_keys/generate', []); |
|
287 | pyroutes.register('my_account_ssh_keys_generate', '/_admin/my_account/ssh_keys/generate', []); | |
287 | pyroutes.register('my_account_ssh_keys_add', '/_admin/my_account/ssh_keys/new', []); |
|
288 | pyroutes.register('my_account_ssh_keys_add', '/_admin/my_account/ssh_keys/new', []); | |
288 | pyroutes.register('my_account_ssh_keys_delete', '/_admin/my_account/ssh_keys/delete', []); |
|
289 | pyroutes.register('my_account_ssh_keys_delete', '/_admin/my_account/ssh_keys/delete', []); | |
289 | pyroutes.register('my_account_user_group_membership', '/_admin/my_account/user_group_membership', []); |
|
290 | pyroutes.register('my_account_user_group_membership', '/_admin/my_account/user_group_membership', []); | |
290 | pyroutes.register('my_account_emails', '/_admin/my_account/emails', []); |
|
291 | pyroutes.register('my_account_emails', '/_admin/my_account/emails', []); | |
291 | pyroutes.register('my_account_emails_add', '/_admin/my_account/emails/new', []); |
|
292 | pyroutes.register('my_account_emails_add', '/_admin/my_account/emails/new', []); | |
292 | pyroutes.register('my_account_emails_delete', '/_admin/my_account/emails/delete', []); |
|
293 | pyroutes.register('my_account_emails_delete', '/_admin/my_account/emails/delete', []); | |
293 | pyroutes.register('my_account_repos', '/_admin/my_account/repos', []); |
|
294 | pyroutes.register('my_account_repos', '/_admin/my_account/repos', []); | |
294 | pyroutes.register('my_account_watched', '/_admin/my_account/watched', []); |
|
295 | pyroutes.register('my_account_watched', '/_admin/my_account/watched', []); | |
295 | pyroutes.register('my_account_perms', '/_admin/my_account/perms', []); |
|
296 | pyroutes.register('my_account_perms', '/_admin/my_account/perms', []); | |
296 | pyroutes.register('my_account_notifications', '/_admin/my_account/notifications', []); |
|
297 | pyroutes.register('my_account_notifications', '/_admin/my_account/notifications', []); | |
297 | pyroutes.register('my_account_notifications_toggle_visibility', '/_admin/my_account/toggle_visibility', []); |
|
298 | pyroutes.register('my_account_notifications_toggle_visibility', '/_admin/my_account/toggle_visibility', []); | |
298 | pyroutes.register('my_account_pullrequests', '/_admin/my_account/pull_requests', []); |
|
299 | pyroutes.register('my_account_pullrequests', '/_admin/my_account/pull_requests', []); | |
299 | pyroutes.register('my_account_pullrequests_data', '/_admin/my_account/pull_requests/data', []); |
|
300 | pyroutes.register('my_account_pullrequests_data', '/_admin/my_account/pull_requests/data', []); | |
300 | pyroutes.register('notifications_show_all', '/_admin/notifications', []); |
|
301 | pyroutes.register('notifications_show_all', '/_admin/notifications', []); | |
301 | pyroutes.register('notifications_mark_all_read', '/_admin/notifications/mark_all_read', []); |
|
302 | pyroutes.register('notifications_mark_all_read', '/_admin/notifications/mark_all_read', []); | |
302 | pyroutes.register('notifications_show', '/_admin/notifications/%(notification_id)s', ['notification_id']); |
|
303 | pyroutes.register('notifications_show', '/_admin/notifications/%(notification_id)s', ['notification_id']); | |
303 | pyroutes.register('notifications_update', '/_admin/notifications/%(notification_id)s/update', ['notification_id']); |
|
304 | pyroutes.register('notifications_update', '/_admin/notifications/%(notification_id)s/update', ['notification_id']); | |
304 | pyroutes.register('notifications_delete', '/_admin/notifications/%(notification_id)s/delete', ['notification_id']); |
|
305 | pyroutes.register('notifications_delete', '/_admin/notifications/%(notification_id)s/delete', ['notification_id']); | |
305 | pyroutes.register('my_account_notifications_test_channelstream', '/_admin/my_account/test_channelstream', []); |
|
306 | pyroutes.register('my_account_notifications_test_channelstream', '/_admin/my_account/test_channelstream', []); | |
306 | pyroutes.register('gists_show', '/_admin/gists', []); |
|
307 | pyroutes.register('gists_show', '/_admin/gists', []); | |
307 | pyroutes.register('gists_new', '/_admin/gists/new', []); |
|
308 | pyroutes.register('gists_new', '/_admin/gists/new', []); | |
308 | pyroutes.register('gists_create', '/_admin/gists/create', []); |
|
309 | pyroutes.register('gists_create', '/_admin/gists/create', []); | |
309 | pyroutes.register('gist_show', '/_admin/gists/%(gist_id)s', ['gist_id']); |
|
310 | pyroutes.register('gist_show', '/_admin/gists/%(gist_id)s', ['gist_id']); | |
310 | pyroutes.register('gist_delete', '/_admin/gists/%(gist_id)s/delete', ['gist_id']); |
|
311 | pyroutes.register('gist_delete', '/_admin/gists/%(gist_id)s/delete', ['gist_id']); | |
311 | pyroutes.register('gist_edit', '/_admin/gists/%(gist_id)s/edit', ['gist_id']); |
|
312 | pyroutes.register('gist_edit', '/_admin/gists/%(gist_id)s/edit', ['gist_id']); | |
312 | pyroutes.register('gist_edit_check_revision', '/_admin/gists/%(gist_id)s/edit/check_revision', ['gist_id']); |
|
313 | pyroutes.register('gist_edit_check_revision', '/_admin/gists/%(gist_id)s/edit/check_revision', ['gist_id']); | |
313 | pyroutes.register('gist_update', '/_admin/gists/%(gist_id)s/update', ['gist_id']); |
|
314 | pyroutes.register('gist_update', '/_admin/gists/%(gist_id)s/update', ['gist_id']); | |
314 | pyroutes.register('gist_show_rev', '/_admin/gists/%(gist_id)s/%(revision)s', ['gist_id', 'revision']); |
|
315 | pyroutes.register('gist_show_rev', '/_admin/gists/%(gist_id)s/%(revision)s', ['gist_id', 'revision']); | |
315 | pyroutes.register('gist_show_formatted', '/_admin/gists/%(gist_id)s/%(revision)s/%(format)s', ['gist_id', 'revision', 'format']); |
|
316 | pyroutes.register('gist_show_formatted', '/_admin/gists/%(gist_id)s/%(revision)s/%(format)s', ['gist_id', 'revision', 'format']); | |
316 | pyroutes.register('gist_show_formatted_path', '/_admin/gists/%(gist_id)s/%(revision)s/%(format)s/%(f_path)s', ['gist_id', 'revision', 'format', 'f_path']); |
|
317 | pyroutes.register('gist_show_formatted_path', '/_admin/gists/%(gist_id)s/%(revision)s/%(format)s/%(f_path)s', ['gist_id', 'revision', 'format', 'f_path']); | |
317 | pyroutes.register('debug_style_home', '/_admin/debug_style', []); |
|
318 | pyroutes.register('debug_style_home', '/_admin/debug_style', []); | |
318 | pyroutes.register('debug_style_template', '/_admin/debug_style/t/%(t_path)s', ['t_path']); |
|
319 | pyroutes.register('debug_style_template', '/_admin/debug_style/t/%(t_path)s', ['t_path']); | |
319 | pyroutes.register('apiv2', '/_admin/api', []); |
|
320 | pyroutes.register('apiv2', '/_admin/api', []); | |
320 | } |
|
321 | } |
@@ -1,102 +1,105 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | ## |
|
2 | ## | |
3 | ## See also repo_settings.html |
|
3 | ## See also repo_settings.html | |
4 | ## |
|
4 | ## | |
5 | <%inherit file="/base/base.mako"/> |
|
5 | <%inherit file="/base/base.mako"/> | |
6 |
|
6 | |||
7 | <%def name="title()"> |
|
7 | <%def name="title()"> | |
8 | ${_('%s repository settings') % c.rhodecode_db_repo.repo_name} |
|
8 | ${_('%s repository settings') % c.rhodecode_db_repo.repo_name} | |
9 | %if c.rhodecode_name: |
|
9 | %if c.rhodecode_name: | |
10 | · ${h.branding(c.rhodecode_name)} |
|
10 | · ${h.branding(c.rhodecode_name)} | |
11 | %endif |
|
11 | %endif | |
12 | </%def> |
|
12 | </%def> | |
13 |
|
13 | |||
14 | <%def name="breadcrumbs_links()"> |
|
14 | <%def name="breadcrumbs_links()"> | |
15 | ${_('Settings')} |
|
15 | ${_('Settings')} | |
16 | </%def> |
|
16 | </%def> | |
17 |
|
17 | |||
18 | <%def name="menu_bar_nav()"> |
|
18 | <%def name="menu_bar_nav()"> | |
19 | ${self.menu_items(active='repositories')} |
|
19 | ${self.menu_items(active='repositories')} | |
20 | </%def> |
|
20 | </%def> | |
21 |
|
21 | |||
22 | <%def name="menu_bar_subnav()"> |
|
22 | <%def name="menu_bar_subnav()"> | |
23 | ${self.repo_menu(active='options')} |
|
23 | ${self.repo_menu(active='options')} | |
24 | </%def> |
|
24 | </%def> | |
25 |
|
25 | |||
26 | <%def name="main_content()"> |
|
26 | <%def name="main_content()"> | |
27 | % if hasattr(c, 'repo_edit_template'): |
|
27 | % if hasattr(c, 'repo_edit_template'): | |
28 | <%include file="${c.repo_edit_template}"/> |
|
28 | <%include file="${c.repo_edit_template}"/> | |
29 | % else: |
|
29 | % else: | |
30 | <%include file="/admin/repos/repo_edit_${c.active}.mako"/> |
|
30 | <%include file="/admin/repos/repo_edit_${c.active}.mako"/> | |
31 | % endif |
|
31 | % endif | |
32 | </%def> |
|
32 | </%def> | |
33 |
|
33 | |||
34 |
|
34 | |||
35 | <%def name="main()"> |
|
35 | <%def name="main()"> | |
36 | <div class="box"> |
|
36 | <div class="box"> | |
37 | <div class="title"> |
|
37 | <div class="title"> | |
38 | ${self.repo_page_title(c.rhodecode_db_repo)} |
|
38 | ${self.repo_page_title(c.rhodecode_db_repo)} | |
39 | ${self.breadcrumbs()} |
|
39 | ${self.breadcrumbs()} | |
40 | </div> |
|
40 | </div> | |
41 |
|
41 | |||
42 | <div class="sidebar-col-wrapper scw-small"> |
|
42 | <div class="sidebar-col-wrapper scw-small"> | |
43 | <div class="sidebar"> |
|
43 | <div class="sidebar"> | |
44 | <ul class="nav nav-pills nav-stacked"> |
|
44 | <ul class="nav nav-pills nav-stacked"> | |
45 | <li class="${'active' if c.active=='settings' else ''}"> |
|
45 | <li class="${'active' if c.active=='settings' else ''}"> | |
46 | <a href="${h.route_path('edit_repo', repo_name=c.repo_name)}">${_('Settings')}</a> |
|
46 | <a href="${h.route_path('edit_repo', repo_name=c.repo_name)}">${_('Settings')}</a> | |
47 | </li> |
|
47 | </li> | |
48 | <li class="${'active' if c.active=='permissions' else ''}"> |
|
48 | <li class="${'active' if c.active=='permissions' else ''}"> | |
49 | <a href="${h.route_path('edit_repo_perms', repo_name=c.repo_name)}">${_('Permissions')}</a> |
|
49 | <a href="${h.route_path('edit_repo_perms', repo_name=c.repo_name)}">${_('Permissions')}</a> | |
50 | </li> |
|
50 | </li> | |
51 | <li class="${'active' if c.active=='advanced' else ''}"> |
|
51 | <li class="${'active' if c.active=='advanced' else ''}"> | |
52 | <a href="${h.route_path('edit_repo_advanced', repo_name=c.repo_name)}">${_('Advanced')}</a> |
|
52 | <a href="${h.route_path('edit_repo_advanced', repo_name=c.repo_name)}">${_('Advanced')}</a> | |
53 | </li> |
|
53 | </li> | |
54 | <li class="${'active' if c.active=='vcs' else ''}"> |
|
54 | <li class="${'active' if c.active=='vcs' else ''}"> | |
55 | <a href="${h.route_path('edit_repo_vcs', repo_name=c.repo_name)}">${_('VCS')}</a> |
|
55 | <a href="${h.route_path('edit_repo_vcs', repo_name=c.repo_name)}">${_('VCS')}</a> | |
56 | </li> |
|
56 | </li> | |
57 | <li class="${'active' if c.active=='fields' else ''}"> |
|
57 | <li class="${'active' if c.active=='fields' else ''}"> | |
58 | <a href="${h.route_path('edit_repo_fields', repo_name=c.repo_name)}">${_('Extra Fields')}</a> |
|
58 | <a href="${h.route_path('edit_repo_fields', repo_name=c.repo_name)}">${_('Extra Fields')}</a> | |
59 | </li> |
|
59 | </li> | |
60 | <li class="${'active' if c.active=='issuetracker' else ''}"> |
|
60 | <li class="${'active' if c.active=='issuetracker' else ''}"> | |
61 | <a href="${h.route_path('edit_repo_issuetracker', repo_name=c.repo_name)}">${_('Issue Tracker')}</a> |
|
61 | <a href="${h.route_path('edit_repo_issuetracker', repo_name=c.repo_name)}">${_('Issue Tracker')}</a> | |
62 | </li> |
|
62 | </li> | |
63 | <li class="${'active' if c.active=='caches' else ''}"> |
|
63 | <li class="${'active' if c.active=='caches' else ''}"> | |
64 | <a href="${h.route_path('edit_repo_caches', repo_name=c.repo_name)}">${_('Caches')}</a> |
|
64 | <a href="${h.route_path('edit_repo_caches', repo_name=c.repo_name)}">${_('Caches')}</a> | |
65 | </li> |
|
65 | </li> | |
66 | %if c.rhodecode_db_repo.repo_type != 'svn': |
|
66 | %if c.rhodecode_db_repo.repo_type != 'svn': | |
67 | <li class="${'active' if c.active=='remote' else ''}"> |
|
67 | <li class="${'active' if c.active=='remote' else ''}"> | |
68 | <a href="${h.route_path('edit_repo_remote', repo_name=c.repo_name)}">${_('Remote sync')}</a> |
|
68 | <a href="${h.route_path('edit_repo_remote', repo_name=c.repo_name)}">${_('Remote sync')}</a> | |
69 | </li> |
|
69 | </li> | |
70 | %endif |
|
70 | %endif | |
71 | <li class="${'active' if c.active=='statistics' else ''}"> |
|
71 | <li class="${'active' if c.active=='statistics' else ''}"> | |
72 | <a href="${h.route_path('edit_repo_statistics', repo_name=c.repo_name)}">${_('Statistics')}</a> |
|
72 | <a href="${h.route_path('edit_repo_statistics', repo_name=c.repo_name)}">${_('Statistics')}</a> | |
73 | </li> |
|
73 | </li> | |
74 | <li class="${'active' if c.active=='integrations' else ''}"> |
|
74 | <li class="${'active' if c.active=='integrations' else ''}"> | |
75 | <a href="${h.route_path('repo_integrations_home', repo_name=c.repo_name)}">${_('Integrations')}</a> |
|
75 | <a href="${h.route_path('repo_integrations_home', repo_name=c.repo_name)}">${_('Integrations')}</a> | |
76 | </li> |
|
76 | </li> | |
77 | %if c.rhodecode_db_repo.repo_type != 'svn': |
|
77 | %if c.rhodecode_db_repo.repo_type != 'svn': | |
78 | <li class="${'active' if c.active=='reviewers' else ''}"> |
|
78 | <li class="${'active' if c.active=='reviewers' else ''}"> | |
79 | <a href="${h.route_path('repo_reviewers', repo_name=c.repo_name)}">${_('Reviewer Rules')}</a> |
|
79 | <a href="${h.route_path('repo_reviewers', repo_name=c.repo_name)}">${_('Reviewer Rules')}</a> | |
80 | </li> |
|
80 | </li> | |
81 | %endif |
|
81 | %endif | |
|
82 | <li class="${'active' if c.active=='automation' else ''}"> | |||
|
83 | <a href="${h.route_path('repo_automation', repo_name=c.repo_name)}">${_('Automation')}</a> | |||
|
84 | </li> | |||
82 | <li class="${'active' if c.active=='maintenance' else ''}"> |
|
85 | <li class="${'active' if c.active=='maintenance' else ''}"> | |
83 | <a href="${h.route_path('edit_repo_maintenance', repo_name=c.repo_name)}">${_('Maintenance')}</a> |
|
86 | <a href="${h.route_path('edit_repo_maintenance', repo_name=c.repo_name)}">${_('Maintenance')}</a> | |
84 | </li> |
|
87 | </li> | |
85 | <li class="${'active' if c.active=='strip' else ''}"> |
|
88 | <li class="${'active' if c.active=='strip' else ''}"> | |
86 | <a href="${h.route_path('edit_repo_strip', repo_name=c.repo_name)}">${_('Strip')}</a> |
|
89 | <a href="${h.route_path('edit_repo_strip', repo_name=c.repo_name)}">${_('Strip')}</a> | |
87 | </li> |
|
90 | </li> | |
88 | <li class="${'active' if c.active=='audit' else ''}"> |
|
91 | <li class="${'active' if c.active=='audit' else ''}"> | |
89 | <a href="${h.route_path('edit_repo_audit_logs', repo_name=c.repo_name)}">${_('Audit logs')}</a> |
|
92 | <a href="${h.route_path('edit_repo_audit_logs', repo_name=c.repo_name)}">${_('Audit logs')}</a> | |
90 | </li> |
|
93 | </li> | |
91 |
|
94 | |||
92 | </ul> |
|
95 | </ul> | |
93 | </div> |
|
96 | </div> | |
94 |
|
97 | |||
95 | <div class="main-content-full-width"> |
|
98 | <div class="main-content-full-width"> | |
96 | ${self.main_content()} |
|
99 | ${self.main_content()} | |
97 | </div> |
|
100 | </div> | |
98 |
|
101 | |||
99 | </div> |
|
102 | </div> | |
100 | </div> |
|
103 | </div> | |
101 |
|
104 | |||
102 | </%def> No newline at end of file |
|
105 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now