Show More
@@ -1,264 +1,264 b'' | |||
|
1 | 1 | .. _admin-tricks: |
|
2 | 2 | |
|
3 | 3 | One-time Admin Tasks |
|
4 | 4 | -------------------- |
|
5 | 5 | |
|
6 | 6 | * :ref:`web-analytics` |
|
7 | 7 | * :ref:`admin-tricks-license` |
|
8 | 8 | * :ref:`announcements` |
|
9 | 9 | * :ref:`md-rst` |
|
10 | 10 | * :ref:`repo-stats` |
|
11 | 11 | * :ref:`server-side-merge` |
|
12 | 12 | * :ref:`remap-rescan` |
|
13 | 13 | * :ref:`custom-hooks` |
|
14 | 14 | * :ref:`clear-repo-cache` |
|
15 | 15 | * :ref:`set-repo-pub` |
|
16 | 16 | * :ref:`ping` |
|
17 | 17 | |
|
18 | 18 | .. _web-analytics: |
|
19 | 19 | |
|
20 | 20 | Adding Web Analytics |
|
21 | 21 | ^^^^^^^^^^^^^^^^^^^^ |
|
22 | 22 | |
|
23 | 23 | If you wish to add a Google Analytics, or any other kind of tracker to your |
|
24 | 24 | |RCE| instance you can add the necessary codes to the header or footer |
|
25 | 25 | section of each instance using the following steps: |
|
26 | 26 | |
|
27 | 27 | 1. From the |RCE| interface, select |
|
28 | 28 | :menuselection:`Admin --> Settings --> Global` |
|
29 | 29 | 2. To add a tracking code to you instance, enter it in the header or footer |
|
30 | 30 | section and select **Save** |
|
31 | 31 | |
|
32 | 32 | Use the example templates in the drop-down menu to set up your configuration. |
|
33 | 33 | |
|
34 | 34 | .. _admin-tricks-license: |
|
35 | 35 | |
|
36 | 36 | Licence Key Management |
|
37 | 37 | ^^^^^^^^^^^^^^^^^^^^^^ |
|
38 | 38 | |
|
39 | 39 | To manage your license key, go to |
|
40 | 40 | :menuselection:`Admin --> Settings --> License`. |
|
41 | 41 | On this page you can see the license key details. If you need a new license, |
|
42 | 42 | or have questions about your current one, contact support@rhodecode.com |
|
43 | 43 | |
|
44 | 44 | .. _announcements: |
|
45 | 45 | |
|
46 | 46 | Server-wide Announcements |
|
47 | 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
48 | 48 | |
|
49 | 49 | If you need to make a server-wide announcement to all users, |
|
50 | 50 | you can add a message to be displayed using the following steps: |
|
51 | 51 | |
|
52 | 52 | 1. From the |RCE| interface, select |
|
53 | 53 | :menuselection:`Admin --> Settings --> Global` |
|
54 | 54 | 2. To add a message that will be displayed to all users, |
|
55 | 55 | select :guilabel:`Server Announcement` from the drop-down menu and |
|
56 | 56 | change the ``var message = "TYPE YOUR MESSAGE HERE";`` example line. |
|
57 | 57 | 3. Select :guilabel:`Save`, and you will see the message once your page |
|
58 | 58 | refreshes. |
|
59 | 59 | |
|
60 | 60 | .. image:: ../../images/server-wide-announcement.png |
|
61 | 61 | :alt: Server Wide Announcement |
|
62 | 62 | |
|
63 | 63 | .. _md-rst: |
|
64 | 64 | |
|
65 | 65 | |
|
66 | 66 | Suppress license warnings or errors |
|
67 | 67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
68 | 68 | |
|
69 | 69 | In case you're running on maximum allowed users, RhodeCode will display a |
|
70 | 70 | warning message on pages that you're close to the license limits. |
|
71 | 71 | It's often not desired to show that all the time. Here's how you can suppress |
|
72 | 72 | the license messages. |
|
73 | 73 | |
|
74 | 74 | 1. From the |RCE| interface, select |
|
75 | 75 | :menuselection:`Admin --> Settings --> Global` |
|
76 | 76 | 2. Select :guilabel:`Flash message filtering` from the drop-down menu. |
|
77 | 77 | 3. Select :guilabel:`Save`, and you will no longer see the license message |
|
78 | 78 | once your page refreshes. |
|
79 | 79 | |
|
80 | 80 | .. _admin-tricks-suppress-license-messages: |
|
81 | 81 | |
|
82 | 82 | |
|
83 | 83 | Markdown or RST Rendering |
|
84 | 84 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
85 | 85 | |
|
86 | 86 | |RCE| can use `Markdown`_ or `reStructured Text`_ in commit message, |
|
87 | 87 | code review messages, and inline comments. To set the default to either, |
|
88 | 88 | select your preference from the drop-down menu on the |
|
89 | 89 | :menuselection:`Admin --> Settings --> Visual` page and select |
|
90 | 90 | :guilabel:`Save settings`. |
|
91 | 91 | |
|
92 | 92 | .. _repo-stats: |
|
93 | 93 | |
|
94 | 94 | Enabling Repository Statistics |
|
95 | 95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
96 | 96 | |
|
97 | 97 | To enable |repo| statistics, use the following steps: |
|
98 | 98 | |
|
99 | 99 | 1. From the |RCE| interface, open |
|
100 | 100 | :menuselection:`Admin --> Repositories` and select |
|
101 | 101 | :guilabel:`Edit` beside the |repo| for which you wish to enable statistics. |
|
102 | 102 | 2. Check the :guilabel:`Enable statistics` box, and select :guilabel:`Save` |
|
103 | 103 | |
|
104 | 104 | .. _server-side-merge: |
|
105 | 105 | |
|
106 | 106 | Enabling Server-side Merging |
|
107 | 107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
108 | 108 | |
|
109 | 109 | To enable server-side merging, use the following steps: |
|
110 | 110 | |
|
111 | 111 | 1. From the |RCE| interface, open :menuselection:`Admin --> Settings --> VCS` |
|
112 | 112 | 2. Check the :guilabel:`Server-side merge` box, and select |
|
113 | 113 | :guilabel:`Save Settings` |
|
114 | 114 | |
|
115 | 115 | If you encounter slow performance with server-side merging enabled, check the |
|
116 | 116 | speed at which your server is performing actions. When server-side merging is |
|
117 | 117 | enabled, the following actions occurs on the server. |
|
118 | 118 | |
|
119 | 119 | * A |pr| is created in the database. |
|
120 | 120 | * A shadow |repo| is created as a working environment for the |pr|. |
|
121 | 121 | * On display, |RCE| checks if the |pr| can be merged. |
|
122 | 122 | |
|
123 | 123 | To check how fast the shadow |repo| creation is occurring on your server, use |
|
124 | 124 | the following steps: |
|
125 | 125 | |
|
126 | 126 | 1. Log into your server and create a directory in your |repos| folder. |
|
127 | 127 | 2. Clone a |repo| that is showing slow performance and time the action. |
|
128 | 128 | |
|
129 | 129 | .. code-block:: bash |
|
130 | 130 | |
|
131 | 131 | # One option is to use the time command |
|
132 | 132 | $ time hg clone SOURCE_REPO TARGET |
|
133 | 133 | |
|
134 | 134 | .. _remap-rescan: |
|
135 | 135 | |
|
136 | 136 | Remap and Rescan Repositories |
|
137 | 137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
138 | 138 | |
|
139 | 139 | You may want to Remap and rescan the |repos| that |RCE| is managing to ensure |
|
140 | 140 | the system is always up-to-date. This is useful after importing, deleting, |
|
141 | 141 | or carrying out general cleaning up operations. To do this use the |
|
142 | 142 | following steps: |
|
143 | 143 | |
|
144 | 144 | 1. From the |RCE|, open |
|
145 | 145 | :menuselection:`Admin --> Settings --> Remap and rescan` |
|
146 | 146 | 2. Click :guilabel:`Rescan Repositories` |
|
147 | 147 | |
|
148 | 148 | Check the additional options if needed: |
|
149 | 149 | |
|
150 | 150 | * :guilabel:`Destroy old data`: Useful for purging deleted repository |
|
151 | 151 | information from the database. |
|
152 | 152 | * :guilabel:`Invalidate cache for all repositories`: Use this to completely |
|
153 | 153 | remap all |repos|. Useful when importing or migrating |repos| to ensure all |
|
154 | 154 | new information is picked up. |
|
155 | 155 | |
|
156 | 156 | .. _custom-hooks: |
|
157 | 157 | |
|
158 | 158 | Adding Custom Hooks |
|
159 | 159 | ^^^^^^^^^^^^^^^^^^^ |
|
160 | 160 | |
|
161 | 161 | To add custom hooks to your instance, use the following steps: |
|
162 | 162 | |
|
163 | 163 | 1. Open :menuselection:`Admin --> Settings --> Hooks` |
|
164 | 164 | 2. Add your custom hook details, you can use a file path to specify custom |
|
165 | 165 | hook scripts, for example: |
|
166 | 166 | ``pretxnchangegroup.example`` with value ``python:/path/to/custom_hook.py:my_func_name`` |
|
167 | 167 | 3. Select :guilabel:`Save` |
|
168 | 168 | |
|
169 | 169 | Also, see the RhodeCode Extensions section of the :ref:`rc-tools` guide. RhodeCode |
|
170 | 170 | Extensions can be used to add additional hooks to your instance and comes |
|
171 | 171 | with a number of pre-built plugins if you chose to install them. |
|
172 | 172 | |
|
173 | 173 | .. _clear-repo-cache: |
|
174 | 174 | |
|
175 | 175 | Clearing |repo| cache |
|
176 | 176 | ^^^^^^^^^^^^^^^^^^^^^ |
|
177 | 177 | |
|
178 | 178 | If you need to clear the cache for a particular |repo|, use the following steps: |
|
179 | 179 | |
|
180 | 180 | 1. Open :menuselection:`Admin --> Repositories` and select :guilabel:`Edit` |
|
181 | 181 | beside the |repo| whose cache you wish to clear. |
|
182 | 182 | 2. On the |repo| settings page, go to the :guilabel:`Caches` tab and select |
|
183 | 183 | :guilabel:`Invalidate repository cache`. |
|
184 | 184 | |
|
185 | 185 | .. _set-lang: |
|
186 | 186 | |
|
187 | 187 | Changing Default Language |
|
188 | 188 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
189 | 189 | |
|
190 | 190 | To change the default language of a |RCE| instance, change the language code |
|
191 | 191 | in the :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file. To |
|
192 | 192 | do this, use the following steps. |
|
193 | 193 | |
|
194 | 194 | 1. Open the :file:`rhodecode.ini` file and set the required language code. |
|
195 | 195 | |
|
196 | 196 | .. code-block:: ini |
|
197 | 197 | |
|
198 | 198 | ## Optional Languages |
|
199 | 199 | ## en(default), de, fr, it, ja, pl, pt, ru, zh |
|
200 | 200 | lang = de |
|
201 | 201 | |
|
202 | 202 | 2. Restart the |RCE| instance and check that the language has been updated. |
|
203 | 203 | |
|
204 | 204 | .. code-block:: bash |
|
205 | 205 | |
|
206 | 206 | $ rccontrol restart enterprise-2 |
|
207 | 207 | Instance "enterprise-2" successfully stopped. |
|
208 | 208 | Instance "enterprise-2" successfully started. |
|
209 | 209 | |
|
210 | 210 | .. image:: ../../images/language.png |
|
211 | 211 | |
|
212 | 212 | .. _set-repo-pub: |
|
213 | 213 | |
|
214 | 214 | Setting Repositories to Publish |
|
215 | 215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
216 | 216 | |
|
217 | 217 | To automatically promote your local |repos| to public after pushing to |RCE|, |
|
218 | 218 | enable the :guilabel:`Set repositories as publishing` option on the |
|
219 | 219 | :menuselection:`Admin --> Settings --> VCS` page. |
|
220 | 220 | |
|
221 | 221 | .. note:: |
|
222 | 222 | |
|
223 | 223 | This option is enabled by default on most |RCE| versions, but if upgrading |
|
224 | 224 | from a 1.7.x version it could be disabled on upgrade due to inheriting |
|
225 | 225 | older default settings. |
|
226 | 226 | |
|
227 | 227 | .. _ping: |
|
228 | 228 | |
|
229 | 229 | Pinging the |RCE| Server |
|
230 | 230 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
|
231 | 231 | |
|
232 | 232 | You can check the IP Address of your |RCE| instance using the |
|
233 | 233 | following URL: ``{instance-URL}/_admin/ping``. |
|
234 | 234 | |
|
235 | 235 | .. code-block:: bash |
|
236 | 236 | |
|
237 | 237 | $ curl https://your.rhodecode.url/_admin/ping |
|
238 | 238 | pong[rce-7880] => 203.0.113.23 |
|
239 | 239 | |
|
240 | 240 | .. _Markdown: http://daringfireball.net/projects/markdown/ |
|
241 |
.. _reStructured Text: http://docutils.sourceforge. |
|
|
241 | .. _reStructured Text: http://docutils.sourceforge.io/docs/index.html | |
|
242 | 242 | |
|
243 | 243 | |
|
244 | 244 | Unarchiving a repository |
|
245 | 245 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
246 | 246 | |
|
247 | 247 | Archive operation for the repository is similar as delete. Archive keeps the data for future references |
|
248 | 248 | but makes the repository read-only. After archiving the repository it shouldn't be modified in any way. |
|
249 | 249 | This is why repository settings are disabled for an archived repository. |
|
250 | 250 | |
|
251 | 251 | If there's a need for unarchiving a repository for some reasons, the interactive |
|
252 | 252 | ishell interface should be used. |
|
253 | 253 | |
|
254 | 254 | .. code-block:: bash |
|
255 | 255 | |
|
256 | 256 | # Open iShell from the terminal |
|
257 | 257 | $ rccontrol ishell enterprise-1/community-1 |
|
258 | 258 | |
|
259 | 259 | .. code-block:: python |
|
260 | 260 | |
|
261 | 261 | # Set repository as un-archived |
|
262 | 262 | In [1]: repo = Repository.get_by_repo_name('SOME_REPO_NAME') |
|
263 | 263 | In [2]: repo.archived = False |
|
264 | 264 | In [3]: Session().add(repo);Session().commit() |
@@ -1,106 +1,106 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | # Copyright (C) 2010-2020 RhodeCode GmbH |
|
4 | 4 | # |
|
5 | 5 | # This program is free software: you can redistribute it and/or modify |
|
6 | 6 | # it under the terms of the GNU Affero General Public License, version 3 |
|
7 | 7 | # (only), as published by the Free Software Foundation. |
|
8 | 8 | # |
|
9 | 9 | # This program is distributed in the hope that it will be useful, |
|
10 | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | 12 | # GNU General Public License for more details. |
|
13 | 13 | # |
|
14 | 14 | # You should have received a copy of the GNU Affero General Public License |
|
15 | 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
16 | 16 | # |
|
17 | 17 | # This program is dual-licensed. If you wish to learn more about the |
|
18 | 18 | # RhodeCode Enterprise Edition, including its added features, Support services, |
|
19 | 19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
20 | 20 | |
|
21 | 21 | """ |
|
22 | 22 | Single source for redirection links. |
|
23 | 23 | |
|
24 | 24 | Goal of this module is to provide a single source of truth regarding external |
|
25 | 25 | links. The data inside this module is used to configure the routing |
|
26 | 26 | system of Enterprise and it is used also as a base to check if this data |
|
27 | 27 | and our server configuration are in sync. |
|
28 | 28 | |
|
29 | 29 | .. py:data:: link_config |
|
30 | 30 | |
|
31 | 31 | Contains the configuration for external links. Each item is supposed to be |
|
32 | 32 | a `dict` like this example:: |
|
33 | 33 | |
|
34 | 34 | {"name": "url_name", |
|
35 | 35 | "target": "https://rhodecode.com/r1/enterprise/keyword/", |
|
36 | 36 | "external_target": "https://example.com/some-page.html", |
|
37 | 37 | } |
|
38 | 38 | |
|
39 | 39 | then you can retrieve the url by simply calling the URL function: |
|
40 | 40 | |
|
41 | 41 | `h.route_path('url_name')` |
|
42 | 42 | |
|
43 | 43 | The redirection must be first implemented in our servers before |
|
44 | 44 | you can see it working. |
|
45 | 45 | """ |
|
46 | 46 | # pragma: no cover |
|
47 | 47 | from __future__ import unicode_literals |
|
48 | 48 | |
|
49 | 49 | link_config = [ |
|
50 | 50 | { |
|
51 | 51 | "name": "enterprise_docs", |
|
52 | 52 | "target": "https://rhodecode.com/r1/enterprise/docs/", |
|
53 | 53 | "external_target": "https://docs.rhodecode.com/RhodeCode-Enterprise/", |
|
54 | 54 | }, |
|
55 | 55 | { |
|
56 | 56 | "name": "enterprise_log_file_locations", |
|
57 | 57 | "target": "https://rhodecode.com/r1/enterprise/docs/admin-system-overview/", |
|
58 | 58 | "external_target": "https://docs.rhodecode.com/RhodeCode-Enterprise/admin/system-overview.html#log-files", |
|
59 | 59 | }, |
|
60 | 60 | { |
|
61 | 61 | "name": "enterprise_issue_tracker_settings", |
|
62 | 62 | "target": "https://rhodecode.com/r1/enterprise/docs/issue-trackers-overview/", |
|
63 | 63 | "external_target": "https://docs.rhodecode.com/RhodeCode-Enterprise/issue-trackers/issue-trackers.html", |
|
64 | 64 | }, |
|
65 | 65 | { |
|
66 | 66 | "name": "enterprise_svn_setup", |
|
67 | 67 | "target": "https://rhodecode.com/r1/enterprise/docs/svn-setup/", |
|
68 | 68 | "external_target": "https://docs.rhodecode.com/RhodeCode-Enterprise/admin/svn-http.html", |
|
69 | 69 | }, |
|
70 | 70 | { |
|
71 | 71 | "name": "enterprise_license_convert_from_old", |
|
72 | 72 | "target": "https://rhodecode.com/r1/enterprise/convert-license/", |
|
73 | 73 | "external_target": "https://rhodecode.com/u/license-upgrade", |
|
74 | 74 | }, |
|
75 | 75 | { |
|
76 | 76 | "name": "rst_help", |
|
77 |
"target": "http://docutils.sourceforge. |
|
|
77 | "target": "http://docutils.sourceforge.io/docs/user/rst/quickref.html", | |
|
78 | 78 | "external_target": "https://docutils.sourceforge.io/docs/user/rst/quickref.html", |
|
79 | 79 | }, |
|
80 | 80 | { |
|
81 | 81 | "name": "markdown_help", |
|
82 | 82 | "target": "https://daringfireball.net/projects/markdown/syntax", |
|
83 | 83 | "external_target": "https://daringfireball.net/projects/markdown/syntax", |
|
84 | 84 | }, |
|
85 | 85 | { |
|
86 | 86 | "name": "rhodecode_official", |
|
87 | 87 | "target": "https://rhodecode.com", |
|
88 | 88 | "external_target": "https://rhodecode.com/", |
|
89 | 89 | }, |
|
90 | 90 | { |
|
91 | 91 | "name": "rhodecode_support", |
|
92 | 92 | "target": "https://rhodecode.com/help/", |
|
93 | 93 | "external_target": "https://rhodecode.com/support", |
|
94 | 94 | }, |
|
95 | 95 | { |
|
96 | 96 | "name": "rhodecode_translations", |
|
97 | 97 | "target": "https://rhodecode.com/translate/enterprise", |
|
98 | 98 | "external_target": "https://www.transifex.com/rhodecode/RhodeCode/", |
|
99 | 99 | }, |
|
100 | 100 | |
|
101 | 101 | ] |
|
102 | 102 | |
|
103 | 103 | |
|
104 | 104 | def connect_redirection_links(config): |
|
105 | 105 | for link in link_config: |
|
106 | 106 | config.add_route(link['name'], link['target'], static=True) |
@@ -1,1160 +1,1160 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%namespace name="base" file="/base/base.mako"/> |
|
3 | 3 | <%inherit file="/debug_style/index.html"/> |
|
4 | 4 | |
|
5 | 5 | <%def name="breadcrumbs_links()"> |
|
6 | 6 | ${h.link_to(_('Style'), h.route_path('debug_style_home'))} |
|
7 | 7 | » |
|
8 | 8 | ${c.active} |
|
9 | 9 | </%def> |
|
10 | 10 | |
|
11 | 11 | <%def name="js_extra()"> |
|
12 | 12 | </%def> |
|
13 | 13 | |
|
14 | 14 | <%def name="css_extra()"> |
|
15 | 15 | </%def> |
|
16 | 16 | |
|
17 | 17 | |
|
18 | 18 | <%def name="real_main()"> |
|
19 | 19 | <div class="box"> |
|
20 | 20 | <div class="title"> |
|
21 | 21 | ${self.breadcrumbs()} |
|
22 | 22 | </div> |
|
23 | 23 | |
|
24 | 24 | ##main |
|
25 | 25 | <div class='sidebar-col-wrapper'> |
|
26 | 26 | ${self.sidebar()} |
|
27 | 27 | |
|
28 | 28 | <div class="main-content"> |
|
29 | 29 | |
|
30 | 30 | |
|
31 | 31 | |
|
32 | 32 | <h2>Code Blocks</h2> |
|
33 | 33 | |
|
34 | 34 | <dl class="dl-horizontal"> |
|
35 | 35 | <dt><code>.codeblock</code></dt> |
|
36 | 36 | <dd>Used as a wrapping element around <code>.code-header</code> and |
|
37 | 37 | <code>.code-body</code>. Used to show the content of a file or a |
|
38 | 38 | Gist.</dd> |
|
39 | 39 | |
|
40 | 40 | <dt><code>.diffblock</code></dt> |
|
41 | 41 | <dd>Used as a wrapping element to show a diff in a Commit or Pull |
|
42 | 42 | Request page. Contains usually <code>.code-header</code>, |
|
43 | 43 | <code>.code-body</code> and in the edit case a <code>.message</code>. |
|
44 | 44 | </dd> |
|
45 | 45 | </dl> |
|
46 | 46 | |
|
47 | 47 | |
|
48 | 48 | <p>Code Blocks are used in the following areas:</p> |
|
49 | 49 | |
|
50 | 50 | <ul> |
|
51 | 51 | <li>Commit: Showing the Diff (still called Changeset in a few |
|
52 | 52 | places).</li> |
|
53 | 53 | <li>File: Display a file, annotations, and edit a file.</li> |
|
54 | 54 | <li>Gist: Show the Gist and edit it.</li> |
|
55 | 55 | <li>Pull Request: Display the Diff of a Pull Request.</li> |
|
56 | 56 | </ul> |
|
57 | 57 | |
|
58 | 58 | |
|
59 | 59 | |
|
60 | 60 | <!-- |
|
61 | 61 | Compare Commits |
|
62 | 62 | --> |
|
63 | 63 | <h2>Compare Commits</h2> |
|
64 | 64 | |
|
65 | 65 | <div id="c-e589e34d6be8-5ab783e6d81b" class="diffblock margined comm"> |
|
66 | 66 | <div class="code-header"> |
|
67 | 67 | <div title="Go back to changed files overview"> |
|
68 | 68 | <a href="#changes_box"> |
|
69 | 69 | <i class="icon-circle-arrow-up"></i> |
|
70 | 70 | </a> |
|
71 | 71 | </div> |
|
72 | 72 | <div class="changeset_header"> |
|
73 | 73 | <div class="changeset_file"> |
|
74 | 74 | <i class="icon-file"></i> |
|
75 | 75 | <a href="/example/files/e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d/rhodecode/public/css/code-block.less">rhodecode/public/css/code-block.less</a> |
|
76 | 76 | </div> |
|
77 | 77 | <div class="diff-actions"> |
|
78 | 78 | <a href="/example/diff/rhodecode/public/css/code-block.less?fulldiff=1&diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=diff&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full diff for this file"> |
|
79 | 79 | <img class="icon" src="/images/icons/page_white_go.png"> |
|
80 | 80 | </a> |
|
81 | 81 | <a href="/example/diff-2way/rhodecode/public/css/code-block.less?fulldiff=1&diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=diff&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full side-by-side diff for this file"> |
|
82 | 82 | <img class="icon" src="/images/icons/application_double.png"> |
|
83 | 83 | </a> |
|
84 | 84 | <a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=raw&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Raw diff" tt_title="Raw diff"> |
|
85 | 85 | <img class="icon" src="/images/icons/page_white.png"> |
|
86 | 86 | </a> |
|
87 | 87 | <a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=download&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Download diff"> |
|
88 | 88 | <img class="icon" src="/images/icons/page_save.png"> |
|
89 | 89 | </a> |
|
90 | 90 | <a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=WS%3A1&c-e589e34d6be8-5ab783e6d81b=C%3A3#c-e589e34d6be8-5ab783e6d81b" title="Ignore white space"><img alt="Ignore white space" class="icon" src="/images/icons/text_strikethrough.png"></a> |
|
91 | 91 | <a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=C%3A6#c-e589e34d6be8-5ab783e6d81b" title="increase diff context to 6 lines"><img alt="increase diff context to 6 lines" class="icon" src="/images/icons/table_add.png"></a> |
|
92 | 92 | </div> |
|
93 | 93 | <span> |
|
94 | 94 | <label> |
|
95 | 95 | Show inline comments |
|
96 | 96 | <input checked="checked" class="show-inline-comments" id="" id_for="c-e589e34d6be8-5ab783e6d81b" name="" type="checkbox" value="1"> |
|
97 | 97 | </label> |
|
98 | 98 | </span> |
|
99 | 99 | </div> |
|
100 | 100 | </div> |
|
101 | 101 | <div class="code-body"> |
|
102 | 102 | <div class="full_f_path" path="rhodecode/public/css/code-block.less"></div> |
|
103 | 103 | <table class="code-difftable"> |
|
104 | 104 | <tbody><tr class="line context"> |
|
105 | 105 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td> |
|
106 | 106 | <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td> |
|
107 | 107 | <td class="code no-comment"> |
|
108 | 108 | <pre>@@ -391,7 +391,7 @@ |
|
109 | 109 | </pre> |
|
110 | 110 | </td> |
|
111 | 111 | </tr> |
|
112 | 112 | <tr class="line unmod"> |
|
113 | 113 | <td id="rhodecodepubliccsscode-blockless_o391" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o391">391</a></td> |
|
114 | 114 | <td id="rhodecodepubliccsscode-blockless_n391" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n391">391</a></td> |
|
115 | 115 | <td class="code no-comment"> |
|
116 | 116 | <pre>} /* Existing line, it might have a quite long content actually and in this case we might need some horizontal scrolling. The remaining text here is just used to make this line very long. |
|
117 | 117 | </pre> |
|
118 | 118 | </td> |
|
119 | 119 | </tr> |
|
120 | 120 | <tr class="line unmod"> |
|
121 | 121 | <td id="rhodecodepubliccsscode-blockless_o392" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o392">392</a></td> |
|
122 | 122 | <td id="rhodecodepubliccsscode-blockless_n392" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n392">392</a></td> |
|
123 | 123 | <td class="code no-comment"> |
|
124 | 124 | <pre></pre> |
|
125 | 125 | </td> |
|
126 | 126 | </tr> |
|
127 | 127 | <tr class="line unmod"> |
|
128 | 128 | <td id="rhodecodepubliccsscode-blockless_o393" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o393">393</a></td> |
|
129 | 129 | <td id="rhodecodepubliccsscode-blockless_n393" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n393">393</a></td> |
|
130 | 130 | <td class="code no-comment"> |
|
131 | 131 | <pre>.code-body.textarea.editor, |
|
132 | 132 | </pre> |
|
133 | 133 | </td> |
|
134 | 134 | </tr> |
|
135 | 135 | <tr class="line del"> |
|
136 | 136 | <td id="rhodecodepubliccsscode-blockless_o394" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o394">394</a></td> |
|
137 | 137 | <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n"></a></td> |
|
138 | 138 | <td class="code no-comment"> |
|
139 | 139 | <pre>div.code-body{ |
|
140 | 140 | </pre> |
|
141 | 141 | </td> |
|
142 | 142 | </tr> |
|
143 | 143 | <tr class="line add"> |
|
144 | 144 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td> |
|
145 | 145 | <td id="rhodecodepubliccsscode-blockless_n394" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n394">394</a></td> |
|
146 | 146 | <td class="code no-comment"> |
|
147 | 147 | <pre>div.code-body<ins> </ins>{ |
|
148 | 148 | </pre> |
|
149 | 149 | </td> |
|
150 | 150 | </tr> |
|
151 | 151 | <tr class="line unmod"> |
|
152 | 152 | <td id="rhodecodepubliccsscode-blockless_o395" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o395">395</a></td> |
|
153 | 153 | <td id="rhodecodepubliccsscode-blockless_n395" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n395">395</a></td> |
|
154 | 154 | <td class="code no-comment"> |
|
155 | 155 | <pre> float: left; |
|
156 | 156 | </pre> |
|
157 | 157 | </td> |
|
158 | 158 | </tr> |
|
159 | 159 | <tr class="line unmod"> |
|
160 | 160 | <td id="rhodecodepubliccsscode-blockless_o396" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o396">396</a></td> |
|
161 | 161 | <td id="rhodecodepubliccsscode-blockless_n396" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n396">396</a></td> |
|
162 | 162 | <td class="code no-comment"> |
|
163 | 163 | <pre> position: relative; |
|
164 | 164 | </pre> |
|
165 | 165 | </td> |
|
166 | 166 | </tr> |
|
167 | 167 | <tr class="line unmod"> |
|
168 | 168 | <td id="rhodecodepubliccsscode-blockless_o397" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o397">397</a></td> |
|
169 | 169 | <td id="rhodecodepubliccsscode-blockless_n397" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n397">397</a></td> |
|
170 | 170 | <td class="code no-comment"> |
|
171 | 171 | <pre> max-width: none; |
|
172 | 172 | </pre> |
|
173 | 173 | </td> |
|
174 | 174 | </tr> |
|
175 | 175 | <tr class="line context"> |
|
176 | 176 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td> |
|
177 | 177 | <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td> |
|
178 | 178 | <td class="code no-comment"> |
|
179 | 179 | <pre>@@ -399,3 +399,6 @@ |
|
180 | 180 | </pre> |
|
181 | 181 | </td> |
|
182 | 182 | </tr> |
|
183 | 183 | <tr class="line unmod"> |
|
184 | 184 | <td id="rhodecodepubliccsscode-blockless_o399" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o399">399</a></td> |
|
185 | 185 | <td id="rhodecodepubliccsscode-blockless_n399" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n399">399</a></td> |
|
186 | 186 | <td class="code no-comment"> |
|
187 | 187 | <pre> box-sizing: border-box; |
|
188 | 188 | </pre> |
|
189 | 189 | </td> |
|
190 | 190 | </tr> |
|
191 | 191 | <tr class="line unmod"> |
|
192 | 192 | <td id="rhodecodepubliccsscode-blockless_o400" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o400">400</a></td> |
|
193 | 193 | <td id="rhodecodepubliccsscode-blockless_n400" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n400">400</a></td> |
|
194 | 194 | <td class="code no-comment"> |
|
195 | 195 | <pre>} |
|
196 | 196 | </pre> |
|
197 | 197 | </td> |
|
198 | 198 | </tr> |
|
199 | 199 | <tr class="line unmod"> |
|
200 | 200 | <td id="rhodecodepubliccsscode-blockless_o401" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o401">401</a></td> |
|
201 | 201 | <td id="rhodecodepubliccsscode-blockless_n401" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n401">401</a></td> |
|
202 | 202 | <td class="code no-comment"> |
|
203 | 203 | <pre></pre> |
|
204 | 204 | </td> |
|
205 | 205 | </tr> |
|
206 | 206 | <tr class="line add"> |
|
207 | 207 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td> |
|
208 | 208 | <td id="rhodecodepubliccsscode-blockless_n402" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n402">402</a></td> |
|
209 | 209 | <td class="code no-comment"> |
|
210 | 210 | <pre>.code-body td{ |
|
211 | 211 | </pre> |
|
212 | 212 | </td> |
|
213 | 213 | </tr> |
|
214 | 214 | <tr class="line add"> |
|
215 | 215 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td> |
|
216 | 216 | <td id="rhodecodepubliccsscode-blockless_n403" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n403">403</a></td> |
|
217 | 217 | <td class="code no-comment"> |
|
218 | 218 | <pre> line-height: 1.2em; |
|
219 | 219 | </pre> |
|
220 | 220 | </td> |
|
221 | 221 | </tr> |
|
222 | 222 | <tr class="line add"> |
|
223 | 223 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td> |
|
224 | 224 | <td id="rhodecodepubliccsscode-blockless_n404" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n404">404</a></td> |
|
225 | 225 | <td class="code no-comment"> |
|
226 | 226 | <pre>} |
|
227 | 227 | </pre> |
|
228 | 228 | </td> |
|
229 | 229 | </tr> |
|
230 | 230 | <tr class="line context"> |
|
231 | 231 | <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td> |
|
232 | 232 | <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td> |
|
233 | 233 | <td class="code no-comment"> |
|
234 | 234 | <pre> No newline at end of file |
|
235 | 235 | </pre> |
|
236 | 236 | </td> |
|
237 | 237 | </tr> |
|
238 | 238 | </tbody></table> |
|
239 | 239 | </div> |
|
240 | 240 | </div> |
|
241 | 241 | |
|
242 | 242 | |
|
243 | 243 | |
|
244 | 244 | |
|
245 | 245 | |
|
246 | 246 | |
|
247 | 247 | <!-- |
|
248 | 248 | Pull Request |
|
249 | 249 | --> |
|
250 | 250 | |
|
251 | 251 | <h2>Pull Request</h2> |
|
252 | 252 | |
|
253 | 253 | <div class="cs_files"> |
|
254 | 254 | <table class="compare_view_files"> |
|
255 | 255 | |
|
256 | 256 | <tbody><tr class="cs_M collapse_file" fid="c--5f1d017cf13b"> |
|
257 | 257 | <td class="cs_icon_td"> |
|
258 | 258 | <span class="collapse_file_icon" fid="c--5f1d017cf13b"></span> |
|
259 | 259 | </td> |
|
260 | 260 | <td class="cs_icon_td"> |
|
261 | 261 | <div class="flag_status not_reviewed hidden"></div> |
|
262 | 262 | </td> |
|
263 | 263 | <td id="a_c--5f1d017cf13b"> |
|
264 | 264 | <a class="compare_view_filepath" href="#a_c--5f1d017cf13b"> |
|
265 | 265 | rhodecode/public/css/main.less |
|
266 | 266 | </a> |
|
267 | 267 | <span id="diff_c--5f1d017cf13b" class="diff_links" style=""> |
|
268 | 268 | <a href="/example/diff/rhodecode/public/css/main.less?fulldiff=1&diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&diff=diff&diff2=27eb56cf467ca849112536d62decb2ed020b3ebc"> |
|
269 | 269 | Unified Diff |
|
270 | 270 | </a> |
|
271 | 271 | | |
|
272 | 272 | <a href="/example/diff-2way/rhodecode/public/css/main.less?fulldiff=1&diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&diff=diff&diff2=27eb56cf467ca849112536d62decb2ed020b3ebc"> |
|
273 | 273 | Side-by-side Diff |
|
274 | 274 | </a> |
|
275 | 275 | </span> |
|
276 | 276 | </td> |
|
277 | 277 | <td> |
|
278 | 278 | <div class="changes pull-right"><div style="width:100px"><div class="added top-left-rounded-corner-mid bottom-left-rounded-corner-mid" style="width:33.3333333333%">1</div><div class="deleted top-right-rounded-corner-mid bottom-right-rounded-corner-mid" style="width:66.6666666667%">2</div></div></div> |
|
279 | 279 | <div class="comment-bubble pull-right" data-path="rhodecode/public/css/main.less"> |
|
280 | 280 | <i class="icon-comment"></i> |
|
281 | 281 | </div> |
|
282 | 282 | </td> |
|
283 | 283 | </tr> |
|
284 | 284 | <tr id="tr_c--5f1d017cf13b"> |
|
285 | 285 | <td></td> |
|
286 | 286 | <td></td> |
|
287 | 287 | <td class="injected_diff" colspan="2"> |
|
288 | 288 | |
|
289 | 289 | <div class="diff-container" id="diff-container-140360026534904"> |
|
290 | 290 | <div id="c--5f1d017cf13b_target"></div> |
|
291 | 291 | <div id="c--5f1d017cf13b" class="diffblock margined comm"> |
|
292 | 292 | <div class="code-body"> |
|
293 | 293 | <div class="full_f_path" path="rhodecode/public/css/main.less" style="display: none;"></div> |
|
294 | 294 | <table class="code-difftable"> |
|
295 | 295 | <tbody><tr class="line context"> |
|
296 | 296 | <td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td> |
|
297 | 297 | <td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td> |
|
298 | 298 | <td class="code "> |
|
299 | 299 | <pre>@@ -2110,7 +2110,6 @@ |
|
300 | 300 | </pre> |
|
301 | 301 | </td> |
|
302 | 302 | </tr> |
|
303 | 303 | <tr class="line unmod"> |
|
304 | 304 | <td id="rhodecodepubliccssmainless_o2110" class="lineno old"><a href="#rhodecodepubliccssmainless_o2110">2110</a></td> |
|
305 | 305 | <td id="rhodecodepubliccssmainless_n2110" class="lineno new"><a href="#rhodecodepubliccssmainless_n2110">2110</a></td> |
|
306 | 306 | <td class="code "> |
|
307 | 307 | <pre><span class="tab-escape"> </span>width: auto !important; |
|
308 | 308 | </pre> |
|
309 | 309 | </td> |
|
310 | 310 | </tr> |
|
311 | 311 | <tr class="line unmod"> |
|
312 | 312 | <td id="rhodecodepubliccssmainless_o2111" class="lineno old"><a href="#rhodecodepubliccssmainless_o2111">2111</a></td> |
|
313 | 313 | <td id="rhodecodepubliccssmainless_n2111" class="lineno new"><a href="#rhodecodepubliccssmainless_n2111">2111</a></td> |
|
314 | 314 | <td class="code "> |
|
315 | 315 | <pre><span class="tab-escape"> </span>min-width: 160px; |
|
316 | 316 | </pre> |
|
317 | 317 | </td> |
|
318 | 318 | </tr> |
|
319 | 319 | <tr class="line unmod"> |
|
320 | 320 | <td id="rhodecodepubliccssmainless_o2112" class="lineno old"><a href="#rhodecodepubliccssmainless_o2112">2112</a></td> |
|
321 | 321 | <td id="rhodecodepubliccssmainless_n2112" class="lineno new"><a href="#rhodecodepubliccssmainless_n2112">2112</a></td> |
|
322 | 322 | <td class="code "> |
|
323 | 323 | <pre><span class="tab-escape"> </span>margin: @padding @padding @padding 0; |
|
324 | 324 | </pre> |
|
325 | 325 | </td> |
|
326 | 326 | </tr> |
|
327 | 327 | <tr class="line del"> |
|
328 | 328 | <td id="rhodecodepubliccssmainless_o2113" class="lineno old"><a href="#rhodecodepubliccssmainless_o2113">2113</a></td> |
|
329 | 329 | <td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td> |
|
330 | 330 | <td class="code "> |
|
331 | 331 | <pre><span class="tab-escape"> </span>padding: .9em; /* Old comment which was making this line a very long line so that we might have to deal with it by either adding horizontal scrolling or some smart way of breaking this line. */ |
|
332 | 332 | </pre> |
|
333 | 333 | </td> |
|
334 | 334 | </tr> |
|
335 | 335 | <tr class="line unmod"> |
|
336 | 336 | <td id="rhodecodepubliccssmainless_o2114" class="lineno old"><a href="#rhodecodepubliccssmainless_o2114">2114</a></td> |
|
337 | 337 | <td id="rhodecodepubliccssmainless_n2113" class="lineno new"><a href="#rhodecodepubliccssmainless_n2113">2113</a></td> |
|
338 | 338 | <td class="code "> |
|
339 | 339 | <pre> line-height: 1em; |
|
340 | 340 | </pre> |
|
341 | 341 | </td> |
|
342 | 342 | </tr> |
|
343 | 343 | <tr class="line unmod"> |
|
344 | 344 | <td id="rhodecodepubliccssmainless_o2115" class="lineno old"><a href="#rhodecodepubliccssmainless_o2115">2115</a></td> |
|
345 | 345 | <td id="rhodecodepubliccssmainless_n2114" class="lineno new"><a href="#rhodecodepubliccssmainless_n2114">2114</a></td> |
|
346 | 346 | <td class="code "> |
|
347 | 347 | <pre><span class="tab-escape"> </span>z-index: 100;//js sets the menu below it to 9999 |
|
348 | 348 | </pre> |
|
349 | 349 | </td> |
|
350 | 350 | </tr> |
|
351 | 351 | <tr class="line unmod"> |
|
352 | 352 | <td id="rhodecodepubliccssmainless_o2116" class="lineno old"><a href="#rhodecodepubliccssmainless_o2116">2116</a></td> |
|
353 | 353 | <td id="rhodecodepubliccssmainless_n2115" class="lineno new"><a href="#rhodecodepubliccssmainless_n2115">2115</a></td> |
|
354 | 354 | <td class="code "> |
|
355 | 355 | <pre><span class="tab-escape"> </span>background-color: white; |
|
356 | 356 | </pre> |
|
357 | 357 | </td> |
|
358 | 358 | </tr> |
|
359 | 359 | <tr class="line context"> |
|
360 | 360 | <td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td> |
|
361 | 361 | <td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td> |
|
362 | 362 | <td class="code "> |
|
363 | 363 | <pre>@@ -2118,7 +2117,7 @@ |
|
364 | 364 | </pre> |
|
365 | 365 | </td> |
|
366 | 366 | </tr> |
|
367 | 367 | <tr class="line unmod"> |
|
368 | 368 | <td id="rhodecodepubliccssmainless_o2118" class="lineno old"><a href="#rhodecodepubliccssmainless_o2118">2118</a></td> |
|
369 | 369 | <td id="rhodecodepubliccssmainless_n2117" class="lineno new"><a href="#rhodecodepubliccssmainless_n2117">2117</a></td> |
|
370 | 370 | <td class="code "> |
|
371 | 371 | <pre></pre> |
|
372 | 372 | </td> |
|
373 | 373 | </tr> |
|
374 | 374 | <tr class="line unmod"> |
|
375 | 375 | <td id="rhodecodepubliccssmainless_o2119" class="lineno old"><a href="#rhodecodepubliccssmainless_o2119">2119</a></td> |
|
376 | 376 | <td id="rhodecodepubliccssmainless_n2118" class="lineno new"><a href="#rhodecodepubliccssmainless_n2118">2118</a></td> |
|
377 | 377 | <td class="code "> |
|
378 | 378 | <pre><span class="tab-escape"> </span>a { |
|
379 | 379 | </pre> |
|
380 | 380 | </td> |
|
381 | 381 | </tr> |
|
382 | 382 | <tr class="line unmod"> |
|
383 | 383 | <td id="rhodecodepubliccssmainless_o2120" class="lineno old"><a href="#rhodecodepubliccssmainless_o2120">2120</a></td> |
|
384 | 384 | <td id="rhodecodepubliccssmainless_n2119" class="lineno new"><a href="#rhodecodepubliccssmainless_n2119">2119</a></td> |
|
385 | 385 | <td class="code "> |
|
386 | 386 | <pre><span class="tab-escape"> </span><span class="tab-escape"> </span>display:block; |
|
387 | 387 | </pre> |
|
388 | 388 | </td> |
|
389 | 389 | </tr> |
|
390 | 390 | <tr class="line del"> |
|
391 | 391 | <td id="rhodecodepubliccssmainless_o2121" class="lineno old"><a href="#rhodecodepubliccssmainless_o2121">2121</a></td> |
|
392 | 392 | <td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td> |
|
393 | 393 | <td class="code "> |
|
394 | 394 | <pre><span class="tab-escape"> </span><del><span< del=""> <del>class=</del><del>"tab-escape"</del><del>> </del>padding: <del>0</del>; |
|
395 | 395 | </span<></del></pre> |
|
396 | 396 | </td> |
|
397 | 397 | </tr> |
|
398 | 398 | <tr class="line add"> |
|
399 | 399 | <td class="lineno old"><a href="#rhodecodepubliccssmainless_o"></a></td> |
|
400 | 400 | <td id="rhodecodepubliccssmainless_n2120" class="lineno new"><a href="#rhodecodepubliccssmainless_n2120">2120</a></td> |
|
401 | 401 | <td class="code "> |
|
402 | 402 | <pre><span class="tab-escape"> </span><ins> </ins> <ins> </ins><ins> </ins>padding: <ins>.9em</ins>; |
|
403 | 403 | </pre> |
|
404 | 404 | </td> |
|
405 | 405 | </tr> |
|
406 | 406 | <tr class="line unmod"> |
|
407 | 407 | <td id="rhodecodepubliccssmainless_o2122" class="lineno old"><a href="#rhodecodepubliccssmainless_o2122">2122</a></td> |
|
408 | 408 | <td id="rhodecodepubliccssmainless_n2121" class="lineno new"><a href="#rhodecodepubliccssmainless_n2121">2121</a></td> |
|
409 | 409 | <td class="code "> |
|
410 | 410 | <pre></pre> |
|
411 | 411 | </td> |
|
412 | 412 | </tr> |
|
413 | 413 | <tr class="line unmod"> |
|
414 | 414 | <td id="rhodecodepubliccssmainless_o2123" class="lineno old"><a href="#rhodecodepubliccssmainless_o2123">2123</a></td> |
|
415 | 415 | <td id="rhodecodepubliccssmainless_n2122" class="lineno new"><a href="#rhodecodepubliccssmainless_n2122">2122</a></td> |
|
416 | 416 | <td class="code "> |
|
417 | 417 | <pre><span class="tab-escape"> </span><span class="tab-escape"> </span>&:after { |
|
418 | 418 | </pre> |
|
419 | 419 | </td> |
|
420 | 420 | </tr> |
|
421 | 421 | <tr class="line unmod"> |
|
422 | 422 | <td id="rhodecodepubliccssmainless_o2124" class="lineno old"><a href="#rhodecodepubliccssmainless_o2124">2124</a></td> |
|
423 | 423 | <td id="rhodecodepubliccssmainless_n2123" class="lineno new"><a href="#rhodecodepubliccssmainless_n2123">2123</a></td> |
|
424 | 424 | <td class="code "> |
|
425 | 425 | <pre><span class="tab-escape"> </span><span class="tab-escape"> </span><span class="tab-escape"> </span>content: "\00A0\25BE"; |
|
426 | 426 | </pre> |
|
427 | 427 | </td> |
|
428 | 428 | </tr> |
|
429 | 429 | </tbody></table> |
|
430 | 430 | </div> |
|
431 | 431 | </div> |
|
432 | 432 | </div> |
|
433 | 433 | |
|
434 | 434 | </td> |
|
435 | 435 | </tr> |
|
436 | 436 | </tbody></table> |
|
437 | 437 | </div> |
|
438 | 438 | |
|
439 | 439 | |
|
440 | 440 | |
|
441 | 441 | |
|
442 | 442 | |
|
443 | 443 | |
|
444 | 444 | |
|
445 | 445 | |
|
446 | 446 | |
|
447 | 447 | <!-- |
|
448 | 448 | File View |
|
449 | 449 | --> |
|
450 | 450 | |
|
451 | 451 | ##TODO: lisa: I believe this needs to be updated as the layout has changed. |
|
452 | 452 | <h2>File View</h2> |
|
453 | 453 | |
|
454 | 454 | <div class="codeblock"> |
|
455 | 455 | <div class="code-header"> |
|
456 | 456 | <div class="stats"> |
|
457 | 457 | <div class="img"> |
|
458 | 458 | <i class="icon-file"></i> |
|
459 | 459 | <span class="revision_id item"><a href="/example/changeset/fc252256eb0fcb4f2613e66f0126ea27967ae28c">r5487:fc252256eb0f</a></span> |
|
460 | 460 | <span>1.2 KiB</span> |
|
461 | 461 | <span class="item last">text/x-python</span> |
|
462 | 462 | <div class="buttons"> |
|
463 | 463 | |
|
464 | 464 | <a id="file_history_overview" class="btn btn-mini" href="#"> |
|
465 | 465 | <i class="icon-time"></i> history |
|
466 | 466 | </a> |
|
467 | 467 | <a id="file_history_overview_full" class="btn btn-mini" style="display: none" href="/example/changelog/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py"> |
|
468 | 468 | <i class="icon-time"></i> show full history |
|
469 | 469 | </a> |
|
470 | 470 | <a class="btn btn-mini" href="/example/annotate/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">annotation</a> |
|
471 | 471 | <a class="btn btn-mini" href="/example/raw/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">raw</a> |
|
472 | 472 | <a class="btn btn-mini" href="/example/rawfile/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py"> |
|
473 | 473 | download |
|
474 | 474 | </a> |
|
475 | 475 | |
|
476 | 476 | <a class="btn btn-mini disabled tooltip" href="#" title="Editing files allowed only when on branch head commit">edit</a> |
|
477 | 477 | <a class="btn btn-mini btn-danger disabled tooltip" href="#" title="Deleting files allowed only when on branch head commit">delete</a> |
|
478 | 478 | </div> |
|
479 | 479 | </div> |
|
480 | 480 | </div> |
|
481 | 481 | <div id="file_history_container"></div> |
|
482 | 482 | <div class="author"> |
|
483 | 483 | <div class="gravatar"> |
|
484 | 484 | <img alt="gravatar" src="https://secure.gravatar.com/avatar/99e27b99c64003ca8c9875c9e3843495?d=identicon&s=32" height="16" width="16"> |
|
485 | 485 | </div> |
|
486 | 486 | <div title="Marcin Kuzminski <marcin@python-works.com>" class="user">Marcin Kuzminski - <span class="tooltip" title="Wed, 02 Jul 2014 08:48:15">6m and 12d ago</span></div> |
|
487 | 487 | </div> |
|
488 | 488 | <div id="trimmed_message_box" class="commit">License changes</div> |
|
489 | 489 | <div id="message_expand" style="display: none;"> |
|
490 | 490 | <i class="icon-resize-vertical"></i> |
|
491 | 491 | expand |
|
492 | 492 | <i class="icon-resize-vertical"></i> |
|
493 | 493 | </div> |
|
494 | 494 | </div> |
|
495 | 495 | <div class="code-body"> |
|
496 | 496 | <table class="code-highlighttable"><tbody><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L1"> 1</a> |
|
497 | 497 | <a href="#L2"> 2</a> |
|
498 | 498 | <a href="#L3"> 3</a> |
|
499 | 499 | <a href="#L4"> 4</a> |
|
500 | 500 | <a href="#L5"> 5</a> |
|
501 | 501 | <a href="#L6"> 6</a> |
|
502 | 502 | <a href="#L7"> 7</a> |
|
503 | 503 | <a href="#L8"> 8</a> |
|
504 | 504 | <a href="#L9"> 9</a> |
|
505 | 505 | <a href="#L10">10</a> |
|
506 | 506 | <a href="#L11">11</a> |
|
507 | 507 | <a href="#L12">12</a> |
|
508 | 508 | <a href="#L13">13</a> |
|
509 | 509 | <a href="#L14">14</a> |
|
510 | 510 | <a href="#L15">15</a> |
|
511 | 511 | <a href="#L16">16</a> |
|
512 | 512 | <a href="#L17">17</a> |
|
513 | 513 | <a href="#L18">18</a> |
|
514 | 514 | <a href="#L19">19</a> |
|
515 | 515 | <a href="#L20">20</a> |
|
516 | 516 | <a href="#L21">21</a> |
|
517 | 517 | <a href="#L22">22</a> |
|
518 | 518 | <a href="#L23">23</a> |
|
519 | 519 | <a href="#L24">24</a> |
|
520 | 520 | <a href="#L25">25</a> |
|
521 | 521 | <a href="#L26">26</a> |
|
522 | 522 | <a href="#L27">27</a> |
|
523 | 523 | <a href="#L28">28</a> |
|
524 | 524 | <a href="#L29">29</a> |
|
525 | 525 | <a href="#L30">30</a> |
|
526 | 526 | <a href="#L31">31</a> |
|
527 | 527 | <a href="#L32">32</a> |
|
528 | 528 | <a href="#L33">33</a> |
|
529 | 529 | <a href="#L34">34</a> |
|
530 | 530 | <a href="#L35">35</a> |
|
531 | 531 | <a href="#L36">36</a> |
|
532 | 532 | <a href="#L37">37</a> |
|
533 | 533 | <a href="#L38">38</a> |
|
534 | 534 | <a href="#L39">39</a> |
|
535 | 535 | <a href="#L40">40</a> |
|
536 | 536 | <a href="#L41">41</a> |
|
537 | 537 | <a href="#L42">42</a></pre></div></td><td id="hlcode" class="code"><div class="code-highlight"><pre><div id="L1"><a name="L-1"></a><span class="c"># -*- coding: utf-8 -*-</span> |
|
538 | 538 | </div><div id="L2"><a name="L-2"></a> |
|
539 | 539 | </div><div id="L3"><a name="L-3"></a><span class="c"># Published under Business Source License.</span> |
|
540 | 540 | </div><div id="L4"><a name="L-4"></a><span class="c"># Read the full license text at https://rhodecode.com/licenses.</span> |
|
541 | 541 | </div><div id="L5"><a name="L-5"></a><span class="sd">"""</span> |
|
542 | 542 | </div><div id="L6"><a name="L-6"></a><span class="sd">rhodecode.websetup</span> |
|
543 | 543 | </div><div id="L7"><a name="L-7"></a><span class="sd">~~~~~~~~~~~~~~~~~~</span> |
|
544 | 544 | </div><div id="L8"><a name="L-8"></a> |
|
545 | 545 | </div><div id="L9"><a name="L-9"></a><span class="sd">Weboperations and setup for rhodecode. Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</span> |
|
546 | 546 | </div><div id="L10"><a name="L-10"></a> |
|
547 | 547 | </div><div id="L11"><a name="L-11"></a><span class="sd">:created_on: Dec 11, 2010</span> |
|
548 | 548 | </div><div id="L12"><a name="L-12"></a><span class="sd">:author: marcink</span> |
|
549 | 549 | </div><div id="L13"><a name="L-13"></a><span class="sd">:copyright: (c) 2013-2015 RhodeCode GmbH.</span> |
|
550 | 550 | </div><div id="L14"><a name="L-14"></a><span class="sd">:license: Business Source License, see LICENSE for more details.</span> |
|
551 | 551 | </div><div id="L15"><a name="L-15"></a><span class="sd">"""</span> |
|
552 | 552 | </div><div id="L16"><a name="L-16"></a> |
|
553 | 553 | </div><div id="L17"><a name="L-17"></a><span class="kn">import</span> <span class="nn">logging</span> |
|
554 | 554 | </div><div id="L18"><a name="L-18"></a> |
|
555 | 555 | </div><div id="L19"><a name="L-19"></a><span class="kn">from</span> <span class="nn">rhodecode.config.environment</span> <span class="kn">import</span> <span class="n">load_environment</span> |
|
556 | 556 | </div><div id="L20"><a name="L-20"></a><span class="kn">from</span> <span class="nn">rhodecode.lib.db_manage</span> <span class="kn">import</span> <span class="n">DbManage</span> |
|
557 | 557 | </div><div id="L21"><a name="L-21"></a><span class="kn">from</span> <span class="nn">rhodecode.model.meta</span> <span class="kn">import</span> <span class="n">Session</span> |
|
558 | 558 | </div><div id="L22"><a name="L-22"></a> |
|
559 | 559 | </div><div id="L23"><a name="L-23"></a> |
|
560 | 560 | </div><div id="L24"><a name="L-24"></a><span class="n">log</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="n">__name__</span><span class="p">)</span> |
|
561 | 561 | </div><div id="L25"><a name="L-25"></a> |
|
562 | 562 | </div><div id="L26"><a name="L-26"></a> |
|
563 | 563 | </div><div id="L27"><a name="L-27"></a><span class="k">def</span> <span class="nf">setup_app</span><span class="p">(</span><span class="n">command</span><span class="p">,</span> <span class="n">conf</span><span class="p">,</span> <span class="nb">vars</span><span class="p">):</span> |
|
564 | 564 | </div><div id="L28"><a name="L-28"></a> <span class="sd">"""Place any commands to setup rhodecode here"""</span> |
|
565 | 565 | </div><div id="L29"><a name="L-29"></a> <span class="n">dbconf</span> <span class="o">=</span> <span class="n">conf</span><span class="p">[</span><span class="s">'sqlalchemy.db1.url'</span><span class="p">]</span> |
|
566 | 566 | </div><div id="L30"><a name="L-30"></a> <span class="n">dbmanage</span> <span class="o">=</span> <span class="n">DbManage</span><span class="p">(</span><span class="n">log_sql</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">dbconf</span><span class="o">=</span><span class="n">dbconf</span><span class="p">,</span> <span class="n">root</span><span class="o">=</span><span class="n">conf</span><span class="p">[</span><span class="s">'here'</span><span class="p">],</span> |
|
567 | 567 | </div><div id="L31"><a name="L-31"></a> <span class="n">tests</span><span class="o">=</span><span class="bp">False</span><span class="p">,</span> <span class="n">cli_args</span><span class="o">=</span><span class="n">command</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">__dict__</span><span class="p">)</span> |
|
568 | 568 | </div><div id="L32"><a name="L-32"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_tables</span><span class="p">(</span><span class="n">override</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span> |
|
569 | 569 | </div><div id="L33"><a name="L-33"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">set_db_version</span><span class="p">()</span> |
|
570 | 570 | </div><div id="L34"><a name="L-34"></a> <span class="n">opts</span> <span class="o">=</span> <span class="n">dbmanage</span><span class="o">.</span><span class="n">config_prompt</span><span class="p">(</span><span class="bp">None</span><span class="p">)</span> |
|
571 | 571 | </div><div id="L35"><a name="L-35"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_settings</span><span class="p">(</span><span class="n">opts</span><span class="p">)</span> |
|
572 | 572 | </div><div id="L36"><a name="L-36"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_default_user</span><span class="p">()</span> |
|
573 | 573 | </div><div id="L37"><a name="L-37"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">admin_prompt</span><span class="p">()</span> |
|
574 | 574 | </div><div id="L38"><a name="L-38"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_permissions</span><span class="p">()</span> |
|
575 | 575 | </div><div id="L39"><a name="L-39"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">populate_default_permissions</span><span class="p">()</span> |
|
576 | 576 | </div><div id="L40"><a name="L-40"></a> <span class="n">Session</span><span class="p">()</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span> |
|
577 | 577 | </div><div id="L41"><a name="L-41"></a> <span class="n">load_environment</span><span class="p">(</span><span class="n">conf</span><span class="o">.</span><span class="n">global_conf</span><span class="p">,</span> <span class="n">conf</span><span class="o">.</span><span class="n">local_conf</span><span class="p">,</span> <span class="n">initial</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span> |
|
578 | 578 | </div><div id="L42"><a name="L-42"></a> <span class="n">DbManage</span><span class="o">.</span><span class="n">check_waitress</span><span class="p">()</span> |
|
579 | 579 | </div></pre></div> |
|
580 | 580 | </td></tr></tbody></table> |
|
581 | 581 | </div> |
|
582 | 582 | </div> |
|
583 | 583 | |
|
584 | 584 | |
|
585 | 585 | |
|
586 | 586 | |
|
587 | 587 | |
|
588 | 588 | |
|
589 | 589 | |
|
590 | 590 | |
|
591 | 591 | |
|
592 | 592 | <!-- |
|
593 | 593 | Gist Edit |
|
594 | 594 | --> |
|
595 | 595 | |
|
596 | 596 | |
|
597 | 597 | <h2>Gist Edit</h2> |
|
598 | 598 | |
|
599 | 599 | <div class="codeblock"> |
|
600 | 600 | <div class="code-header"> |
|
601 | 601 | <div class="form"> |
|
602 | 602 | <div class="fields"> |
|
603 | 603 | <input id="filename" name="filename" placeholder="name this file..." size="30" type="text"> |
|
604 | 604 | <div class="select2-container drop-menu" id="s2id_mimetype"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-3">Python</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen3" class="select2-offscreen"></label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-3" id="s2id_autogen3"><div class="select2-drop select2-display-none drop-menu-dropdown select2-with-searchbox"> <div class="select2-search"> <label for="s2id_autogen3_search" class="select2-offscreen"></label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-3" id="s2id_autogen3_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-3"> </ul></div></div><select id="mimetype" name="mimetype" tabindex="-1" title="" style="display: none;"> |
|
605 | 605 | <option selected="selected" value="plain">plain</option> |
|
606 | 606 | <option value="text/apl" mode="apl">APL</option><option value="text/x-asterisk" mode="asterisk">Asterisk</option><option value="text/x-csrc" mode="clike">C</option><option value="text/x-c++src" mode="clike">C++</option><option value="text/x-cobol" mode="cobol">Cobol</option><option value="text/x-java" mode="clike">Java</option><option value="text/x-csharp" mode="clike">C#</option><option value="text/x-scala" mode="clike">Scala</option><option value="text/x-clojure" mode="clojure">Clojure</option><option value="text/x-coffeescript" mode="coffeescript">CoffeeScript</option><option value="text/x-common-lisp" mode="commonlisp">Common Lisp</option><option value="text/css" mode="css">CSS</option><option value="text/x-d" mode="d">D</option><option value="text/x-diff" mode="diff">diff</option><option value="application/xml-dtd" mode="dtd">DTD</option><option value="text/x-dylan" mode="dylan">Dylan</option><option value="text/x-ecl" mode="ecl">ECL</option><option value="text/x-eiffel" mode="eiffel">Eiffel</option><option value="text/x-erlang" mode="erlang">Erlang</option><option value="text/x-fortran" mode="fortran">Fortran</option><option value="text/x-fsharp" mode="mllike">F#</option><option value="text/x-gas" mode="gas">Gas</option><option value="text/x-go" mode="go">GO</option><option value="text/x-feature" mode="gherkin">Gherkin</option><option value="text/x-go" mode="go">Go</option><option value="text/x-groovy" mode="groovy">Groovy</option><option value="text/x-haml" mode="haml">HAML</option><option value="text/x-haskell" mode="haskell">Haskell</option><option value="text/x-haxe" mode="haxe">Haxe</option><option value="application/x-aspx" mode="htmlembedded">ASP.NET</option><option value="application/x-ejs" mode="htmlembedded">Embedded Javascript</option><option value="application/x-jsp" mode="htmlembedded">JavaServer Pages</option><option value="text/html" mode="htmlmixed">HTML</option><option value="message/http" mode="http">HTTP</option><option value="text/x-jade" mode="jade">Jade</option><option value="text/javascript" mode="javascript">JavaScript</option><option value="application/json" mode="javascript">JSON</option><option value="application/typescript" mode="javascript">TypeScript</option><option value="jinja2" mode="jinja2">Jinja2</option><option value="text/x-julia" mode="julia">Julia</option><option value="text/x-less" mode="less">LESS</option><option value="text/x-livescript" mode="livescript">LiveScript</option><option value="text/x-lua" mode="lua">Lua</option><option value="text/x-markdown" mode="markdown">Markdown (GitHub-flavour)</option><option value="text/mirc" mode="mirc">mIRC</option><option value="text/x-nginx-conf" mode="nginx">Nginx</option><option value="text/n-triples" mode="ntriples">NTriples</option><option value="text/x-ocaml" mode="ocaml">OCaml</option><option value="text/x-ocaml" mode="mllike">OCaml</option><option value="text/x-octave" mode="octave">Octave</option><option value="text/x-pascal" mode="pascal">Pascal</option><option value="null" mode="pegjs">PEG.js</option><option value="text/x-perl" mode="perl">Perl</option><option value="text/x-php" mode="php">PHP</option><option value="text/x-pig" mode="pig">Pig</option><option value="text/plain" mode="null">Plain Text</option><option value="text/x-properties" mode="properties">Properties files</option><option value="text/x-python" mode="python">Python</option><option value="text/x-puppet" mode="puppet">Puppet</option><option value="text/x-rsrc" mode="r">R</option><option value="text/x-rst" mode="rst">reStructuredText</option><option value="text/x-ruby" mode="ruby">Ruby</option><option value="text/x-rustsrc" mode="rust">Rust</option><option value="text/x-sass" mode="sass">Sass</option><option value="text/x-scheme" mode="scheme">Scheme</option><option value="text/x-scss" mode="css">SCSS</option><option value="text/x-sh" mode="shell">Shell</option><option value="application/sieve" mode="sieve">Sieve</option><option value="text/x-stsrc" mode="smalltalk">Smalltalk</option><option value="text/x-smarty" mode="smarty">Smarty</option><option value="text/x-smarty" mode="smartymixed">SmartyMixed</option><option value="text/x-solr" mode="solr">Solr</option><option value="application/x-sparql-query" mode="sparql">SPARQL</option><option value="text/x-sql" mode="sql">SQL</option><option value="text/x-mariadb" mode="sql">MariaDB</option><option value="text/x-stex" mode="stex">sTeX</option><option value="text/x-latex" mode="stex">LaTeX</option><option value="text/x-systemverilog" mode="verilog">SystemVerilog</option><option value="text/x-tcl" mode="tcl">Tcl</option><option value="text/x-tiddlywiki" mode="tiddlywiki">TiddlyWiki </option><option value="text/tiki" mode="tiki">Tiki wiki</option><option value="text/x-toml" mode="toml">TOML</option><option value="text/turtle" mode="turtle">Turtle</option><option value="text/x-vb" mode="vb">VB.NET</option><option value="text/vbscript" mode="vbscript">VBScript</option><option value="text/velocity" mode="velocity">Velocity</option><option value="text/x-verilog" mode="verilog">Verilog</option><option value="application/xml" mode="xml">XML</option><option value="text/html" mode="xml">HTML</option><option value="application/xquery" mode="xquery">XQuery</option><option value="text/x-yaml" mode="yaml">YAML</option><option value="text/x-z80" mode="z80">Z80</option></select> |
|
607 | 607 | <script> |
|
608 | 608 | $(document).ready(function() { |
|
609 | 609 | $('#mimetype').select2({ |
|
610 | 610 | containerCssClass: 'drop-menu', |
|
611 | 611 | dropdownCssClass: 'drop-menu-dropdown', |
|
612 | 612 | dropdownAutoWidth: true |
|
613 | 613 | }); |
|
614 | 614 | }); |
|
615 | 615 | </script> |
|
616 | 616 | |
|
617 | 617 | </div> |
|
618 | 618 | </div> |
|
619 | 619 | </div> |
|
620 | 620 | <div id="editor_container"> |
|
621 | 621 | <div id="editor_pre"></div> |
|
622 | 622 | <textarea id="editor" name="content" style="display: none;"></textarea><div class="CodeMirror cm-s-default"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 484px; left: 219.4091796875px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-hscrollbar" style="left: 29px; min-height: 18px;"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-vscrollbar" style="min-width: 18px; display: block; bottom: 0px;"><div style="min-width: 1px; height: 619px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 700.269653320313px; margin-left: 29px; min-height: 619px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><div class="CodeMirror-linenumber CodeMirror-gutter-elt"><div>47</div></div></div><div style="position: relative; z-index: 1; display: none;"></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">1</div></div><pre><span class="cm-keyword">import</span> <span class="cm-variable">re</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">2</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">3</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">django</span>.<span class="cm-variable">utils</span>.<span class="cm-variable">text</span> <span class="cm-keyword">import</span> <span class="cm-variable">compress_sequence</span>, <span class="cm-variable">compress_string</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">4</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">django</span>.<span class="cm-variable">utils</span>.<span class="cm-variable">cache</span> <span class="cm-keyword">import</span> <span class="cm-variable">patch_vary_headers</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">5</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">6</div></div><pre><span class="cm-variable">re_accepts_gzip</span> = <span class="cm-variable">re</span>.<span class="cm-builtin">compile</span>(<span class="cm-string">r'\bgzip\b'</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">7</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">8</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">9</div></div><pre><span class="cm-keyword">class</span> <span class="cm-def">GZipMiddleware</span>(<span class="cm-builtin">object</span>): # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">10</div></div><pre> <span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">11</div></div><pre><span class="cm-string"> This middleware compresses content if the browser allows gzip compression.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">12</div></div><pre><span class="cm-string"> It sets the Vary header accordingly, so that caches will base their storage</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">13</div></div><pre><span class="cm-string"> on the Accept-Encoding header.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">14</div></div><pre><span class="cm-string"> """</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">15</div></div><pre> <span class="cm-keyword">def</span> <span class="cm-def">process_response</span>(<span class="cm-variable-2">self</span>, <span class="cm-variable">request</span>, <span class="cm-variable">response</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">16</div></div><pre> <span class="cm-comment"># It's not worth attempting to compress really short responses.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">17</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-operator">not</span> <span class="cm-variable">response</span>.<span class="cm-variable">streaming</span> <span class="cm-operator">and</span> <span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>) <span class="cm-operator"><</span> <span class="cm-number">200</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">18</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">19</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">20</div></div><pre> <span class="cm-comment"># Avoid gzipping if we've already got a content-encoding.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">21</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">has_header</span>(<span class="cm-string">'Content-Encoding'</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">22</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">23</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">24</div></div><pre> <span class="cm-variable">patch_vary_headers</span>(<span class="cm-variable">response</span>, (<span class="cm-string">'Accept-Encoding'</span>,))</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">25</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">26</div></div><pre> <span class="cm-variable">ae</span> = <span class="cm-variable">request</span>.<span class="cm-variable">META</span>.<span class="cm-variable">get</span>(<span class="cm-string">'HTTP_ACCEPT_ENCODING'</span>, <span class="cm-string">''</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">27</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-operator">not</span> <span class="cm-variable">re_accepts_gzip</span>.<span class="cm-variable">search</span>(<span class="cm-variable">ae</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">28</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">29</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">30</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">streaming</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">31</div></div><pre> <span class="cm-comment"># Delete the `Content-Length` header for streaming content, because</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">32</div></div><pre> <span class="cm-comment"># we won't know the compressed size until we stream it.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">33</div></div><pre> <span class="cm-variable">response</span>.<span class="cm-variable">streaming_content</span> = <span class="cm-variable">compress_sequence</span>(<span class="cm-variable">response</span>.<span class="cm-variable">streaming_content</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">34</div></div><pre> <span class="cm-keyword">del</span> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Length'</span>]</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">35</div></div><pre> <span class="cm-keyword">else</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">36</div></div><pre> <span class="cm-comment"># Return the compressed content only if it's actually shorter.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">37</div></div><pre> <span class="cm-variable">compressed_content</span> = <span class="cm-variable">compress_string</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">38</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-builtin">len</span>(<span class="cm-variable">compressed_content</span>) <span class="cm-operator">>=</span> <span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">39</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">40</div></div><pre> <span class="cm-variable">response</span>.<span class="cm-variable">content</span> = <span class="cm-variable">compressed_content</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">41</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Length'</span>] = <span class="cm-builtin">str</span>(<span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>))</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">42</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">43</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">has_header</span>(<span class="cm-string">'ETag'</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">44</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'ETag'</span>] = <span class="cm-variable">re</span>.<span class="cm-variable">sub</span>(<span class="cm-string">'"$'</span>, <span class="cm-string">';gzip"'</span>, <span class="cm-variable">response</span>[<span class="cm-string">'ETag'</span>])</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">45</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Encoding'</span>] = <span class="cm-string">'gzip'</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">46</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">47</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div></div><div class="CodeMirror-cursor" style="left: 189.4091796875px; top: 598px; height: 13px;"> </div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;"> </div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 619px;"></div><div class="CodeMirror-gutters" style="height: 619px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div></div></div> |
|
623 | 623 | </div> |
|
624 | 624 | </div> |
|
625 | 625 | |
|
626 | 626 | |
|
627 | 627 | |
|
628 | 628 | |
|
629 | 629 | |
|
630 | 630 | <!-- |
|
631 | 631 | File Edit |
|
632 | 632 | --> |
|
633 | 633 | |
|
634 | 634 | <h2>File Edit</h2> |
|
635 | 635 | |
|
636 | 636 | <div class="codeblock"> |
|
637 | 637 | <div class="code-header"> |
|
638 | 638 | <div class="stats"> |
|
639 | 639 | <i class="icon-file"></i> |
|
640 | 640 | <span class="item"><a href="/example/changeset/80ead1899f50a894889e19ffeb49c9cebf5bf045">r8248:80ead1899f50</a></span> |
|
641 | 641 | <span class="item">1.2 KiB</span> |
|
642 | 642 | <span class="item last">text/x-python</span> |
|
643 | 643 | <div class="buttons"> |
|
644 | 644 | <a class="btn btn-mini" href="/example/commits/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py"> |
|
645 | 645 | <i class="icon-time"></i> history |
|
646 | 646 | </a> |
|
647 | 647 | |
|
648 | 648 | <a class="btn btn-mini" href="/example/files/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">source</a> |
|
649 | 649 | <a class="btn btn-mini" href="/example/raw/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">raw</a> |
|
650 | 650 | <a class="btn btn-mini" href="/example/rawfile/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py"> |
|
651 | 651 | download |
|
652 | 652 | </a> |
|
653 | 653 | </div> |
|
654 | 654 | </div> |
|
655 | 655 | <div class="form"> |
|
656 | 656 | <label for="set_mode">Editing file:</label> |
|
657 | 657 | rhodecode / |
|
658 | 658 | <input type="text" name="filename" value="websetup.py"> |
|
659 | 659 | |
|
660 | 660 | <div class="select2-container drop-menu" id="s2id_set_mode"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-2">plain</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen2" class="select2-offscreen">Editing file:</label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-2" id="s2id_autogen2"><div class="select2-drop select2-display-none drop-menu-dropdown select2-with-searchbox"> <div class="select2-search"> <label for="s2id_autogen2_search" class="select2-offscreen">Editing file:</label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-2" id="s2id_autogen2_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-2"> </ul></div></div><select id="set_mode" name="set_mode" tabindex="-1" title="Editing file:" style="display: none;"> |
|
661 | 661 | <option selected="selected" value="plain">plain</option> |
|
662 | 662 | <option value="apl">APL</option><option value="asterisk">Asterisk</option><option value="clike">C</option><option value="clike">C++</option><option value="cobol">Cobol</option><option value="clike">Java</option><option value="clike">C#</option><option value="clike">Scala</option><option value="clojure">Clojure</option><option value="coffeescript">CoffeeScript</option><option value="commonlisp">Common Lisp</option><option value="css">CSS</option><option value="d">D</option><option value="diff">diff</option><option value="dtd">DTD</option><option value="dylan">Dylan</option><option value="ecl">ECL</option><option value="eiffel">Eiffel</option><option value="erlang">Erlang</option><option value="fortran">Fortran</option><option value="mllike">F#</option><option value="gas">Gas</option><option value="go">GO</option><option value="gherkin">Gherkin</option><option value="go">Go</option><option value="groovy">Groovy</option><option value="haml">HAML</option><option value="haskell">Haskell</option><option value="haxe">Haxe</option><option value="htmlembedded">ASP.NET</option><option value="htmlembedded">Embedded Javascript</option><option value="htmlembedded">JavaServer Pages</option><option value="htmlmixed">HTML</option><option value="http">HTTP</option><option value="jade">Jade</option><option value="javascript">JavaScript</option><option value="javascript">JSON</option><option value="javascript">TypeScript</option><option value="jinja2">Jinja2</option><option value="julia">Julia</option><option value="less">LESS</option><option value="livescript">LiveScript</option><option value="lua">Lua</option><option value="markdown">Markdown (GitHub-flavour)</option><option value="mirc">mIRC</option><option value="nginx">Nginx</option><option value="ntriples">NTriples</option><option value="ocaml">OCaml</option><option value="mllike">OCaml</option><option value="octave">Octave</option><option value="pascal">Pascal</option><option value="pegjs">PEG.js</option><option value="perl">Perl</option><option value="php">PHP</option><option value="pig">Pig</option><option value="null">Plain Text</option><option value="properties">Properties files</option><option value="python" selected="selected">Python</option><option value="puppet">Puppet</option><option value="r">R</option><option value="rst">reStructuredText</option><option value="ruby">Ruby</option><option value="rust">Rust</option><option value="sass">Sass</option><option value="scheme">Scheme</option><option value="css">SCSS</option><option value="shell">Shell</option><option value="sieve">Sieve</option><option value="smalltalk">Smalltalk</option><option value="smarty">Smarty</option><option value="smartymixed">SmartyMixed</option><option value="solr">Solr</option><option value="sparql">SPARQL</option><option value="sql">SQL</option><option value="sql">MariaDB</option><option value="stex">sTeX</option><option value="stex">LaTeX</option><option value="verilog">SystemVerilog</option><option value="tcl">Tcl</option><option value="tiddlywiki">TiddlyWiki </option><option value="tiki">Tiki wiki</option><option value="toml">TOML</option><option value="turtle">Turtle</option><option value="vb">VB.NET</option><option value="vbscript">VBScript</option><option value="velocity">Velocity</option><option value="verilog">Verilog</option><option value="xml">XML</option><option value="xml">HTML</option><option value="xquery">XQuery</option><option value="yaml">YAML</option><option value="z80">Z80</option></select> |
|
663 | 663 | <script> |
|
664 | 664 | $(document).ready(function() { |
|
665 | 665 | $('#set_mode').select2({ |
|
666 | 666 | containerCssClass: 'drop-menu', |
|
667 | 667 | dropdownCssClass: 'drop-menu-dropdown', |
|
668 | 668 | dropdownAutoWidth: true |
|
669 | 669 | }); |
|
670 | 670 | }); |
|
671 | 671 | </script> |
|
672 | 672 | |
|
673 | 673 | <label for="line_wrap">line wraps</label> |
|
674 | 674 | <div class="select2-container drop-menu" id="s2id_line_wrap"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-3">off</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen3" class="select2-offscreen">line wraps</label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-3" id="s2id_autogen3"><div class="select2-drop select2-display-none drop-menu-dropdown"> <div class="select2-search select2-search-hidden select2-offscreen"> <label for="s2id_autogen3_search" class="select2-offscreen">line wraps</label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-3" id="s2id_autogen3_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-3"> </ul></div></div><select id="line_wrap" name="line_wrap" tabindex="-1" title="line wraps" style="display: none;"> |
|
675 | 675 | <option value="on">on</option> |
|
676 | 676 | <option selected="selected" value="off">off</option> |
|
677 | 677 | </select> |
|
678 | 678 | <script> |
|
679 | 679 | $(document).ready(function() { |
|
680 | 680 | $('#line_wrap').select2({ |
|
681 | 681 | containerCssClass: 'drop-menu', |
|
682 | 682 | dropdownCssClass: 'drop-menu-dropdown', |
|
683 | 683 | dropdownAutoWidth: true, |
|
684 | 684 | minimumResultsForSearch: -1 |
|
685 | 685 | |
|
686 | 686 | }); |
|
687 | 687 | }); |
|
688 | 688 | </script> |
|
689 | 689 | |
|
690 | 690 | <div id="render_preview" class="btn btn-mini hidden disabled">Preview</div> |
|
691 | 691 | </div> |
|
692 | 692 | </div> |
|
693 | 693 | <div id="editor_container"> |
|
694 | 694 | <pre id="editor_pre"></pre> |
|
695 | 695 | <textarea id="editor" name="content" style="display: none;"># -*- coding: utf-8 -*- |
|
696 | 696 | |
|
697 | 697 | # Published under Commercial License. |
|
698 | 698 | # Read the full license text at https://rhodecode.com/licenses. |
|
699 | 699 | """ |
|
700 | 700 | rhodecode.websetup |
|
701 | 701 | ~~~~~~~~~~~~~~~~~~ |
|
702 | 702 | |
|
703 | 703 | Weboperations and setup for rhodecode |
|
704 | 704 | |
|
705 | 705 | :created_on: Dec 11, 2010 |
|
706 | 706 | :author: marcink |
|
707 | 707 | :copyright: (c) 2013-2015 RhodeCode GmbH. |
|
708 | 708 | :license: Commercial License, see LICENSE for more details. |
|
709 | 709 | """ |
|
710 | 710 | |
|
711 | 711 | import logging |
|
712 | 712 | |
|
713 | 713 | from rhodecode.config.environment import load_environment |
|
714 | 714 | from rhodecode.lib.db_manage import DbManage |
|
715 | 715 | from rhodecode.model.meta import Session |
|
716 | 716 | |
|
717 | 717 | |
|
718 | 718 | log = logging.getLogger(__name__) |
|
719 | 719 | |
|
720 | 720 | |
|
721 | 721 | def setup_app(command, conf, vars): |
|
722 | 722 | """Place any commands to setup rhodecode here""" |
|
723 | 723 | dbconf = conf['sqlalchemy.db1.url'] |
|
724 | 724 | dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'], |
|
725 | 725 | tests=False, cli_args=command.options.__dict__) |
|
726 | 726 | dbmanage.create_tables(override=True) |
|
727 | 727 | dbmanage.set_db_version() |
|
728 | 728 | opts = dbmanage.config_prompt(None) |
|
729 | 729 | dbmanage.create_settings(opts) |
|
730 | 730 | dbmanage.create_default_user() |
|
731 | 731 | dbmanage.admin_prompt() |
|
732 | 732 | dbmanage.create_permissions() |
|
733 | 733 | dbmanage.populate_default_permissions() |
|
734 | 734 | Session().commit() |
|
735 | 735 | load_environment(conf.global_conf, conf.local_conf, initial=True) |
|
736 | 736 | </textarea><div class="CodeMirror cm-s-default CodeMirror-focused"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 5px; left: 34px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-hscrollbar" style="left: 29px; min-height: 18px;"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-vscrollbar" style="display: block; bottom: 0px; min-width: 18px;"><div style="min-width: 1px; height: 554px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 579.350463867188px; margin-left: 29px; min-height: 554px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><div style="width: 50px; height: 50px; overflow-x: scroll;"></div></div><div style="position: relative; z-index: 1; display: none;"></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">1</div></div><pre><span class="cm-comment"># -*- coding: utf-8 -*-</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">2</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">3</div></div><pre><span class="cm-comment"># Published under Commercial License.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">4</div></div><pre><span class="cm-comment"># Read the full license text at https://rhodecode.com/licenses.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">5</div></div><pre><span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">6</div></div><pre><span class="cm-string">rhodecode.websetup</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">7</div></div><pre><span class="cm-string">~~~~~~~~~~~~~~~~~~</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">8</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">9</div></div><pre><span class="cm-string">Weboperations and setup for rhodecode</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">10</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">11</div></div><pre><span class="cm-string">:created_on: Dec 11, 2010</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">12</div></div><pre><span class="cm-string">:author: marcink</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">13</div></div><pre><span class="cm-string">:copyright: (c) 2013-2015 RhodeCode GmbH.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">14</div></div><pre><span class="cm-string">:license: Commercial License, see LICENSE for more details.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">15</div></div><pre><span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">16</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">17</div></div><pre><span class="cm-keyword">import</span> <span class="cm-variable">logging</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">18</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">19</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">config</span>.<span class="cm-variable">environment</span> <span class="cm-keyword">import</span> <span class="cm-variable">load_environment</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">20</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">lib</span>.<span class="cm-variable">db_manage</span> <span class="cm-keyword">import</span> <span class="cm-variable">DbManage</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">21</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">model</span>.<span class="cm-variable">meta</span> <span class="cm-keyword">import</span> <span class="cm-variable">Session</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">22</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">23</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">24</div></div><pre><span class="cm-variable">log</span> = <span class="cm-variable">logging</span>.<span class="cm-variable">getLogger</span>(<span class="cm-variable">__name__</span>) # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">25</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">26</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">27</div></div><pre><span class="cm-keyword">def</span> <span class="cm-def">setup_app</span>(<span class="cm-variable">command</span>, <span class="cm-variable">conf</span>, <span class="cm-builtin">vars</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">28</div></div><pre> <span class="cm-string">"""Place any commands to setup rhodecode here"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">29</div></div><pre> <span class="cm-variable">dbconf</span> = <span class="cm-variable">conf</span>[<span class="cm-string">'sqlalchemy.db1.url'</span>]</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">30</div></div><pre> <span class="cm-variable">dbmanage</span> = <span class="cm-variable">DbManage</span>(<span class="cm-variable">log_sql</span>=<span class="cm-builtin">True</span>, <span class="cm-variable">dbconf</span>=<span class="cm-variable">dbconf</span>, <span class="cm-variable">root</span>=<span class="cm-variable">conf</span>[<span class="cm-string">'here'</span>],</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">31</div></div><pre> <span class="cm-variable">tests</span>=<span class="cm-builtin">False</span>, <span class="cm-variable">cli_args</span>=<span class="cm-variable">command</span>.<span class="cm-variable">options</span>.<span class="cm-variable">__dict__</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">32</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_tables</span>(<span class="cm-variable">override</span>=<span class="cm-builtin">True</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">33</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">set_db_version</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">34</div></div><pre> <span class="cm-variable">opts</span> = <span class="cm-variable">dbmanage</span>.<span class="cm-variable">config_prompt</span>(<span class="cm-builtin">None</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">35</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_settings</span>(<span class="cm-variable">opts</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">36</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_default_user</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">37</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">admin_prompt</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">38</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_permissions</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">39</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">populate_default_permissions</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">40</div></div><pre> <span class="cm-variable">Session</span>().<span class="cm-variable">commit</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">41</div></div><pre> <span class="cm-variable">load_environment</span>(<span class="cm-variable">conf</span>.<span class="cm-variable">global_conf</span>, <span class="cm-variable">conf</span>.<span class="cm-variable">local_conf</span>, <span class="cm-variable">initial</span>=<span class="cm-builtin">True</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">42</div></div><pre> </pre></div></div><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 13px;"> </div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;"> </div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 554px;"></div><div class="CodeMirror-gutters" style="height: 554px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div></div></div> |
|
737 | 737 | <div id="editor_preview"></div> |
|
738 | 738 | </div> |
|
739 | 739 | <div class="message"> |
|
740 | 740 | <label class="codeblock-label">Commit Message</label> |
|
741 | 741 | <textarea id="commit" name="message" placeholder="Edited file rhodecode/websetup.py via RhodeCode"></textarea> |
|
742 | 742 | </div> |
|
743 | 743 | </div> |
|
744 | 744 | |
|
745 | 745 | |
|
746 | 746 | |
|
747 | 747 | |
|
748 | 748 | |
|
749 | 749 | |
|
750 | 750 | <!-- |
|
751 | 751 | Commit with comments |
|
752 | 752 | --> |
|
753 | 753 | |
|
754 | 754 | <h2>Commit with comments</h2> |
|
755 | 755 | |
|
756 | 756 | <div class="diff-container" id="diff-container-140360037209920"> |
|
757 | 757 | <div id="c-4e5ee86997c6-7046e4320b26_target"></div> |
|
758 | 758 | <div id="c-4e5ee86997c6-7046e4320b26" class="diffblock margined comm"> |
|
759 | 759 | <div class="code-header"> |
|
760 | 760 | <div title="Go back to changed files overview"> |
|
761 | 761 | <a href="#changes_box"> |
|
762 | 762 | <i class="icon-circle-arrow-up"></i> |
|
763 | 763 | </a> |
|
764 | 764 | </div> |
|
765 | 765 | <div class="changeset_header"> |
|
766 | 766 | <div class="changeset_file"> |
|
767 | 767 | <i class="icon-file"></i> |
|
768 | 768 | <a href="/andersonsantos/rhodecode-dev-fork/files/4e5ee86997c64981d85cf62283af448624e26929/rhodecode/tests/functional/test_compare_local.py">rhodecode/tests/functional/test_compare_local.py</a> |
|
769 | 769 | </div> |
|
770 | 770 | <div class="diff-actions"> |
|
771 | 771 | <a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=diff&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full diff for this file"> |
|
772 | 772 | <img class="icon" src="/images/icons/page_white_go.png"> |
|
773 | 773 | </a> |
|
774 | 774 | <a href="/andersonsantos/rhodecode-dev-fork/diff-2way/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=diff&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full side-by-side diff for this file"> |
|
775 | 775 | <img class="icon" src="/images/icons/application_double.png"> |
|
776 | 776 | </a> |
|
777 | 777 | <a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=raw&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Raw diff"> |
|
778 | 778 | <img class="icon" src="/images/icons/page_white.png"> |
|
779 | 779 | </a> |
|
780 | 780 | <a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=download&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Download diff"> |
|
781 | 781 | <img class="icon" src="/images/icons/page_save.png"> |
|
782 | 782 | </a> |
|
783 | 783 | <a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=WS%3A1&c-4e5ee86997c6-7046e4320b26=C%3A3#c-4e5ee86997c6-7046e4320b26" title="Ignore white space"><img alt="Ignore white space" class="icon" src="/images/icons/text_strikethrough.png"></a> |
|
784 | 784 | <a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=C%3A6#c-4e5ee86997c6-7046e4320b26" title="increase diff context to 6 lines"><img alt="increase diff context to 6 lines" class="icon" src="/images/icons/table_add.png"></a> |
|
785 | 785 | </div> |
|
786 | 786 | <span> |
|
787 | 787 | <label> |
|
788 | 788 | Show inline comments |
|
789 | 789 | <input checked="checked" class="show-inline-comments" id="" id_for="c-4e5ee86997c6-7046e4320b26" name="" type="checkbox" value="1"> |
|
790 | 790 | </label> |
|
791 | 791 | </span> |
|
792 | 792 | </div> |
|
793 | 793 | </div> |
|
794 | 794 | <div class="code-body"> |
|
795 | 795 | <div class="full_f_path" path="rhodecode/tests/functional/test_compare_local.py"></div> |
|
796 | 796 | <table class="code-difftable"> |
|
797 | 797 | <tbody><tr class="line context"> |
|
798 | 798 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td> |
|
799 | 799 | <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td> |
|
800 | 800 | <td class="code "> |
|
801 | 801 | <pre>@@ -59,7 +59,7 @@ |
|
802 | 802 | </pre> |
|
803 | 803 | </td> |
|
804 | 804 | </tr> |
|
805 | 805 | <tr class="line unmod"> |
|
806 | 806 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o59" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o59">59</a></td> |
|
807 | 807 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n59" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n59">59</a></td> |
|
808 | 808 | <td class="code "> |
|
809 | 809 | <pre> 'tag': 'v0.2.0', |
|
810 | 810 | </pre> |
|
811 | 811 | </td> |
|
812 | 812 | </tr> |
|
813 | 813 | <tr class="line unmod"> |
|
814 | 814 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o60" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o60">60</a></td> |
|
815 | 815 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n60" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n60">60</a></td> |
|
816 | 816 | <td class="code "> |
|
817 | 817 | <pre> 'branch': 'default', |
|
818 | 818 | </pre> |
|
819 | 819 | </td> |
|
820 | 820 | </tr> |
|
821 | 821 | <tr class="line unmod"> |
|
822 | 822 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o61" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o61">61</a></td> |
|
823 | 823 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n61" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n61">61</a></td> |
|
824 | 824 | <td class="code "> |
|
825 | 825 | <pre> 'response': # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it. |
|
826 | 826 | </pre> |
|
827 | 827 | </td> |
|
828 | 828 | </tr> |
|
829 | 829 | <tr class="line del"> |
|
830 | 830 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o62" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o62">62</a></td> |
|
831 | 831 | <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td> |
|
832 | 832 | <td class="code "> |
|
833 | 833 | <pre> '147 files changed: 5700 inserted, 10176 deleted' |
|
834 | 834 | </pre> |
|
835 | 835 | </td> |
|
836 | 836 | </tr> |
|
837 | 837 | <tr class="line add"> |
|
838 | 838 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td> |
|
839 | 839 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n62" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n62">62</a></td> |
|
840 | 840 | <td class="code "> |
|
841 | 841 | <pre><ins> </ins> '147 files changed: 5700 inserted, 10176 deleted' |
|
842 | 842 | </pre> |
|
843 | 843 | </td> |
|
844 | 844 | </tr> |
|
845 | 845 | <tr class="line unmod"> |
|
846 | 846 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o63" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o63">63</a></td> |
|
847 | 847 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n63" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n63">63</a></td> |
|
848 | 848 | <td class="code "> |
|
849 | 849 | <pre> }, |
|
850 | 850 | </pre> |
|
851 | 851 | </td> |
|
852 | 852 | </tr> |
|
853 | 853 | <tr class="line unmod"> |
|
854 | 854 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o64" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o64">64</a></td> |
|
855 | 855 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n64" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n64">64</a></td> |
|
856 | 856 | <td class="code "> |
|
857 | 857 | <pre> 'git': { |
|
858 | 858 | </pre> |
|
859 | 859 | </td> |
|
860 | 860 | </tr> |
|
861 | 861 | <tr class="line unmod"> |
|
862 | 862 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o65" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o65">65</a></td> |
|
863 | 863 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n65" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n65">65</a></td> |
|
864 | 864 | <td class="code "> |
|
865 | 865 | <pre> 'tag': 'v0.2.2', |
|
866 | 866 | </pre> |
|
867 | 867 | </td> |
|
868 | 868 | </tr> |
|
869 | 869 | <tr class="line context"> |
|
870 | 870 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td> |
|
871 | 871 | <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td> |
|
872 | 872 | <td class="code "> |
|
873 | 873 | <pre>@@ -77,9 +77,11 @@ |
|
874 | 874 | </pre> |
|
875 | 875 | </td> |
|
876 | 876 | </tr> |
|
877 | 877 | <tr class="line unmod"> |
|
878 | 878 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o77" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o77">77</a></td> |
|
879 | 879 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n77" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n77">77</a></td> |
|
880 | 880 | <td class="code "> |
|
881 | 881 | <pre> target_ref=revisions[backend.alias]['tag'], |
|
882 | 882 | </pre> |
|
883 | 883 | </td> |
|
884 | 884 | </tr> |
|
885 | 885 | <tr class="line unmod"> |
|
886 | 886 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o78" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o78">78</a></td> |
|
887 | 887 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n78" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n78">78</a></td> |
|
888 | 888 | <td class="code "> |
|
889 | 889 | <pre> )) |
|
890 | 890 | </pre> |
|
891 | 891 | </td> |
|
892 | 892 | </tr><tr id="comment-tr-3754" class="inline-comments"><td></td><td></td><td> |
|
893 | 893 | |
|
894 | 894 | <div class="comment" id="comment-3754" line="n78"> |
|
895 | 895 | <div class="comment-wrapp"> |
|
896 | 896 | <div class="meta"> |
|
897 | 897 | <span class="gravatar"> |
|
898 | 898 | <img src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=40" height="20" width="20"> |
|
899 | 899 | </span> |
|
900 | 900 | <span class="user"> |
|
901 | 901 | anderson |
|
902 | 902 | </span> |
|
903 | 903 | <span class="date"> |
|
904 | 904 | just now | |
|
905 | 905 | </span> |
|
906 | 906 | <span class="status-change"> |
|
907 | 907 | Comment on commit |
|
908 | 908 | </span> |
|
909 | 909 | <a class="permalink" href="#comment-3754">ΒΆ</a> |
|
910 | 910 | </div> |
|
911 | 911 | <div class="text"> |
|
912 | 912 | <div class="rst-block"><p>commented line |
|
913 | 913 | with multiple lines</p> |
|
914 | 914 | </div> |
|
915 | 915 | </div> |
|
916 | 916 | </div> |
|
917 | 917 | </div><div class="add-comment"><span class="btn btn-default">Add another comment</span></div> |
|
918 | 918 | |
|
919 | 919 | </td></tr> |
|
920 | 920 | <tr class="line unmod"> |
|
921 | 921 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o79" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o79">79</a></td> |
|
922 | 922 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n79" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n79">79</a></td> |
|
923 | 923 | <td class="code "> |
|
924 | 924 | <pre></pre> |
|
925 | 925 | </td> |
|
926 | 926 | </tr> |
|
927 | 927 | <tr class="line del form-open hl-comment"> |
|
928 | 928 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o80" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o80">80</a></td> |
|
929 | 929 | <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td> |
|
930 | 930 | <td class="code "> |
|
931 | 931 | <pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del> |
|
932 | 932 | </pre> |
|
933 | 933 | </td> |
|
934 | 934 | </tr><tr id="comment-tr-undefined" class="comment-form-inline"><td></td><td></td><td> |
|
935 | 935 | <div class="comment-inline-form ac"> |
|
936 | 936 | <div class="overlay"><div class="overlay-text">Submitting...</div></div> |
|
937 | 937 | <form action="#" class="inline-form" method="get"> |
|
938 | 938 | <div id="edit-container_o80" class="clearfix"> |
|
939 | 939 | <div class="comment-title pull-left"> |
|
940 | 940 | Commenting on line o80. |
|
941 | 941 | </div> |
|
942 | 942 | <div class="comment-help pull-right"> |
|
943 |
Comments parsed using <a href="http://docutils.sourceforge. |
|
|
943 | Comments parsed using <a href="http://docutils.sourceforge.io/docs/user/rst/quickref.html">RST</a> syntax with <span class="tooltip" title="Use @username inside this text to send notification to this RhodeCode user">@mention</span> support. | |
|
944 | 944 | </div> |
|
945 | 945 | <div style="clear: both"></div> |
|
946 | 946 | <textarea id="text_o80" name="text" class="comment-block-ta ac-input" autocomplete="off"></textarea> |
|
947 | 947 | </div> |
|
948 | 948 | <div id="preview-container_o80" class="clearfix" style="display: none;"> |
|
949 | 949 | <div class="comment-help"> |
|
950 | 950 | Comment preview |
|
951 | 951 | </div> |
|
952 | 952 | <div id="preview-box_o80" class="preview-box"></div> |
|
953 | 953 | </div> |
|
954 | 954 | <div class="comment-button pull-right"> |
|
955 | 955 | <input type="hidden" name="f_path" value="rhodecode/tests/functional/test_compare_local.py"> |
|
956 | 956 | <input type="hidden" name="line" value="o80"> |
|
957 | 957 | <div id="preview-btn_o80" class="btn btn-default">Preview</div> |
|
958 | 958 | <div id="edit-btn_o80" class="btn" style="display: none;">Edit</div> |
|
959 | 959 | <input class="btn btn-success save-inline-form" id="save" name="save" type="submit" value="Comment"> |
|
960 | 960 | </div> |
|
961 | 961 | <div class="comment-button hide-inline-form-button"> |
|
962 | 962 | <input class="btn hide-inline-form" id="hide-inline-form" name="hide-inline-form" type="reset" value="Cancel"> |
|
963 | 963 | </div> |
|
964 | 964 | </form> |
|
965 | 965 | </div> |
|
966 | 966 | </td></tr> |
|
967 | 967 | <tr class="line add"> |
|
968 | 968 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td> |
|
969 | 969 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n80" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n80">80</a></td> |
|
970 | 970 | <td class="code "> |
|
971 | 971 | <pre> response.mustcontain('%s@%s' % ( |
|
972 | 972 | </pre> |
|
973 | 973 | </td> |
|
974 | 974 | </tr> |
|
975 | 975 | <tr class="line add"> |
|
976 | 976 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td> |
|
977 | 977 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n81" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n81">81</a></td> |
|
978 | 978 | <td class="code "> |
|
979 | 979 | <pre> backend.repo_name, |
|
980 | 980 | </pre> |
|
981 | 981 | </td> |
|
982 | 982 | </tr> |
|
983 | 983 | <tr class="line unmod"> |
|
984 | 984 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o81" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o81">81</a></td> |
|
985 | 985 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n82" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n82">82</a></td> |
|
986 | 986 | <td class="code "> |
|
987 | 987 | <pre> revisions[backend.alias]['branch'])) |
|
988 | 988 | </pre> |
|
989 | 989 | </td> |
|
990 | 990 | </tr> |
|
991 | 991 | <tr class="line del"> |
|
992 | 992 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o82" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o82">82</a></td> |
|
993 | 993 | <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td> |
|
994 | 994 | <td class="code "> |
|
995 | 995 | <pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del> |
|
996 | 996 | </pre> |
|
997 | 997 | </td> |
|
998 | 998 | </tr> |
|
999 | 999 | <tr class="line add"> |
|
1000 | 1000 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td> |
|
1001 | 1001 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n83" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n83">83</a></td> |
|
1002 | 1002 | <td class="code "> |
|
1003 | 1003 | <pre> response.mustcontain('%s@%s' % ( |
|
1004 | 1004 | </pre> |
|
1005 | 1005 | </td> |
|
1006 | 1006 | </tr> |
|
1007 | 1007 | <tr class="line add"> |
|
1008 | 1008 | <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td> |
|
1009 | 1009 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n84" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n84">84</a></td> |
|
1010 | 1010 | <td class="code "> |
|
1011 | 1011 | <pre> backend.repo_name, |
|
1012 | 1012 | </pre> |
|
1013 | 1013 | </td> |
|
1014 | 1014 | </tr> |
|
1015 | 1015 | <tr class="line unmod"> |
|
1016 | 1016 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o83" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o83">83</a></td> |
|
1017 | 1017 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n85" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n85">85</a></td> |
|
1018 | 1018 | <td class="code "> |
|
1019 | 1019 | <pre> revisions[backend.alias]['tag'])) |
|
1020 | 1020 | </pre> |
|
1021 | 1021 | </td> |
|
1022 | 1022 | </tr> |
|
1023 | 1023 | <tr class="line unmod"> |
|
1024 | 1024 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o84" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o84">84</a></td> |
|
1025 | 1025 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n86" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n86">86</a></td> |
|
1026 | 1026 | <td class="code "> |
|
1027 | 1027 | <pre> response.mustcontain(revisions[backend.alias]['response']) |
|
1028 | 1028 | </pre> |
|
1029 | 1029 | </td> |
|
1030 | 1030 | </tr> |
|
1031 | 1031 | <tr class="line unmod"> |
|
1032 | 1032 | <td id="rhodecodetestsfunctionaltest_compare_localpy_o85" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o85">85</a></td> |
|
1033 | 1033 | <td id="rhodecodetestsfunctionaltest_compare_localpy_n87" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n87">87</a></td> |
|
1034 | 1034 | <td class="code "> |
|
1035 | 1035 | <pre></pre> |
|
1036 | 1036 | </td> |
|
1037 | 1037 | </tr> |
|
1038 | 1038 | </tbody></table> |
|
1039 | 1039 | </div> |
|
1040 | 1040 | </div> |
|
1041 | 1041 | </div> |
|
1042 | 1042 | |
|
1043 | 1043 | |
|
1044 | 1044 | |
|
1045 | 1045 | <!-- |
|
1046 | 1046 | Side-by-side diff |
|
1047 | 1047 | --> |
|
1048 | 1048 | |
|
1049 | 1049 | <h2>Side-by-side diff</h2> |
|
1050 | 1050 | |
|
1051 | 1051 | <div class="box"> |
|
1052 | 1052 | <div class="diff-container" style="overflow-x: hidden"> |
|
1053 | 1053 | <div class="diffblock comm" style="margin:3px; padding:1px"> |
|
1054 | 1054 | <div class="code-header"> |
|
1055 | 1055 | <div class="changeset_header"> |
|
1056 | 1056 | <div class="changeset_file"> |
|
1057 | 1057 | <i class="icon-file"></i> |
|
1058 | 1058 | <a href="/pygments/files/ea295cfb622620f5ba13e226ec531e3fe5296399/tests/test_basic_api.py">tests/test_basic_api.py</a> |
|
1059 | 1059 | [mode: <span id="selected_mode">python</span>] |
|
1060 | 1060 | </div> |
|
1061 | 1061 | <div class="diff-actions"> |
|
1062 | 1062 | <a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff=diff&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&fulldiff=1" class="tooltip" title="Show full diff for this file"> |
|
1063 | 1063 | <img class="icon" src="/images/icons/page_white_go.png"> |
|
1064 | 1064 | </a> |
|
1065 | 1065 | <a href="/pygments/diff-2way/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff=diff&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&fulldiff=1" class="tooltip" title="Show full side-by-side diff for this file" tt_title="Show full side-by-side diff for this file"> |
|
1066 | 1066 | <img class="icon" src="/images/icons/application_double.png"> |
|
1067 | 1067 | </a> |
|
1068 | 1068 | <a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&diff=raw" class="tooltip" title="Raw diff"> |
|
1069 | 1069 | <img class="icon" src="/images/icons/page_white.png"> |
|
1070 | 1070 | </a> |
|
1071 | 1071 | <a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&diff=download" class="tooltip" title="Download diff"> |
|
1072 | 1072 | <img class="icon" src="/images/icons/page_save.png"> |
|
1073 | 1073 | </a> |
|
1074 | 1074 | <label><input id="ignorews" name="ignorews" type="checkbox" value="1">ignore white space</label> |
|
1075 | 1075 | <label><input id="edit_mode" name="edit_mode" type="checkbox" value="1">turn on edit mode</label> |
|
1076 | 1076 | |
|
1077 | 1077 | </div> |
|
1078 | 1078 | <div style="float: right; padding: 0px 10px 0px 0px"> |
|
1079 | 1079 | r1538:de45f950b669 ... r1539:ea295cfb6226 |
|
1080 | 1080 | </div> |
|
1081 | 1081 | </div> |
|
1082 | 1082 | </div> |
|
1083 | 1083 | <div id="compare"></div> |
|
1084 | 1084 | </div> |
|
1085 | 1085 | </div> |
|
1086 | 1086 | |
|
1087 | 1087 | <script> |
|
1088 | 1088 | $(document).ready(function () { |
|
1089 | 1089 | var example_lines = '1\n2\n3\n4\n5\n6\n7\n8\n9\n \n'; |
|
1090 | 1090 | |
|
1091 | 1091 | $('#compare').mergely({ |
|
1092 | 1092 | width: 'auto', |
|
1093 | 1093 | height: '600', |
|
1094 | 1094 | fgcolor: {a:'#ddffdd',c:'#cccccc',d:'#ffdddd'}, |
|
1095 | 1095 | bgcolor: '#fff', |
|
1096 | 1096 | viewport: true, |
|
1097 | 1097 | cmsettings: {mode: 'text/plain', readOnly: true, lineWrapping: false, lineNumbers: true}, |
|
1098 | 1098 | lhs: function(setValue) { |
|
1099 | 1099 | if("False" == "True"){ |
|
1100 | 1100 | setValue('Binary file') |
|
1101 | 1101 | } |
|
1102 | 1102 | else if("MercurialCommit" == "EmptyCommit"){ |
|
1103 | 1103 | setValue(''); |
|
1104 | 1104 | } |
|
1105 | 1105 | else{ |
|
1106 | 1106 | var left_value = example_lines.slice(0, 10) + |
|
1107 | 1107 | '123456789 '.repeat(10) + |
|
1108 | 1108 | '\n'+ |
|
1109 | 1109 | example_lines.slice(10, 20); |
|
1110 | 1110 | setValue(left_value + example_lines.repeat(9)); |
|
1111 | 1111 | } |
|
1112 | 1112 | |
|
1113 | 1113 | }, |
|
1114 | 1114 | rhs: function(setValue) { |
|
1115 | 1115 | if("False" == "True"){ |
|
1116 | 1116 | setValue('Binary file') |
|
1117 | 1117 | } |
|
1118 | 1118 | else if("MercurialCommit" == "EmptyCommit"){ |
|
1119 | 1119 | setValue(''); |
|
1120 | 1120 | } |
|
1121 | 1121 | else{ |
|
1122 | 1122 | var right_value = example_lines + |
|
1123 | 1123 | example_lines.slice(0, 8) + |
|
1124 | 1124 | 'abcdefghi '.repeat(10) + |
|
1125 | 1125 | '\n'+ |
|
1126 | 1126 | example_lines.slice(8, 20); |
|
1127 | 1127 | setValue(right_value + example_lines.repeat(9)); |
|
1128 | 1128 | } |
|
1129 | 1129 | }, |
|
1130 | 1130 | }); |
|
1131 | 1131 | |
|
1132 | 1132 | var detected_mode = detectCodeMirrorModeFromExt('test_basic_api.py', true); |
|
1133 | 1133 | if(detected_mode){ |
|
1134 | 1134 | setCodeMirrorMode($('#compare').mergely('cm', 'lhs'), detected_mode); |
|
1135 | 1135 | setCodeMirrorMode($('#compare').mergely('cm', 'rhs'), detected_mode); |
|
1136 | 1136 | $('#selected_mode').html(detected_mode); |
|
1137 | 1137 | } |
|
1138 | 1138 | |
|
1139 | 1139 | $('#ignorews').change(function(e){ |
|
1140 | 1140 | var val = e.currentTarget.checked; |
|
1141 | 1141 | $('#compare').mergely('options', {ignorews: val}); |
|
1142 | 1142 | $('#compare').mergely('update'); |
|
1143 | 1143 | }); |
|
1144 | 1144 | $('#edit_mode').change(function(e){ |
|
1145 | 1145 | var val = !e.currentTarget.checked; |
|
1146 | 1146 | $('#compare').mergely('cm', 'lhs').setOption('readOnly', val); |
|
1147 | 1147 | $('#compare').mergely('cm', 'rhs').setOption('readOnly', val); |
|
1148 | 1148 | $('#compare').mergely('update'); |
|
1149 | 1149 | }) |
|
1150 | 1150 | }); |
|
1151 | 1151 | </script> |
|
1152 | 1152 | |
|
1153 | 1153 | </div> |
|
1154 | 1154 | |
|
1155 | 1155 | <!-- end examples --> |
|
1156 | 1156 | |
|
1157 | 1157 | </div> |
|
1158 | 1158 | </div> |
|
1159 | 1159 | </div> |
|
1160 | 1160 | </%def> |
@@ -1,962 +1,962 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/debug_style/index.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="breadcrumbs_links()"> |
|
5 | 5 | ${h.link_to(_('Style'), h.route_path('debug_style_home'))} |
|
6 | 6 | » |
|
7 | 7 | ${c.active} |
|
8 | 8 | </%def> |
|
9 | 9 | |
|
10 | 10 | |
|
11 | 11 | <%def name="real_main()"> |
|
12 | 12 | <div class="box"> |
|
13 | 13 | <div class="title"> |
|
14 | 14 | ${self.breadcrumbs()} |
|
15 | 15 | </div> |
|
16 | 16 | |
|
17 | 17 | <div class='sidebar-col-wrapper'> |
|
18 | 18 | ${self.sidebar()} |
|
19 | 19 | |
|
20 | 20 | <div class="main-content"> |
|
21 | 21 | |
|
22 | 22 | <h2>Collapsable Content</h2> |
|
23 | 23 | <p>Where a section may have a very long list of information, it can be desirable to use collapsable content. There is a premade function for showing/hiding elements, though its use may or may not be practical, depending on the situation. Use it, or don't, on a case-by-case basis.</p> |
|
24 | 24 | |
|
25 | 25 | <p><strong>To use the collapsable-content function:</strong> Create a toggle button using <code><div class="btn-collapse">Show More</div></code> and a data attribute using <code>data-toggle</code>. Clicking this button will toggle any sibling element(s) containing the class <code>collapsable-content</code> and an identical <code>data-toggle</code> attribute. It will also change the button to read "Show Less"; another click toggles it back to the previous state. Ideally, use pre-existing elements and add the class and attribute; creating a new div around the existing content may lead to unexpected results, as the toggle function will use <code>display:block</code> if no previous display specification was found. |
|
26 | 26 | </p> |
|
27 | 27 | <p>Notes:</p> |
|
28 | 28 | <ul> |
|
29 | 29 | <li>Changes made to the text of the button will require adjustment to the function, but for the sake of consistency and user experience, this is best avoided. </li> |
|
30 | 30 | <li>Collapsable content inside of a pjax loaded container will require <code>collapsableContent();</code> to be called from within the container. No variables are necessary.</li> |
|
31 | 31 | </ul> |
|
32 | 32 | |
|
33 | 33 | </div> <!-- .main-content --> |
|
34 | 34 | </div> <!-- .sidebar-col-wrapper --> |
|
35 | 35 | </div> <!-- .box --> |
|
36 | 36 | |
|
37 | 37 | <!-- CONTENT --> |
|
38 | 38 | <div id="content" class="wrapper"> |
|
39 | 39 | |
|
40 | 40 | <div class="main"> |
|
41 | 41 | |
|
42 | 42 | <div class="box"> |
|
43 | 43 | <div class="title"> |
|
44 | 44 | <h1> |
|
45 | 45 | Diff: enable filename with spaces on diffs |
|
46 | 46 | </h1> |
|
47 | 47 | <h1> |
|
48 | 48 | <i class="icon-hg" ></i> |
|
49 | 49 | |
|
50 | 50 | <i class="icon-lock"></i> |
|
51 | 51 | <span><a href="/rhodecode-momentum">rhodecode-momentum</a></span> |
|
52 | 52 | |
|
53 | 53 | </h1> |
|
54 | 54 | </div> |
|
55 | 55 | |
|
56 | 56 | <div class="box pr-summary"> |
|
57 | 57 | <div class="summary-details block-left"> |
|
58 | 58 | |
|
59 | 59 | <div class="pr-details-title"> |
|
60 | 60 | |
|
61 | 61 | Pull request #720 From Tue, 17 Feb 2015 16:21:38 |
|
62 | 62 | <div class="btn-collapse" data-toggle="description">Show More</div> |
|
63 | 63 | </div> |
|
64 | 64 | <div id="summary" class="fields pr-details-content"> |
|
65 | 65 | <div class="field"> |
|
66 | 66 | <div class="label-summary"> |
|
67 | 67 | <label>Origin:</label> |
|
68 | 68 | </div> |
|
69 | 69 | <div class="input"> |
|
70 | 70 | <div> |
|
71 | 71 | <span class="tag"> |
|
72 | 72 | <a href="/andersonsantos/rhodecode-momentum-fork#fix_574">book: fix_574</a> |
|
73 | 73 | </span> |
|
74 | 74 | <span class="clone-url"> |
|
75 | 75 | <a href="/andersonsantos/rhodecode-momentum-fork">https://code.rhodecode.com/andersonsantos/rhodecode-momentum-fork</a> |
|
76 | 76 | </span> |
|
77 | 77 | </div> |
|
78 | 78 | <div> |
|
79 | 79 | <br> |
|
80 | 80 | <input type="text" value="hg pull -r 46b3d50315f0 https://code.rhodecode.com/andersonsantos/rhodecode-momentum-fork" readonly="readonly"> |
|
81 | 81 | </div> |
|
82 | 82 | </div> |
|
83 | 83 | </div> |
|
84 | 84 | <div class="field"> |
|
85 | 85 | <div class="label-summary"> |
|
86 | 86 | <label>Review:</label> |
|
87 | 87 | </div> |
|
88 | 88 | <div class="input"> |
|
89 | 89 | <div class="flag_status under_review tooltip pull-left" title="Pull request status calculated from votes"></div> |
|
90 | 90 | <span class="changeset-status-lbl tooltip" title="Pull request status calculated from votes"> |
|
91 | 91 | Under Review |
|
92 | 92 | </span> |
|
93 | 93 | |
|
94 | 94 | </div> |
|
95 | 95 | </div> |
|
96 | 96 | <div class="field collapsable-content" data-toggle="description"> |
|
97 | 97 | <div class="label-summary"> |
|
98 | 98 | <label>Description:</label> |
|
99 | 99 | </div> |
|
100 | 100 | <div class="input"> |
|
101 | 101 | <div class="pr-description">Fixing issue <a class="issue- tracker-link" href="http://bugs.rhodecode.com/issues/574"># 574</a>, changing regex for capturing filenames</div> |
|
102 | 102 | </div> |
|
103 | 103 | </div> |
|
104 | 104 | <div class="field collapsable-content" data-toggle="description"> |
|
105 | 105 | <div class="label-summary"> |
|
106 | 106 | <label>Comments:</label> |
|
107 | 107 | </div> |
|
108 | 108 | <div class="input"> |
|
109 | 109 | <div> |
|
110 | 110 | <div class="comments-number"> |
|
111 | 111 | <a href="#inline-comments-container">0 Pull request comments</a>, |
|
112 | 112 | 0 Inline Comments |
|
113 | 113 | </div> |
|
114 | 114 | </div> |
|
115 | 115 | </div> |
|
116 | 116 | </div> |
|
117 | 117 | </div> |
|
118 | 118 | </div> |
|
119 | 119 | <div> |
|
120 | 120 | <div class="reviewers-title block-right"> |
|
121 | 121 | <div class="pr-details-title"> |
|
122 | 122 | Author |
|
123 | 123 | </div> |
|
124 | 124 | </div> |
|
125 | 125 | <div class="block-right pr-details-content reviewers"> |
|
126 | 126 | <ul class="group_members"> |
|
127 | 127 | <li> |
|
128 | 128 | <img class="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=32" height="16" width="16"> |
|
129 | 129 | <span class="user"> <a href="/_profiles/lolek">lolek (Lolek Santos)</a></span> |
|
130 | 130 | </li> |
|
131 | 131 | </ul> |
|
132 | 132 | </div> |
|
133 | 133 | <div class="reviewers-title block-right"> |
|
134 | 134 | <div class="pr-details-title"> |
|
135 | 135 | Pull request reviewers |
|
136 | 136 | <span class="btn-collapse" data-toggle="reviewers">Show More</span> |
|
137 | 137 | </div> |
|
138 | 138 | |
|
139 | 139 | </div> |
|
140 | 140 | <div id="reviewers" class="block-right pr-details-content reviewers"> |
|
141 | 141 | |
|
142 | 142 | <ul id="review_members" class="group_members"> |
|
143 | 143 | <li id="reviewer_70"> |
|
144 | 144 | <div class="reviewers_member"> |
|
145 | 145 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
146 | 146 | <div class="flag_status rejected pull-left reviewer_member_status"></div> |
|
147 | 147 | </div> |
|
148 | 148 | <img class="gravatar" src="https://secure.gravatar.com/avatar/153a0fab13160b3e64a2cbc7c0373506?d=identicon&s=32" height="16" width="16"> |
|
149 | 149 | <span class="user"> <a href="/_profiles/jenkins-tests">jenkins-tests</a> (reviewer)</span> |
|
150 | 150 | </div> |
|
151 | 151 | <input id="reviewer_70_input" type="hidden" value="70" name="review_members"> |
|
152 | 152 | <div class="reviewer_member_remove action_button" onclick="removeReviewMember(70, true)" style="visibility: hidden;"> |
|
153 | 153 | <i class="icon-remove"></i> |
|
154 | 154 | </div> |
|
155 | 155 | </li> |
|
156 | 156 | <li id="reviewer_33" class="collapsable-content" data-toggle="reviewers"> |
|
157 | 157 | <div class="reviewers_member"> |
|
158 | 158 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
159 | 159 | <div class="flag_status approved pull-left reviewer_member_status"></div> |
|
160 | 160 | </div> |
|
161 | 161 | <img class="gravatar" src="https://secure.gravatar.com/avatar/ffd6a317ec2b66be880143cd8459d0d9?d=identicon&s=32" height="16" width="16"> |
|
162 | 162 | <span class="user"> <a href="/_profiles/jenkins-tests">garbas (Rok Garbas)</a> (reviewer)</span> |
|
163 | 163 | </div> |
|
164 | 164 | </li> |
|
165 | 165 | <li id="reviewer_2" class="collapsable-content" data-toggle="reviewers"> |
|
166 | 166 | <div class="reviewers_member"> |
|
167 | 167 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
168 | 168 | <div class="flag_status not_reviewed pull-left reviewer_member_status"></div> |
|
169 | 169 | </div> |
|
170 | 170 | <img class="gravatar" src="https://secure.gravatar.com/avatar/aad9d40cac1259ea39b5578554ad9d64?d=identicon&s=32" height="16" width="16"> |
|
171 | 171 | <span class="user"> <a href="/_profiles/jenkins-tests">marcink (Marcin Kuzminski)</a> (reviewer)</span> |
|
172 | 172 | </div> |
|
173 | 173 | </li> |
|
174 | 174 | <li id="reviewer_36" class="collapsable-content" data-toggle="reviewers"> |
|
175 | 175 | <div class="reviewers_member"> |
|
176 | 176 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
177 | 177 | <div class="flag_status approved pull-left reviewer_member_status"></div> |
|
178 | 178 | </div> |
|
179 | 179 | <img class="gravatar" src="https://secure.gravatar.com/avatar/7a4da001a0af0016ed056ab523255db9?d=identicon&s=32" height="16" width="16"> |
|
180 | 180 | <span class="user"> <a href="/_profiles/jenkins-tests">johbo (Johannes Bornhold)</a> (reviewer)</span> |
|
181 | 181 | </div> |
|
182 | 182 | </li> |
|
183 | 183 | <li id="reviewer_47" class="collapsable-content" data-toggle="reviewers"> |
|
184 | 184 | <div class="reviewers_member"> |
|
185 | 185 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
186 | 186 | <div class="flag_status under_review pull-left reviewer_member_status"></div> |
|
187 | 187 | </div> |
|
188 | 188 | <img class="gravatar" src="https://secure.gravatar.com/avatar/8f6dc00dce79d6bd7d415be5cea6a008?d=identicon&s=32" height="16" width="16"> |
|
189 | 189 | <span class="user"> <a href="/_profiles/jenkins-tests">lisaq (Lisa Quatmann)</a> (reviewer)</span> |
|
190 | 190 | </div> |
|
191 | 191 | </li> |
|
192 | 192 | <li id="reviewer_49" class="collapsable-content" data-toggle="reviewers"> |
|
193 | 193 | <div class="reviewers_member"> |
|
194 | 194 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
195 | 195 | <div class="flag_status approved pull-left reviewer_member_status"></div> |
|
196 | 196 | </div> |
|
197 | 197 | <img class="gravatar" src="https://secure.gravatar.com/avatar/89f722927932a8f737a0feafb03a606e?d=identicon&s=32" height="16" width="16"> |
|
198 | 198 | <span class="user"> <a href="/_profiles/jenkins-tests">paris (Paris Kolios)</a> (reviewer)</span> |
|
199 | 199 | </div> |
|
200 | 200 | </li> |
|
201 | 201 | <li id="reviewer_50" class="collapsable-content" data-toggle="reviewers"> |
|
202 | 202 | <div class="reviewers_member"> |
|
203 | 203 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
204 | 204 | <div class="flag_status approved pull-left reviewer_member_status"></div> |
|
205 | 205 | </div> |
|
206 | 206 | <img class="gravatar" src="https://secure.gravatar.com/avatar/081322c975e8545ec269372405fbd016?d=identicon&s=32" height="16" width="16"> |
|
207 | 207 | <span class="user"> <a href="/_profiles/jenkins-tests">ergo (Marcin Lulek)</a> (reviewer)</span> |
|
208 | 208 | </div> |
|
209 | 209 | </li> |
|
210 | 210 | <li id="reviewer_54" class="collapsable-content" data-toggle="reviewers"> |
|
211 | 211 | <div class="reviewers_member"> |
|
212 | 212 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
213 | 213 | <div class="flag_status under_review pull-left reviewer_member_status"></div> |
|
214 | 214 | </div> |
|
215 | 215 | <img class="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=32" height="16" width="16"> |
|
216 | 216 | <span class="user"> <a href="/_profiles/jenkins-tests">anderson (Anderson Santos)</a> (reviewer)</span> |
|
217 | 217 | </div> |
|
218 | 218 | </li> |
|
219 | 219 | <li id="reviewer_57" class="collapsable-content" data-toggle="reviewers"> |
|
220 | 220 | <div class="reviewers_member"> |
|
221 | 221 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
222 | 222 | <div class="flag_status approved pull-left reviewer_member_status"></div> |
|
223 | 223 | </div> |
|
224 | 224 | <img class="gravatar" src="https://secure.gravatar.com/avatar/23e2ee8f5fd462cba8129a40cc1e896c?d=identicon&s=32" height="16" width="16"> |
|
225 | 225 | <span class="user"> <a href="/_profiles/jenkins-tests">gmgauthier (Greg Gauthier)</a> (reviewer)</span> |
|
226 | 226 | </div> |
|
227 | 227 | </li> |
|
228 | 228 | <li id="reviewer_31" class="collapsable-content" data-toggle="reviewers"> |
|
229 | 229 | <div class="reviewers_member"> |
|
230 | 230 | <div class="reviewer_status tooltip pull-left" title="Not Reviewed"> |
|
231 | 231 | <div class="flag_status under_review pull-left reviewer_member_status"></div> |
|
232 | 232 | </div> |
|
233 | 233 | <img class="gravatar" src="https://secure.gravatar.com/avatar/0c9a7e6674b6f0b35d98dbe073e3f0ab?d=identicon&s=32" height="16" width="16"> |
|
234 | 234 | <span class="user"> <a href="/_profiles/jenkins-tests">ostrobel (Oliver Strobel)</a> (reviewer)</span> |
|
235 | 235 | </div> |
|
236 | 236 | </li> |
|
237 | 237 | </ul> |
|
238 | 238 | <div id="add_reviewer_input" class="ac" style="display: none;"> |
|
239 | 239 | </div> |
|
240 | 240 | </div> |
|
241 | 241 | </div> |
|
242 | 242 | </div> |
|
243 | 243 | </div> |
|
244 | 244 | <div class="box"> |
|
245 | 245 | <div class="table" > |
|
246 | 246 | <div id="changeset_compare_view_content"> |
|
247 | 247 | <div class="compare_view_commits_title"> |
|
248 | 248 | <h2>Compare View: 6 commits<span class="btn-collapse" data-toggle="commits">Show More</span></h2> |
|
249 | 249 | |
|
250 | 250 | </div> |
|
251 | 251 | <div class="container"> |
|
252 | 252 | |
|
253 | 253 | |
|
254 | 254 | <table class="rctable compare_view_commits"> |
|
255 | 255 | <tr> |
|
256 | 256 | <th>Time</th> |
|
257 | 257 | <th>Author</th> |
|
258 | 258 | <th>Commit</th> |
|
259 | 259 | <th></th> |
|
260 | 260 | <th>Title</th> |
|
261 | 261 | </tr> |
|
262 | 262 | <tr id="row-7e83e5cd7812dd9e055ce30e77c65cdc08154b43" commit_id="7e83e5cd7812dd9e055ce30e77c65cdc08154b43" class="compare_select"> |
|
263 | 263 | <td class="td-time"> |
|
264 | 264 | <span class="tooltip" title="3 hours and 23 minutes ago" tt_title="3 hours and 23 minutes ago">2015-02-18 10:13:34</span> |
|
265 | 265 | </td> |
|
266 | 266 | <td class="td-user"> |
|
267 | 267 | <div class="gravatar_with_user"> |
|
268 | 268 | <img class="gravatar" alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&s=16"> |
|
269 | 269 | <span title="Lolek Santos <lolek@rhodecode.com>" class="user">brian (Brian Butler)</span> |
|
270 | 270 | </div> |
|
271 | 271 | </td> |
|
272 | 272 | <td class="td-hash"> |
|
273 | 273 | <code> |
|
274 | 274 | <a href="/brian/documentation-rep/changeset/7e83e5cd7812dd9e055ce30e77c65cdc08154b43">r395:7e83e5cd7812</a> |
|
275 | 275 | </code> |
|
276 | 276 | </td> |
|
277 | 277 | <td class="expand_commit" data-commit-id="7e83e5cd7812dd9e055ce30e77c65cdc08154b43" title="Expand commit message"> |
|
278 | 278 | <div class="show_more_col"> |
|
279 | 279 | <i class="show_more"></i> |
|
280 | 280 | </div> |
|
281 | 281 | </td> |
|
282 | 282 | <td class="mid td-description"> |
|
283 | 283 | <div class="log-container truncate-wrap"> |
|
284 | 284 | <div id="c-7e83e5cd7812dd9e055ce30e77c65cdc08154b43" class="message truncate">rep: added how we doc to guide</div> |
|
285 | 285 | </div> |
|
286 | 286 | </td> |
|
287 | 287 | </tr> |
|
288 | 288 | <tr id="row-48ce1581bdb3aa7679c246cbdd3fb030623f5c87" commit_id="48ce1581bdb3aa7679c246cbdd3fb030623f5c87" class="compare_select"> |
|
289 | 289 | <td class="td-time"> |
|
290 | 290 | <span class="tooltip" title="4 hours and 18 minutes ago">2015-02-18 09:18:31</span> |
|
291 | 291 | </td> |
|
292 | 292 | <td class="td-user"> |
|
293 | 293 | <div class="gravatar_with_user"> |
|
294 | 294 | <img class="gravatar" alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&s=16"> |
|
295 | 295 | <span title="Lolek Santos <lolek@rhodecode.com>" class="user">brian (Brian Butler)</span> |
|
296 | 296 | </div> |
|
297 | 297 | </td> |
|
298 | 298 | <td class="td-hash"> |
|
299 | 299 | <code> |
|
300 | 300 | <a href="/brian/documentation-rep/changeset/48ce1581bdb3aa7679c246cbdd3fb030623f5c87">r394:48ce1581bdb3</a> |
|
301 | 301 | </code> |
|
302 | 302 | </td> |
|
303 | 303 | <td class="expand_commit" data-commit-id="48ce1581bdb3aa7679c246cbdd3fb030623f5c87" title="Expand commit message"> |
|
304 | 304 | <div class="show_more_col"> |
|
305 | 305 | <i class="show_more"></i> |
|
306 | 306 | </div> |
|
307 | 307 | </td> |
|
308 | 308 | <td class="mid td-description"> |
|
309 | 309 | <div class="log-container truncate-wrap"> |
|
310 | 310 | <div id="c-48ce1581bdb3aa7679c246cbdd3fb030623f5c87" class="message truncate">repo 0004 - typo</div> |
|
311 | 311 | </div> |
|
312 | 312 | </td> |
|
313 | 313 | </tr> |
|
314 | 314 | <tr id="row-982d857aafb4c71e7686e419c32b71c9a837257d" commit_id="982d857aafb4c71e7686e419c32b71c9a837257d" class="compare_select collapsable-content" data-toggle="commits"> |
|
315 | 315 | <td class="td-time"> |
|
316 | 316 | <span class="tooltip" title="4 hours and 22 minutes ago">2015-02-18 09:14:45</span> |
|
317 | 317 | </td> |
|
318 | 318 | <td class="td-user"> |
|
319 | 319 | <span class="gravatar" commit_id="982d857aafb4c71e7686e419c32b71c9a837257d"> |
|
320 | 320 | <img alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&s=28" height="14" width="14"> |
|
321 | 321 | </span> |
|
322 | 322 | <span class="author">brian (Brian Butler)</span> |
|
323 | 323 | </td> |
|
324 | 324 | <td class="td-hash"> |
|
325 | 325 | <code> |
|
326 | 326 | <a href="/brian/documentation-rep/changeset/982d857aafb4c71e7686e419c32b71c9a837257d">r393:982d857aafb4</a> |
|
327 | 327 | </code> |
|
328 | 328 | </td> |
|
329 | 329 | <td class="expand_commit" data-commit-id="982d857aafb4c71e7686e419c32b71c9a837257d" title="Expand commit message"> |
|
330 | 330 | <div class="show_more_col"> |
|
331 | 331 | <i class="show_more"></i> |
|
332 | 332 | </div> |
|
333 | 333 | </td> |
|
334 | 334 | <td class="mid td-description"> |
|
335 | 335 | <div class="log-container truncate-wrap"> |
|
336 | 336 | <div id="c-982d857aafb4c71e7686e419c32b71c9a837257d" class="message truncate">internals: how to doc section added</div> |
|
337 | 337 | </div> |
|
338 | 338 | </td> |
|
339 | 339 | </tr> |
|
340 | 340 | <tr id="row-4c7258ad1af6dae91bbaf87a933e3597e676fab8" commit_id="4c7258ad1af6dae91bbaf87a933e3597e676fab8" class="compare_select collapsable-content" data-toggle="commits"> |
|
341 | 341 | <td class="td-time"> |
|
342 | 342 | <span class="tooltip" title="20 hours and 16 minutes ago">2015-02-17 17:20:44</span> |
|
343 | 343 | </td> |
|
344 | 344 | <td class="td-user"> |
|
345 | 345 | <span class="gravatar" commit_id="4c7258ad1af6dae91bbaf87a933e3597e676fab8"> |
|
346 | 346 | <img alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&s=28" height="14" width="14"> |
|
347 | 347 | </span> |
|
348 | 348 | <span class="author">brian (Brian Butler)</span> |
|
349 | 349 | </td> |
|
350 | 350 | <td class="td-hash"> |
|
351 | 351 | <code> |
|
352 | 352 | <a href="/brian/documentation-rep/changeset/4c7258ad1af6dae91bbaf87a933e3597e676fab8">r392:4c7258ad1af6</a> |
|
353 | 353 | </code> |
|
354 | 354 | </td> |
|
355 | 355 | <td class="expand_commit" data-commit-id="4c7258ad1af6dae91bbaf87a933e3597e676fab8" title="Expand commit message"> |
|
356 | 356 | <div class="show_more_col"> |
|
357 | 357 | <i class="show_more"></i> |
|
358 | 358 | </div> |
|
359 | 359 | </td> |
|
360 | 360 | <td class="mid td-description"> |
|
361 | 361 | <div class="log-container truncate-wrap"> |
|
362 | 362 | <div id="c-4c7258ad1af6dae91bbaf87a933e3597e676fab8" class="message truncate">REP: 0004 Documentation standards</div> |
|
363 | 363 | </div> |
|
364 | 364 | </td> |
|
365 | 365 | </tr> |
|
366 | 366 | <tr id="row-46b3d50315f0f2b1f64485ac95af4f384948f9cb" commit_id="46b3d50315f0f2b1f64485ac95af4f384948f9cb" class="compare_select collapsable-content" data-toggle="commits"> |
|
367 | 367 | <td class="td-time"> |
|
368 | 368 | <span class="tooltip" title="18 hours and 19 minutes ago">2015-02-17 16:18:49</span> |
|
369 | 369 | </td> |
|
370 | 370 | <td class="td-user"> |
|
371 | 371 | <span class="gravatar" commit_id="46b3d50315f0f2b1f64485ac95af4f384948f9cb"> |
|
372 | 372 | <img alt="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=28" height="14" width="14"> |
|
373 | 373 | </span> |
|
374 | 374 | <span class="author">anderson (Anderson Santos)</span> |
|
375 | 375 | </td> |
|
376 | 376 | <td class="td-hash"> |
|
377 | 377 | <code> |
|
378 | 378 | <a href="/andersonsantos/rhodecode-momentum-fork/changeset/46b3d50315f0f2b1f64485ac95af4f384948f9cb">r8743:46b3d50315f0</a> |
|
379 | 379 | </code> |
|
380 | 380 | </td> |
|
381 | 381 | <td class="expand_commit" data-commit-id="46b3d50315f0f2b1f64485ac95af4f384948f9cb" title="Expand commit message"> |
|
382 | 382 | <div class="show_more_col"> |
|
383 | 383 | <i class="show_more" ></i> |
|
384 | 384 | </div> |
|
385 | 385 | </td> |
|
386 | 386 | <td class="mid td-description"> |
|
387 | 387 | <div class="log-container truncate-wrap"> |
|
388 | 388 | <div id="c-46b3d50315f0f2b1f64485ac95af4f384948f9cb" class="message truncate">Diff: created tests for the diff with filenames with spaces</div> |
|
389 | 389 | |
|
390 | 390 | </div> |
|
391 | 391 | </td> |
|
392 | 392 | </tr> |
|
393 | 393 | <tr id="row-1e57d2549bd6c34798075bf05ac39f708bb33b90" commit_id="1e57d2549bd6c34798075bf05ac39f708bb33b90" class="compare_select collapsable-content" data-toggle="commits"> |
|
394 | 394 | <td class="td-time"> |
|
395 | 395 | <span class="tooltip" title="2 days ago">2015-02-16 10:06:08</span> |
|
396 | 396 | </td> |
|
397 | 397 | <td class="td-user"> |
|
398 | 398 | <span class="gravatar" commit_id="1e57d2549bd6c34798075bf05ac39f708bb33b90"> |
|
399 | 399 | <img alt="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=28" height="14" width="14"> |
|
400 | 400 | </span> |
|
401 | 401 | <span class="author">anderson (Anderson Santos)</span> |
|
402 | 402 | </td> |
|
403 | 403 | <td class="td-hash"> |
|
404 | 404 | <code> |
|
405 | 405 | <a href="/andersonsantos/rhodecode-momentum-fork/changeset/1e57d2549bd6c34798075bf05ac39f708bb33b90">r8742:1e57d2549bd6</a> |
|
406 | 406 | </code> |
|
407 | 407 | </td> |
|
408 | 408 | <td class="expand_commit" data-commit-id="1e57d2549bd6c34798075bf05ac39f708bb33b90" title="Expand commit message"> |
|
409 | 409 | <div class="show_more_col"> |
|
410 | 410 | <i class="show_more" ></i> |
|
411 | 411 | </div> |
|
412 | 412 | </td> |
|
413 | 413 | <td class="mid td-description"> |
|
414 | 414 | <div class="log-container truncate-wrap"> |
|
415 | 415 | <div id="c-1e57d2549bd6c34798075bf05ac39f708bb33b90" class="message truncate">Diff: fix renaming files with spaces <a class="issue-tracker-link" href="http://bugs.rhodecode.com/issues/574">#574</a></div> |
|
416 | 416 | |
|
417 | 417 | </div> |
|
418 | 418 | </td> |
|
419 | 419 | </tr> |
|
420 | 420 | </table> |
|
421 | 421 | </div> |
|
422 | 422 | |
|
423 | 423 | <script> |
|
424 | 424 | $('.expand_commit').on('click',function(e){ |
|
425 | 425 | $(this).children('i').hide(); |
|
426 | 426 | var cid = $(this).data('commitId'); |
|
427 | 427 | $('#c-'+cid).css({'height': 'auto', 'margin': '.65em 1em .65em 0','white-space': 'pre-line', 'text-overflow': 'initial', 'overflow':'visible'}) |
|
428 | 428 | $('#t-'+cid).css({'height': 'auto', 'text-overflow': 'initial', 'overflow':'visible', 'white-space':'normal'}) |
|
429 | 429 | }); |
|
430 | 430 | $('.compare_select').on('click',function(e){ |
|
431 | 431 | var cid = $(this).attr('commit_id'); |
|
432 | 432 | $('#row-'+cid).toggleClass('hl', !$('#row-'+cid).hasClass('hl')); |
|
433 | 433 | }); |
|
434 | 434 | </script> |
|
435 | 435 | <div class="cs_files_title"> |
|
436 | 436 | <span class="cs_files_expand"> |
|
437 | 437 | <span id="expand_all_files">Expand All</span> | <span id="collapse_all_files">Collapse All</span> |
|
438 | 438 | </span> |
|
439 | 439 | <h2> |
|
440 | 440 | 7 files changed: 55 inserted, 9 deleted |
|
441 | 441 | </h2> |
|
442 | 442 | </div> |
|
443 | 443 | <div class="cs_files"> |
|
444 | 444 | <table class="compare_view_files"> |
|
445 | 445 | |
|
446 | 446 | <tr class="cs_A expand_file" fid="c--efbe5b7a3f13"> |
|
447 | 447 | <td class="cs_icon_td"> |
|
448 | 448 | <span class="expand_file_icon" fid="c--efbe5b7a3f13"></span> |
|
449 | 449 | </td> |
|
450 | 450 | <td class="cs_icon_td"> |
|
451 | 451 | <div class="flag_status not_reviewed hidden"></div> |
|
452 | 452 | </td> |
|
453 | 453 | <td id="a_c--efbe5b7a3f13"> |
|
454 | 454 | <a class="compare_view_filepath" href="#a_c--efbe5b7a3f13"> |
|
455 | 455 | rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff |
|
456 | 456 | </a> |
|
457 | 457 | <span id="diff_c--efbe5b7a3f13" class="diff_links" style="display: none;"> |
|
458 | 458 | <a href="/andersonsantos/rhodecode-momentum-fork/diff/rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&diff1=b78e2376b986b2cf656a2b4390b09f303291c886&fulldiff=1&diff=diff"> |
|
459 | 459 | Unified Diff |
|
460 | 460 | </a> |
|
461 | 461 | | |
|
462 | 462 | <a href="/andersonsantos/rhodecode-momentum-fork/diff-2way/rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&diff1=b78e2376b986b2cf656a2b4390b09f303291c886&fulldiff=1&diff=diff"> |
|
463 | 463 | Side-by-side Diff |
|
464 | 464 | </a> |
|
465 | 465 | </span> |
|
466 | 466 | </td> |
|
467 | 467 | <td> |
|
468 | 468 | <div class="changes pull-right"><div style="width:100px"><div class="added top-right-rounded-corner-mid bottom-right-rounded-corner-mid top-left-rounded-corner-mid bottom-left-rounded-corner-mid" style="width:100.0%">4</div><div class="deleted top-right-rounded-corner-mid bottom-right-rounded-corner-mid" style="width:0%"></div></div></div> |
|
469 | 469 | <div class="comment-bubble pull-right" data-path="rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff"> |
|
470 | 470 | <i class="icon-comment"></i> |
|
471 | 471 | </div> |
|
472 | 472 | </td> |
|
473 | 473 | </tr> |
|
474 | 474 | <tr id="tr_c--efbe5b7a3f13"> |
|
475 | 475 | <td></td> |
|
476 | 476 | <td></td> |
|
477 | 477 | <td class="injected_diff" colspan="2"> |
|
478 | 478 | |
|
479 | 479 | <div class="diff-container" id="diff-container-140716195039928"> |
|
480 | 480 | <div id="c--efbe5b7a3f13_target" ></div> |
|
481 | 481 | <div id="c--efbe5b7a3f13" class="diffblock margined comm" > |
|
482 | 482 | <div class="code-body"> |
|
483 | 483 | <div class="full_f_path" path="rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff" style="display: none;"></div> |
|
484 | 484 | <table class="code-difftable"> |
|
485 | 485 | <tr class="line context"> |
|
486 | 486 | <td class="add-comment-line"><span class="add-comment-content"></span></td> |
|
487 | 487 | <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td> |
|
488 | 488 | <td class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n"></a></td> |
|
489 | 489 | <td class="code no-comment"> |
|
490 | 490 | <pre>new file 100644</pre> |
|
491 | 491 | </td> |
|
492 | 492 | </tr> |
|
493 | 493 | <tr class="line add"> |
|
494 | 494 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
495 | 495 | <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td> |
|
496 | 496 | <td id="rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n1" class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n1">1</a></td> |
|
497 | 497 | <td class="code"> |
|
498 | 498 | <pre>diff --git a/file_with_ spaces.txt b/file_with_ two spaces.txt |
|
499 | 499 | </pre> |
|
500 | 500 | </td> |
|
501 | 501 | </tr> |
|
502 | 502 | <tr class="line add"> |
|
503 | 503 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
504 | 504 | <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td> |
|
505 | 505 | <td id="rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n2" class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n2">2</a></td> |
|
506 | 506 | <td class="code"> |
|
507 | 507 | <pre>similarity index 100% |
|
508 | 508 | </pre> |
|
509 | 509 | </td> |
|
510 | 510 | </tr> |
|
511 | 511 | <tr class="line add"> |
|
512 | 512 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
513 | 513 | <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td> |
|
514 | 514 | <td id="rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n3" class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n3">3</a></td> |
|
515 | 515 | <td class="code"> |
|
516 | 516 | <pre>rename from file_with_ spaces.txt |
|
517 | 517 | </pre> |
|
518 | 518 | </td> |
|
519 | 519 | </tr> |
|
520 | 520 | <tr class="line add"> |
|
521 | 521 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
522 | 522 | <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td> |
|
523 | 523 | <td id="rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n4" class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n4">4</a></td> |
|
524 | 524 | <td class="code"> |
|
525 | 525 | <pre>rename to file_with_ two spaces.txt |
|
526 | 526 | </pre> |
|
527 | 527 | </td> |
|
528 | 528 | </tr> |
|
529 | 529 | <tr class="line context"> |
|
530 | 530 | <td class="add-comment-line"><span class="add-comment-content"></span></td> |
|
531 | 531 | <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o...">...</a></td> |
|
532 | 532 | <td class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n...">...</a></td> |
|
533 | 533 | <td class="code no-comment"> |
|
534 | 534 | <pre> No newline at end of file</pre> |
|
535 | 535 | </td> |
|
536 | 536 | </tr> |
|
537 | 537 | </table> |
|
538 | 538 | </div> |
|
539 | 539 | </div> |
|
540 | 540 | </div> |
|
541 | 541 | |
|
542 | 542 | </td> |
|
543 | 543 | </tr> |
|
544 | 544 | <tr class="cs_A expand_file" fid="c--c21377f778f9"> |
|
545 | 545 | <td class="cs_icon_td"> |
|
546 | 546 | <span class="expand_file_icon" fid="c--c21377f778f9"></span> |
|
547 | 547 | </td> |
|
548 | 548 | <td class="cs_icon_td"> |
|
549 | 549 | <div class="flag_status not_reviewed hidden"></div> |
|
550 | 550 | </td> |
|
551 | 551 | <td id="a_c--c21377f778f9"> |
|
552 | 552 | <a class="compare_view_filepath" href="#a_c--c21377f778f9"> |
|
553 | 553 | rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff |
|
554 | 554 | </a> |
|
555 | 555 | <span id="diff_c--c21377f778f9" class="diff_links" style="display: none;"> |
|
556 | 556 | <a href="/andersonsantos/rhodecode-momentum-fork/diff/rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&diff1=b78e2376b986b2cf656a2b4390b09f303291c886&fulldiff=1&diff=diff"> |
|
557 | 557 | Unified Diff |
|
558 | 558 | </a> |
|
559 | 559 | | |
|
560 | 560 | <a href="/andersonsantos/rhodecode-momentum-fork/diff-2way/rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&diff1=b78e2376b986b2cf656a2b4390b09f303291c886&fulldiff=1&diff=diff"> |
|
561 | 561 | Side-by-side Diff |
|
562 | 562 | </a> |
|
563 | 563 | </span> |
|
564 | 564 | </td> |
|
565 | 565 | <td> |
|
566 | 566 | <div class="changes pull-right"><div style="width:100px"><div class="added top-right-rounded-corner-mid bottom-right-rounded-corner-mid top-left-rounded-corner-mid bottom-left-rounded-corner-mid" style="width:100.0%">3</div><div class="deleted top-right-rounded-corner-mid bottom-right-rounded-corner-mid" style="width:0%"></div></div></div> |
|
567 | 567 | <div class="comment-bubble pull-right" data-path="rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff"> |
|
568 | 568 | <i class="icon-comment"></i> |
|
569 | 569 | </div> |
|
570 | 570 | </td> |
|
571 | 571 | </tr> |
|
572 | 572 | <tr id="tr_c--c21377f778f9"> |
|
573 | 573 | <td></td> |
|
574 | 574 | <td></td> |
|
575 | 575 | <td class="injected_diff" colspan="2"> |
|
576 | 576 | |
|
577 | 577 | <div class="diff-container" id="diff-container-140716195038344"> |
|
578 | 578 | <div id="c--c21377f778f9_target" ></div> |
|
579 | 579 | <div id="c--c21377f778f9" class="diffblock margined comm" > |
|
580 | 580 | <div class="code-body"> |
|
581 | 581 | <div class="full_f_path" path="rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff" style="display: none;"></div> |
|
582 | 582 | <table class="code-difftable"> |
|
583 | 583 | <tr class="line context"> |
|
584 | 584 | <td class="add-comment-line"><span class="add-comment-content"></span></td> |
|
585 | 585 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td> |
|
586 | 586 | <td class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n"></a></td> |
|
587 | 587 | <td class="code no-comment"> |
|
588 | 588 | <pre>new file 100644</pre> |
|
589 | 589 | </td> |
|
590 | 590 | </tr> |
|
591 | 591 | <tr class="line add"> |
|
592 | 592 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
593 | 593 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td> |
|
594 | 594 | <td id="rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n1" class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n1">1</a></td> |
|
595 | 595 | <td class="code"> |
|
596 | 596 | <pre>diff --git a/file_changed_without_spaces.txt b/file_copied_ with spaces.txt |
|
597 | 597 | </pre> |
|
598 | 598 | </td> |
|
599 | 599 | </tr> |
|
600 | 600 | <tr class="line add"> |
|
601 | 601 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
602 | 602 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td> |
|
603 | 603 | <td id="rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n2" class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n2">2</a></td> |
|
604 | 604 | <td class="code"> |
|
605 | 605 | <pre>copy from file_changed_without_spaces.txt |
|
606 | 606 | </pre> |
|
607 | 607 | </td> |
|
608 | 608 | </tr> |
|
609 | 609 | <tr class="line add"> |
|
610 | 610 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
611 | 611 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td> |
|
612 | 612 | <td id="rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n3" class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n3">3</a></td> |
|
613 | 613 | <td class="code"> |
|
614 | 614 | <pre>copy to file_copied_ with spaces.txt |
|
615 | 615 | </pre> |
|
616 | 616 | </td> |
|
617 | 617 | </tr> |
|
618 | 618 | <tr class="line context"> |
|
619 | 619 | <td class="add-comment-line"><span class="add-comment-content"></span></td> |
|
620 | 620 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o...">...</a></td> |
|
621 | 621 | <td class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n...">...</a></td> |
|
622 | 622 | <td class="code no-comment"> |
|
623 | 623 | <pre> No newline at end of file</pre> |
|
624 | 624 | </td> |
|
625 | 625 | </tr> |
|
626 | 626 | </table> |
|
627 | 627 | </div> |
|
628 | 628 | </div> |
|
629 | 629 | </div> |
|
630 | 630 | |
|
631 | 631 | </td> |
|
632 | 632 | </tr> |
|
633 | 633 | <tr class="cs_A expand_file" fid="c--ee62085ad7a8"> |
|
634 | 634 | <td class="cs_icon_td"> |
|
635 | 635 | <span class="expand_file_icon" fid="c--ee62085ad7a8"></span> |
|
636 | 636 | </td> |
|
637 | 637 | <td class="cs_icon_td"> |
|
638 | 638 | <div class="flag_status not_reviewed hidden"></div> |
|
639 | 639 | </td> |
|
640 | 640 | <td id="a_c--ee62085ad7a8"> |
|
641 | 641 | <a class="compare_view_filepath" href="#a_c--ee62085ad7a8"> |
|
642 | 642 | rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff |
|
643 | 643 | </a> |
|
644 | 644 | <span id="diff_c--ee62085ad7a8" class="diff_links" style="display: none;"> |
|
645 | 645 | <a href="/andersonsantos/rhodecode-momentum-fork/diff/rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&diff1=b78e2376b986b2cf656a2b4390b09f303291c886&fulldiff=1&diff=diff"> |
|
646 | 646 | Unified Diff |
|
647 | 647 | </a> |
|
648 | 648 | | |
|
649 | 649 | <a href="/andersonsantos/rhodecode-momentum-fork/diff-2way/rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&diff1=b78e2376b986b2cf656a2b4390b09f303291c886&fulldiff=1&diff=diff"> |
|
650 | 650 | Side-by-side Diff |
|
651 | 651 | </a> |
|
652 | 652 | </span> |
|
653 | 653 | </td> |
|
654 | 654 | <td> |
|
655 | 655 | <div class="changes pull-right"><div style="width:100px"><div class="added top-right-rounded-corner-mid bottom-right-rounded-corner-mid top-left-rounded-corner-mid bottom-left-rounded-corner-mid" style="width:100.0%">3</div><div class="deleted top-right-rounded-corner-mid bottom-right-rounded-corner-mid" style="width:0%"></div></div></div> |
|
656 | 656 | <div class="comment-bubble pull-right" data-path="rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff"> |
|
657 | 657 | <i class="icon-comment"></i> |
|
658 | 658 | </div> |
|
659 | 659 | </td> |
|
660 | 660 | </tr> |
|
661 | 661 | <tr id="tr_c--ee62085ad7a8"> |
|
662 | 662 | <td></td> |
|
663 | 663 | <td></td> |
|
664 | 664 | <td class="injected_diff" colspan="2"> |
|
665 | 665 | |
|
666 | 666 | <div class="diff-container" id="diff-container-140716195039496"> |
|
667 | 667 | <div id="c--ee62085ad7a8_target" ></div> |
|
668 | 668 | <div id="c--ee62085ad7a8" class="diffblock margined comm" > |
|
669 | 669 | <div class="code-body"> |
|
670 | 670 | <div class="full_f_path" path="rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff" style="display: none;"></div> |
|
671 | 671 | <table class="code-difftable"> |
|
672 | 672 | <tr class="line context"> |
|
673 | 673 | <td class="add-comment-line"><span class="add-comment-content"></span></td> |
|
674 | 674 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td> |
|
675 | 675 | <td class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n"></a></td> |
|
676 | 676 | <td class="code no-comment"> |
|
677 | 677 | <pre>new file 100644</pre> |
|
678 | 678 | </td> |
|
679 | 679 | </tr> |
|
680 | 680 | <tr class="line add"> |
|
681 | 681 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
682 | 682 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td> |
|
683 | 683 | <td id="rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n1" class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n1">1</a></td> |
|
684 | 684 | <td class="code"> |
|
685 | 685 | <pre>diff --git a/file_ with update.txt b/file_changed _.txt |
|
686 | 686 | </pre> |
|
687 | 687 | </td> |
|
688 | 688 | </tr> |
|
689 | 689 | <tr class="line add"> |
|
690 | 690 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
691 | 691 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td> |
|
692 | 692 | <td id="rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n2" class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n2">2</a></td> |
|
693 | 693 | <td class="code"> |
|
694 | 694 | <pre>rename from file_ with update.txt |
|
695 | 695 | </pre> |
|
696 | 696 | </td> |
|
697 | 697 | </tr> |
|
698 | 698 | <tr class="line add"> |
|
699 | 699 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td> |
|
700 | 700 | <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td> |
|
701 | 701 | <td id="rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n3" class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n3">3</a></td> |
|
702 | 702 | <td class="code"> |
|
703 | 703 | <pre>rename to file_changed _.txt</pre> |
|
704 | 704 | </td> |
|
705 | 705 | </tr> |
|
706 | 706 | </table> |
|
707 | 707 | </div> |
|
708 | 708 | </div> |
|
709 | 709 | </div> |
|
710 | 710 | |
|
711 | 711 | </td> |
|
712 | 712 | </tr> |
|
713 | 713 | |
|
714 | 714 | </table> |
|
715 | 715 | </div> |
|
716 | 716 | </div> |
|
717 | 717 | </div> |
|
718 | 718 | |
|
719 | 719 | </td> |
|
720 | 720 | </tr> |
|
721 | 721 | </table> |
|
722 | 722 | </div> |
|
723 | 723 | </div> |
|
724 | 724 | </div> |
|
725 | 725 | |
|
726 | 726 | |
|
727 | 727 | |
|
728 | 728 | |
|
729 | 729 | <div id="comment-inline-form-template" style="display: none;"> |
|
730 | 730 | <div class="comment-inline-form ac"> |
|
731 | 731 | <div class="overlay"><div class="overlay-text">Submitting...</div></div> |
|
732 | 732 | <form action="#" class="inline-form" method="get"> |
|
733 | 733 | <div id="edit-container_{1}" class="clearfix"> |
|
734 | 734 | <div class="comment-title pull-left"> |
|
735 | 735 | Commenting on line {1}. |
|
736 | 736 | </div> |
|
737 | 737 | <div class="comment-help pull-right"> |
|
738 |
Comments parsed using <a href="http://docutils.sourceforge. |
|
|
738 | Comments parsed using <a href="http://docutils.sourceforge.io/docs/user/rst/quickref.html">RST</a> syntax with <span class="tooltip" title="Use @username inside this text to send notification to this RhodeCode user">@mention</span> support. | |
|
739 | 739 | </div> |
|
740 | 740 | <div style="clear: both"></div> |
|
741 | 741 | <textarea id="text_{1}" name="text" class="comment-block-ta ac-input"></textarea> |
|
742 | 742 | </div> |
|
743 | 743 | <div id="preview-container_{1}" class="clearfix" style="display: none;"> |
|
744 | 744 | <div class="comment-help"> |
|
745 | 745 | Comment preview |
|
746 | 746 | </div> |
|
747 | 747 | <div id="preview-box_{1}" class="preview-box"></div> |
|
748 | 748 | </div> |
|
749 | 749 | <div class="comment-button pull-right"> |
|
750 | 750 | <input type="hidden" name="f_path" value="{0}"> |
|
751 | 751 | <input type="hidden" name="line" value="{1}"> |
|
752 | 752 | <div id="preview-btn_{1}" class="btn btn-default">Preview</div> |
|
753 | 753 | <div id="edit-btn_{1}" class="btn" style="display: none;">Edit</div> |
|
754 | 754 | <input class="btn btn-success save-inline-form" id="save" name="save" type="submit" value="Comment" /> |
|
755 | 755 | </div> |
|
756 | 756 | <div class="comment-button hide-inline-form-button"> |
|
757 | 757 | <input class="btn hide-inline-form" id="hide-inline-form" name="hide-inline-form" type="reset" value="Cancel" /> |
|
758 | 758 | </div> |
|
759 | 759 | </form> |
|
760 | 760 | </div> |
|
761 | 761 | </div> |
|
762 | 762 | |
|
763 | 763 | |
|
764 | 764 | |
|
765 | 765 | <div class="comments"> |
|
766 | 766 | <div id="inline-comments-container"> |
|
767 | 767 | |
|
768 | 768 | <h2>0 Pull Request Comments</h2> |
|
769 | 769 | |
|
770 | 770 | |
|
771 | 771 | </div> |
|
772 | 772 | |
|
773 | 773 | </div> |
|
774 | 774 | |
|
775 | 775 | |
|
776 | 776 | |
|
777 | 777 | |
|
778 | 778 | <div class="pull-request-merge"> |
|
779 | 779 | </div> |
|
780 | 780 | <div class="comments"> |
|
781 | 781 | <div class="comment-form ac"> |
|
782 | 782 | <form action="/rhodecode-momentum/pull-request-comment/720" id="comments_form" method="POST"> |
|
783 | 783 | <div style="display: none;"><input id="csrf_token" name="csrf_token" type="hidden" value="6dbc0b19ac65237df65d57202a3e1f2df4153e38" /></div> |
|
784 | 784 | <div id="edit-container" class="clearfix"> |
|
785 | 785 | <div class="comment-title pull-left"> |
|
786 | 786 | Create a comment on this Pull Request. |
|
787 | 787 | </div> |
|
788 | 788 | <div class="comment-help pull-right"> |
|
789 |
Comments parsed using <a href="http://docutils.sourceforge. |
|
|
789 | Comments parsed using <a href="http://docutils.sourceforge.io/docs/user/rst/quickref.html">RST</a> syntax with <span class="tooltip" title="Use @username inside this text to send notification to this RhodeCode user">@mention</span> support. | |
|
790 | 790 | </div> |
|
791 | 791 | <div style="clear: both"></div> |
|
792 | 792 | <textarea class="comment-block-ta" id="text" name="text"></textarea> |
|
793 | 793 | </div> |
|
794 | 794 | |
|
795 | 795 | <div id="preview-container" class="clearfix" style="display: none;"> |
|
796 | 796 | <div class="comment-title"> |
|
797 | 797 | Comment preview |
|
798 | 798 | </div> |
|
799 | 799 | <div id="preview-box" class="preview-box"></div> |
|
800 | 800 | </div> |
|
801 | 801 | |
|
802 | 802 | <div id="comment_form_extras"> |
|
803 | 803 | </div> |
|
804 | 804 | <div class="action-button pull-right"> |
|
805 | 805 | <div id="preview-btn" class="btn"> |
|
806 | 806 | Preview |
|
807 | 807 | </div> |
|
808 | 808 | <div id="edit-btn" class="btn" style="display: none;"> |
|
809 | 809 | Edit |
|
810 | 810 | </div> |
|
811 | 811 | <div class="comment-button"> |
|
812 | 812 | <input class="btn btn-small btn-success comment-button-input" id="save" name="save" type="submit" value="Comment" /> |
|
813 | 813 | </div> |
|
814 | 814 | </div> |
|
815 | 815 | </form> |
|
816 | 816 | </div> |
|
817 | 817 | </div> |
|
818 | 818 | <script> |
|
819 | 819 | |
|
820 | 820 | $(document).ready(function() { |
|
821 | 821 | |
|
822 | 822 | var cm = initCommentBoxCodeMirror('#text'); |
|
823 | 823 | |
|
824 | 824 | // main form preview |
|
825 | 825 | $('#preview-btn').on('click', function(e) { |
|
826 | 826 | $('#preview-btn').hide(); |
|
827 | 827 | $('#edit-btn').show(); |
|
828 | 828 | var _text = cm.getValue(); |
|
829 | 829 | if (!_text) { |
|
830 | 830 | return; |
|
831 | 831 | } |
|
832 | 832 | var post_data = { |
|
833 | 833 | 'text': _text, |
|
834 | 834 | 'renderer': DEFAULT_RENDERER, |
|
835 | 835 | 'csrf_token': CSRF_TOKEN |
|
836 | 836 | }; |
|
837 | 837 | var previewbox = $('#preview-box'); |
|
838 | 838 | previewbox.addClass('unloaded'); |
|
839 | 839 | previewbox.html(_gettext('Loading ...')); |
|
840 | 840 | $('#edit-container').hide(); |
|
841 | 841 | $('#preview-container').show(); |
|
842 | 842 | |
|
843 | 843 | var url = pyroutes.url('repo_commit_comment_preview', |
|
844 | 844 | {'repo_name': 'rhodecode-momentum', 'commit_id': '000000'}); |
|
845 | 845 | |
|
846 | 846 | ajaxPOST(url, post_data, function(o) { |
|
847 | 847 | previewbox.html(o); |
|
848 | 848 | previewbox.removeClass('unloaded'); |
|
849 | 849 | }); |
|
850 | 850 | }); |
|
851 | 851 | $('#edit-btn').on('click', function(e) { |
|
852 | 852 | $('#preview-btn').show(); |
|
853 | 853 | $('#edit-btn').hide(); |
|
854 | 854 | $('#edit-container').show(); |
|
855 | 855 | $('#preview-container').hide(); |
|
856 | 856 | }); |
|
857 | 857 | |
|
858 | 858 | var formatChangeStatus = function(state, escapeMarkup) { |
|
859 | 859 | var originalOption = state.element; |
|
860 | 860 | return '<div class="flag_status ' + $(originalOption).data('status') + ' pull-left"></div>' + |
|
861 | 861 | '<span>' + escapeMarkup(state.text) + '</span>'; |
|
862 | 862 | }; |
|
863 | 863 | |
|
864 | 864 | var formatResult = function(result, container, query, escapeMarkup) { |
|
865 | 865 | return formatChangeStatus(result, escapeMarkup); |
|
866 | 866 | }; |
|
867 | 867 | |
|
868 | 868 | var formatSelection = function(data, container, escapeMarkup) { |
|
869 | 869 | return formatChangeStatus(data, escapeMarkup); |
|
870 | 870 | }; |
|
871 | 871 | |
|
872 | 872 | $('#change_status_general').select2({ |
|
873 | 873 | placeholder: "Status Review", |
|
874 | 874 | formatResult: formatResult, |
|
875 | 875 | formatSelection: formatSelection, |
|
876 | 876 | containerCssClass: "drop-menu status_box_menu", |
|
877 | 877 | dropdownCssClass: "drop-menu-dropdown", |
|
878 | 878 | dropdownAutoWidth: true, |
|
879 | 879 | minimumResultsForSearch: -1 |
|
880 | 880 | }); |
|
881 | 881 | }); |
|
882 | 882 | </script> |
|
883 | 883 | |
|
884 | 884 | |
|
885 | 885 | <script type="text/javascript"> |
|
886 | 886 | // TODO: switch this to pyroutes |
|
887 | 887 | AJAX_COMMENT_DELETE_URL = "/rhodecode-momentum/pull-request-comment/__COMMENT_ID__/delete"; |
|
888 | 888 | |
|
889 | 889 | $(function(){ |
|
890 | 890 | ReviewerAutoComplete('#user'); |
|
891 | 891 | |
|
892 | 892 | $('#open_edit_reviewers').on('click', function(e){ |
|
893 | 893 | $('#open_edit_reviewers').hide(); |
|
894 | 894 | $('#close_edit_reviewers').show(); |
|
895 | 895 | $('#add_reviewer_input').show(); |
|
896 | 896 | $('.reviewer_member_remove').css('visibility', 'visible'); |
|
897 | 897 | }); |
|
898 | 898 | |
|
899 | 899 | $('#close_edit_reviewers').on('click', function(e){ |
|
900 | 900 | $('#open_edit_reviewers').show(); |
|
901 | 901 | $('#close_edit_reviewers').hide(); |
|
902 | 902 | $('#add_reviewer_input').hide(); |
|
903 | 903 | $('.reviewer_member_remove').css('visibility', 'hidden'); |
|
904 | 904 | }); |
|
905 | 905 | |
|
906 | 906 | $('.show-inline-comments').on('change', function(e){ |
|
907 | 907 | var show = 'none'; |
|
908 | 908 | var target = e.currentTarget; |
|
909 | 909 | if(target.checked){ |
|
910 | 910 | show = '' |
|
911 | 911 | } |
|
912 | 912 | var boxid = $(target).attr('id_for'); |
|
913 | 913 | var comments = $('#{0} .inline-comments'.format(boxid)); |
|
914 | 914 | var fn_display = function(idx){ |
|
915 | 915 | $(this).css('display', show); |
|
916 | 916 | }; |
|
917 | 917 | $(comments).each(fn_display); |
|
918 | 918 | var btns = $('#{0} .inline-comments-button'.format(boxid)); |
|
919 | 919 | $(btns).each(fn_display); |
|
920 | 920 | }); |
|
921 | 921 | |
|
922 | 922 | var commentTotals = {}; |
|
923 | 923 | $.each(file_comments, function(i, comment) { |
|
924 | 924 | var path = $(comment).attr('path'); |
|
925 | 925 | var comms = $(comment).children().length; |
|
926 | 926 | if (path in commentTotals) { |
|
927 | 927 | commentTotals[path] += comms; |
|
928 | 928 | } else { |
|
929 | 929 | commentTotals[path] = comms; |
|
930 | 930 | } |
|
931 | 931 | }); |
|
932 | 932 | $.each(commentTotals, function(path, total) { |
|
933 | 933 | var elem = $('.comment-bubble[data-path="'+ path +'"]') |
|
934 | 934 | elem.css('visibility', 'visible'); |
|
935 | 935 | elem.html(elem.html() + ' ' + total ); |
|
936 | 936 | }); |
|
937 | 937 | |
|
938 | 938 | $('#merge_pull_request_form').submit(function() { |
|
939 | 939 | if (!$('#merge_pull_request').attr('disabled')) { |
|
940 | 940 | $('#merge_pull_request').attr('disabled', 'disabled'); |
|
941 | 941 | } |
|
942 | 942 | return true; |
|
943 | 943 | }); |
|
944 | 944 | |
|
945 | 945 | $('#update_pull_request').on('click', function(e){ |
|
946 | 946 | updateReviewers(undefined, "rhodecode-momentum", "720"); |
|
947 | 947 | }); |
|
948 | 948 | |
|
949 | 949 | $('#update_commits').on('click', function(e){ |
|
950 | 950 | updateCommits("rhodecode-momentum", "720"); |
|
951 | 951 | }); |
|
952 | 952 | |
|
953 | 953 | }) |
|
954 | 954 | </script> |
|
955 | 955 | |
|
956 | 956 | </div> |
|
957 | 957 | </div></div> |
|
958 | 958 | |
|
959 | 959 | </div> |
|
960 | 960 | |
|
961 | 961 | |
|
962 | 962 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now