##// END OF EJS Templates
templates: removed utf8 marker from debug templates
super-admin -
r5038:8d84b8df default
parent child Browse files
Show More
@@ -1,75 +1,74 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17
19 18 ${self.sidebar()}
20 19
21 20 <div class="main-content">
22 21
23 22 <h3>Alert Messages</h3>
24 23 <p>
25 24 Alert messages are produced using the custom Polymer element
26 25 <code>rhodecode-toast</code> which is passed a message and level.
27 26 </p>
28 27
29 28 <div class="bs-example">
30 29 <p> There are four types of alert levels:</p>
31 30 <div class="alert alert-success">
32 31 "success" is used when an action is completed as expected<br/>
33 32 ex. updated settings, deletion of a repo/user
34 33 </div>
35 34 <div class="alert alert-warning">
36 35 "warning" is for notification of impending issues<br/>
37 36 ex. a gist which was updated elsewhere during editing, disk out of space
38 37 </div>
39 38 <div class="alert alert-error">
40 39 "error" should be used for unexpected results and actions which
41 40 are not successful<br/>
42 41 ex. a form not submitted, repo creation failure
43 42 </div>
44 43 <div class="alert alert-info">
45 44 "info" is used for non-critical information<br/>
46 45 ex. notification of new messages, invitations to chat
47 46 </div>
48 47 </div>
49 48
50 49 <p><br/>
51 50 Whether singular or multiple, alerts are grouped into a dismissable
52 51 panel with a single "Close" button underneath.
53 52 </p>
54 53 <a class="btn btn-default" id="test-notification">Test Notification</a>
55 54
56 55 <script type="text/javascript">
57 56 $('#test-notification').on('click', function(e){
58 57 var levels = ['info', 'error', 'warning', 'success'];
59 58 var level = levels[Math.floor(Math.random()*levels.length)];
60 59 var payload = {
61 60 message: {
62 61 message: 'This is a test ' +level+ ' notification.',
63 62 level: level,
64 63 force: true
65 64 }
66 65 };
67 66 $.Topic('/notifications').publish(payload);
68 67 });
69 68 </script>
70 69
71 70 </div>
72 71 </div> <!-- .main-content -->
73 72 </div>
74 73 </div> <!-- .box -->
75 74 </%def>
@@ -1,197 +1,196 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Buttons</h2>
23 22
24 23 <p>
25 24 Form buttons in various sizes. Buttons are always capitalised.
26 25 Use the following classes:
27 26 </p>
28 27
29 28 <ul>
30 29 ## TODO: lisa: Are we actually using three sizes of buttons??
31 30 <li><code>.btn-lg</code> for large buttons</li>
32 31 <li><code>.btn-sm</code> for small buttons</li>
33 32 <li><code>.btn-xs</code> for xtra small buttons</li>
34 33 </ul>
35 34
36 35 <p>Note that <code>.btn-mini</code> is supported for legacy reasons.</p>
37 36
38 37 <div class="bs-example">
39 38 ## TODO: johbo: Should also work without the form element
40 39 <form method='post' action=''>
41 40 <div class='form'>
42 41
43 42 <div class="buttons">
44 43 <input type="submit" value="Save .btn-lg" id="example_save" class="btn btn-lg">
45 44 <input type="reset" value="Reset" id="example_reset" class="btn btn-lg">
46 45 <button class="btn btn-lg">Large</button>
47 46 <a class="btn btn-lg" href="#">A link as button</a>
48 47 </div>
49 48
50 49 <div class="buttons">
51 50 <input type="submit" value="Save" id="example_save" class="btn">
52 51 <input type="reset" value="Reset" id="example_reset" class="btn">
53 52 <button class="btn">Normal</button>
54 53 <button class="btn btn-danger">Normal</button>
55 54 <a class="btn" href="#">A link as button</a>
56 55 </div>
57 56
58 57 <div class="buttons">
59 58 <input type="submit" value="Save .btn-sm" id="example_save" class="btn btn-sm">
60 59 <input type="reset" value="Reset" id="example_reset" class="btn btn-sm">
61 60 <button class="btn btn-sm">Small</button>
62 61 <button class="btn btn-sm btn-danger">Small</button>
63 62 <a class="btn btn-sm" href="#">A link as button</a>
64 63 </div>
65 64
66 65 <div class="buttons">
67 66 <input type="submit" value="Save .btn-xs" id="example_save" class="btn btn-xs">
68 67 <input type="reset" value="Reset" id="example_reset" class="btn btn-xs">
69 68 <button class="btn btn-xs">XSmall</button>
70 69 <button class="btn btn-xs btn-danger">XSmall</button>
71 70 <a class="btn btn-xs" href="#">A link as button</a>
72 71 </div>
73 72
74 73 <div class="buttons">
75 74 <input type="submit" value="Save .btn-mini" id="example_save" class="btn btn-mini">
76 75 <input type="reset" value="Reset" id="example_reset" class="btn btn-mini">
77 76 </div>
78 77
79 78 <div class="buttons">
80 79 Buttons of style <code>.btn-link</code>:
81 80 <input type="reset" value="Reset" id="example_reset" class="btn btn-link">
82 81 <button class="btn btn-link">Edit</button>
83 82 <button class="btn btn-danger btn-link">Delete</button>
84 83 </div>
85 84 </div>
86 85 </form>
87 86 </div>
88 87
89 88
90 89 <h2>Buttons as Links</h2>
91 90 <p>
92 91 Most of our Edit/Delete buttons come in the following form.
93 92 Inside of a table, these are "action buttons", and while an
94 93 Edit <em>link</em> is a typical blue link, a Delete <em>button</em>
95 94 is red as per the 'btn-danger' styling and use <code>.btn-link</code>.
96 95 </p>
97 96 <p>
98 97 We use "Delete" when the thing being deleted cannot be undone;
99 98 "Reset", and "Revoke" are used where applicable.
100 99 </p>
101 100 <p>
102 101 Note: Should there be a need for a change in the wording, be
103 102 aware that corresponding documentation may also need updating.
104 103 </p>
105 104 <div class="bs-example">
106 105 <table class="rctable edit_fields">
107 106 <tr><td></td><td></td></tr>
108 107 <tr>
109 108 <td></td>
110 109 <td class=" td-action">
111 110 <div class="grid_edit">
112 111 <a href="/_admin/repo_groups/breads/edit" title="Edit">Edit</a>
113 112 </div>
114 113 <div class="grid_delete">
115 114 <form action="/_admin/repo_groups/breads" method="post"><div style="display:none">
116 115 <input name="_method" type="hidden" value="delete">
117 116 </div>
118 117 <div style="display: none;"><input id="csrf_token" name="csrf_token" type="hidden" value="03d6cc48726b885039b2f7675e85596b7dae6ecf"></div>
119 118 <button class="btn btn-link btn-danger" type="submit" onclick="return confirm('" +_ungettext('confirm="" to="" delete="" this="" group:="" %s="" with="" repository','confirm="" repositories',gr_count)="" %="" (repo_group_name,="" gr_count)+"');"="">
120 119 Delete
121 120 </button>
122 121 </form>
123 122 </div>
124 123 </td>
125 124 </tr>
126 125 </table>
127 126 <div class="highlight-html"><xmp>
128 127 <a href="some-link" title="${_('Edit')}">${_('Edit')}</a>
129 128
130 129 <button class="btn btn-link btn-danger" type="submit"
131 130 onclick="return confirm('${_('Confirm to remove this field: Field')}');">
132 131 ${_('Delete')}
133 132 </button>
134 133 </xmp></div>
135 134 </div>
136 135
137 136
138 137 <h2>Buttons disabled</h2>
139 138
140 139 <p>Note that our application still uses the class <code>.disabled</code>
141 140 in some places. Interim we support both but prefer to use the
142 141 attribute <code>disabled</code> where possible.</p>
143 142
144 143 <div class="bs-example">
145 144 ## TODO: johbo: Should also work without the form element
146 145 <form method='post' action=''>
147 146 <div class='form'>
148 147
149 148 <div class="buttons">
150 149 <input type="submit" value="Save .btn-lg" id="example_save" class="btn btn-lg" disabled>
151 150 <input type="reset" value="Reset" id="example_reset" class="btn btn-lg" disabled>
152 151 <button class="btn btn-lg" disabled>Large</button>
153 152 </div>
154 153
155 154 <div class="buttons">
156 155 <input type="submit" value="Save" id="example_save" class="btn" disabled>
157 156 <input type="reset" value="Reset" id="example_reset" class="btn" disabled>
158 157 <button class="btn" disabled>Normal</button>
159 158 <button class="btn btn-danger" disabled>Normal</button>
160 159 </div>
161 160
162 161 <div class="buttons">
163 162 <input type="submit" value="Save .btn-sm" id="example_save" class="btn btn-sm" disabled>
164 163 <input type="reset" value="Reset" id="example_reset" class="btn btn-sm" disabled>
165 164 <button class="btn btn-sm" disabled>Small</button>
166 165 <button class="btn btn-sm btn-danger" disabled>Small</button>
167 166 </div>
168 167
169 168 <div class="buttons">
170 169 <input type="submit" value="Save .btn-xs" id="example_save" class="btn btn-xs" disabled>
171 170 <input type="reset" value="Reset" id="example_reset" class="btn btn-xs" disabled>
172 171 <button class="btn btn-xs" disabled>XSmall</button>
173 172 <button class="btn btn-xs btn-danger" disabled>XSmall</button>
174 173 </div>
175 174
176 175 <div class="buttons">
177 176 <input type="submit" value="Save .btn-mini" id="example_save" class="btn btn-mini" disabled>
178 177 <input type="reset" value="Reset" id="example_reset" class="btn btn-mini" disabled>
179 178 </div>
180 179
181 180 <div class="buttons">
182 181 Buttons of style <code>.btn-link</code>:
183 182 <input type="reset" value="Reset" id="example_reset" class="btn btn-link" disabled>
184 183 <button class="btn btn-link" disabled>Edit</button>
185 184 <button class="btn btn-link btn-danger" disabled>Delete</button>
186 185 </div>
187 186
188 187 </div>
189 188 </form>
190 189 </div>
191 190
192 191
193 192
194 193 </div>
195 194 </div> <!-- .main-content -->
196 195 </div> <!-- .box -->
197 196 </%def>
@@ -1,1160 +1,1159 b''
1 ## -*- coding: utf-8 -*-
2 1 <%namespace name="base" file="/base/base.mako"/>
3 2 <%inherit file="/debug_style/index.html"/>
4 3
5 4 <%def name="breadcrumbs_links()">
6 5 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
7 6 &raquo;
8 7 ${c.active}
9 8 </%def>
10 9
11 10 <%def name="js_extra()">
12 11 </%def>
13 12
14 13 <%def name="css_extra()">
15 14 </%def>
16 15
17 16
18 17 <%def name="real_main()">
19 18 <div class="box">
20 19 <div class="title">
21 20 ${self.breadcrumbs()}
22 21 </div>
23 22
24 23 ##main
25 24 <div class='sidebar-col-wrapper'>
26 25 ${self.sidebar()}
27 26
28 27 <div class="main-content">
29 28
30 29
31 30
32 31 <h2>Code Blocks</h2>
33 32
34 33 <dl class="dl-horizontal">
35 34 <dt><code>.codeblock</code></dt>
36 35 <dd>Used as a wrapping element around <code>.code-header</code> and
37 36 <code>.code-body</code>. Used to show the content of a file or a
38 37 Gist.</dd>
39 38
40 39 <dt><code>.diffblock</code></dt>
41 40 <dd>Used as a wrapping element to show a diff in a Commit or Pull
42 41 Request page. Contains usually <code>.code-header</code>,
43 42 <code>.code-body</code> and in the edit case a <code>.message</code>.
44 43 </dd>
45 44 </dl>
46 45
47 46
48 47 <p>Code Blocks are used in the following areas:</p>
49 48
50 49 <ul>
51 50 <li>Commit: Showing the Diff (still called Changeset in a few
52 51 places).</li>
53 52 <li>File: Display a file, annotations, and edit a file.</li>
54 53 <li>Gist: Show the Gist and edit it.</li>
55 54 <li>Pull Request: Display the Diff of a Pull Request.</li>
56 55 </ul>
57 56
58 57
59 58
60 59 <!--
61 60 Compare Commits
62 61 -->
63 62 <h2>Compare Commits</h2>
64 63
65 64 <div id="c-e589e34d6be8-5ab783e6d81b" class="diffblock margined comm">
66 65 <div class="code-header">
67 66 <div title="Go back to changed files overview">
68 67 <a href="#changes_box">
69 68 <i class="icon-circle-arrow-up"></i>
70 69 </a>
71 70 </div>
72 71 <div class="changeset_header">
73 72 <div class="changeset_file">
74 73 <i class="icon-file"></i>
75 74 <a href="/example/files/e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d/rhodecode/public/css/code-block.less">rhodecode/public/css/code-block.less</a>
76 75 </div>
77 76 <div class="diff-actions">
78 77 <a href="/example/diff/rhodecode/public/css/code-block.less?fulldiff=1&amp;diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&amp;diff=diff&amp;diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full diff for this file">
79 78 <img class="icon" src="/images/icons/page_white_go.png">
80 79 </a>
81 80 <a href="/example/diff-2way/rhodecode/public/css/code-block.less?fulldiff=1&amp;diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&amp;diff=diff&amp;diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full side-by-side diff for this file">
82 81 <img class="icon" src="/images/icons/application_double.png">
83 82 </a>
84 83 <a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&amp;diff=raw&amp;diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Raw diff" tt_title="Raw diff">
85 84 <img class="icon" src="/images/icons/page_white.png">
86 85 </a>
87 86 <a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&amp;diff=download&amp;diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Download diff">
88 87 <img class="icon" src="/images/icons/page_save.png">
89 88 </a>
90 89 <a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=WS%3A1&amp;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 90 <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 91 </div>
93 92 <span>
94 93 <label>
95 94 Show inline comments
96 95 <input checked="checked" class="show-inline-comments" id="" id_for="c-e589e34d6be8-5ab783e6d81b" name="" type="checkbox" value="1">
97 96 </label>
98 97 </span>
99 98 </div>
100 99 </div>
101 100 <div class="code-body">
102 101 <div class="full_f_path" path="rhodecode/public/css/code-block.less"></div>
103 102 <table class="code-difftable">
104 103 <tbody><tr class="line context">
105 104 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
106 105 <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
107 106 <td class="code no-comment">
108 107 <pre>@@ -391,7 +391,7 @@
109 108 </pre>
110 109 </td>
111 110 </tr>
112 111 <tr class="line unmod">
113 112 <td id="rhodecodepubliccsscode-blockless_o391" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o391">391</a></td>
114 113 <td id="rhodecodepubliccsscode-blockless_n391" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n391">391</a></td>
115 114 <td class="code no-comment">
116 115 <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 116 </pre>
118 117 </td>
119 118 </tr>
120 119 <tr class="line unmod">
121 120 <td id="rhodecodepubliccsscode-blockless_o392" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o392">392</a></td>
122 121 <td id="rhodecodepubliccsscode-blockless_n392" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n392">392</a></td>
123 122 <td class="code no-comment">
124 123 <pre></pre>
125 124 </td>
126 125 </tr>
127 126 <tr class="line unmod">
128 127 <td id="rhodecodepubliccsscode-blockless_o393" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o393">393</a></td>
129 128 <td id="rhodecodepubliccsscode-blockless_n393" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n393">393</a></td>
130 129 <td class="code no-comment">
131 130 <pre>.code-body.textarea.editor,
132 131 </pre>
133 132 </td>
134 133 </tr>
135 134 <tr class="line del">
136 135 <td id="rhodecodepubliccsscode-blockless_o394" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o394">394</a></td>
137 136 <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n"></a></td>
138 137 <td class="code no-comment">
139 138 <pre>div.code-body{
140 139 </pre>
141 140 </td>
142 141 </tr>
143 142 <tr class="line add">
144 143 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
145 144 <td id="rhodecodepubliccsscode-blockless_n394" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n394">394</a></td>
146 145 <td class="code no-comment">
147 146 <pre>div.code-body<ins> </ins>{
148 147 </pre>
149 148 </td>
150 149 </tr>
151 150 <tr class="line unmod">
152 151 <td id="rhodecodepubliccsscode-blockless_o395" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o395">395</a></td>
153 152 <td id="rhodecodepubliccsscode-blockless_n395" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n395">395</a></td>
154 153 <td class="code no-comment">
155 154 <pre> float: left;
156 155 </pre>
157 156 </td>
158 157 </tr>
159 158 <tr class="line unmod">
160 159 <td id="rhodecodepubliccsscode-blockless_o396" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o396">396</a></td>
161 160 <td id="rhodecodepubliccsscode-blockless_n396" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n396">396</a></td>
162 161 <td class="code no-comment">
163 162 <pre> position: relative;
164 163 </pre>
165 164 </td>
166 165 </tr>
167 166 <tr class="line unmod">
168 167 <td id="rhodecodepubliccsscode-blockless_o397" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o397">397</a></td>
169 168 <td id="rhodecodepubliccsscode-blockless_n397" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n397">397</a></td>
170 169 <td class="code no-comment">
171 170 <pre> max-width: none;
172 171 </pre>
173 172 </td>
174 173 </tr>
175 174 <tr class="line context">
176 175 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
177 176 <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
178 177 <td class="code no-comment">
179 178 <pre>@@ -399,3 +399,6 @@
180 179 </pre>
181 180 </td>
182 181 </tr>
183 182 <tr class="line unmod">
184 183 <td id="rhodecodepubliccsscode-blockless_o399" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o399">399</a></td>
185 184 <td id="rhodecodepubliccsscode-blockless_n399" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n399">399</a></td>
186 185 <td class="code no-comment">
187 186 <pre> box-sizing: border-box;
188 187 </pre>
189 188 </td>
190 189 </tr>
191 190 <tr class="line unmod">
192 191 <td id="rhodecodepubliccsscode-blockless_o400" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o400">400</a></td>
193 192 <td id="rhodecodepubliccsscode-blockless_n400" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n400">400</a></td>
194 193 <td class="code no-comment">
195 194 <pre>}
196 195 </pre>
197 196 </td>
198 197 </tr>
199 198 <tr class="line unmod">
200 199 <td id="rhodecodepubliccsscode-blockless_o401" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o401">401</a></td>
201 200 <td id="rhodecodepubliccsscode-blockless_n401" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n401">401</a></td>
202 201 <td class="code no-comment">
203 202 <pre></pre>
204 203 </td>
205 204 </tr>
206 205 <tr class="line add">
207 206 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
208 207 <td id="rhodecodepubliccsscode-blockless_n402" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n402">402</a></td>
209 208 <td class="code no-comment">
210 209 <pre>.code-body td{
211 210 </pre>
212 211 </td>
213 212 </tr>
214 213 <tr class="line add">
215 214 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
216 215 <td id="rhodecodepubliccsscode-blockless_n403" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n403">403</a></td>
217 216 <td class="code no-comment">
218 217 <pre> line-height: 1.2em;
219 218 </pre>
220 219 </td>
221 220 </tr>
222 221 <tr class="line add">
223 222 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
224 223 <td id="rhodecodepubliccsscode-blockless_n404" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n404">404</a></td>
225 224 <td class="code no-comment">
226 225 <pre>}
227 226 </pre>
228 227 </td>
229 228 </tr>
230 229 <tr class="line context">
231 230 <td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
232 231 <td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
233 232 <td class="code no-comment">
234 233 <pre> No newline at end of file
235 234 </pre>
236 235 </td>
237 236 </tr>
238 237 </tbody></table>
239 238 </div>
240 239 </div>
241 240
242 241
243 242
244 243
245 244
246 245
247 246 <!--
248 247 Pull Request
249 248 -->
250 249
251 250 <h2>Pull Request</h2>
252 251
253 252 <div class="cs_files">
254 253 <table class="compare_view_files">
255 254
256 255 <tbody><tr class="cs_M collapse_file" fid="c--5f1d017cf13b">
257 256 <td class="cs_icon_td">
258 257 <span class="collapse_file_icon" fid="c--5f1d017cf13b"></span>
259 258 </td>
260 259 <td class="cs_icon_td">
261 260 <div class="flag_status not_reviewed hidden"></div>
262 261 </td>
263 262 <td id="a_c--5f1d017cf13b">
264 263 <a class="compare_view_filepath" href="#a_c--5f1d017cf13b">
265 264 rhodecode/public/css/main.less
266 265 </a>
267 266 <span id="diff_c--5f1d017cf13b" class="diff_links" style="">
268 267 <a href="/example/diff/rhodecode/public/css/main.less?fulldiff=1&amp;diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&amp;diff=diff&amp;diff2=27eb56cf467ca849112536d62decb2ed020b3ebc">
269 268 Unified Diff
270 269 </a>
271 270 |
272 271 <a href="/example/diff-2way/rhodecode/public/css/main.less?fulldiff=1&amp;diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&amp;diff=diff&amp;diff2=27eb56cf467ca849112536d62decb2ed020b3ebc">
273 272 Side-by-side Diff
274 273 </a>
275 274 </span>
276 275 </td>
277 276 <td>
278 277 <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 278 <div class="comment-bubble pull-right" data-path="rhodecode/public/css/main.less">
280 279 <i class="icon-comment"></i>
281 280 </div>
282 281 </td>
283 282 </tr>
284 283 <tr id="tr_c--5f1d017cf13b">
285 284 <td></td>
286 285 <td></td>
287 286 <td class="injected_diff" colspan="2">
288 287
289 288 <div class="diff-container" id="diff-container-140360026534904">
290 289 <div id="c--5f1d017cf13b_target"></div>
291 290 <div id="c--5f1d017cf13b" class="diffblock margined comm">
292 291 <div class="code-body">
293 292 <div class="full_f_path" path="rhodecode/public/css/main.less" style="display: none;"></div>
294 293 <table class="code-difftable">
295 294 <tbody><tr class="line context">
296 295 <td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td>
297 296 <td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td>
298 297 <td class="code ">
299 298 <pre>@@ -2110,7 +2110,6 @@
300 299 </pre>
301 300 </td>
302 301 </tr>
303 302 <tr class="line unmod">
304 303 <td id="rhodecodepubliccssmainless_o2110" class="lineno old"><a href="#rhodecodepubliccssmainless_o2110">2110</a></td>
305 304 <td id="rhodecodepubliccssmainless_n2110" class="lineno new"><a href="#rhodecodepubliccssmainless_n2110">2110</a></td>
306 305 <td class="code ">
307 306 <pre><span class="tab-escape"> </span>width: auto !important;
308 307 </pre>
309 308 </td>
310 309 </tr>
311 310 <tr class="line unmod">
312 311 <td id="rhodecodepubliccssmainless_o2111" class="lineno old"><a href="#rhodecodepubliccssmainless_o2111">2111</a></td>
313 312 <td id="rhodecodepubliccssmainless_n2111" class="lineno new"><a href="#rhodecodepubliccssmainless_n2111">2111</a></td>
314 313 <td class="code ">
315 314 <pre><span class="tab-escape"> </span>min-width: 160px;
316 315 </pre>
317 316 </td>
318 317 </tr>
319 318 <tr class="line unmod">
320 319 <td id="rhodecodepubliccssmainless_o2112" class="lineno old"><a href="#rhodecodepubliccssmainless_o2112">2112</a></td>
321 320 <td id="rhodecodepubliccssmainless_n2112" class="lineno new"><a href="#rhodecodepubliccssmainless_n2112">2112</a></td>
322 321 <td class="code ">
323 322 <pre><span class="tab-escape"> </span>margin: @padding @padding @padding 0;
324 323 </pre>
325 324 </td>
326 325 </tr>
327 326 <tr class="line del">
328 327 <td id="rhodecodepubliccssmainless_o2113" class="lineno old"><a href="#rhodecodepubliccssmainless_o2113">2113</a></td>
329 328 <td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td>
330 329 <td class="code ">
331 330 <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 331 </pre>
333 332 </td>
334 333 </tr>
335 334 <tr class="line unmod">
336 335 <td id="rhodecodepubliccssmainless_o2114" class="lineno old"><a href="#rhodecodepubliccssmainless_o2114">2114</a></td>
337 336 <td id="rhodecodepubliccssmainless_n2113" class="lineno new"><a href="#rhodecodepubliccssmainless_n2113">2113</a></td>
338 337 <td class="code ">
339 338 <pre> line-height: 1em;
340 339 </pre>
341 340 </td>
342 341 </tr>
343 342 <tr class="line unmod">
344 343 <td id="rhodecodepubliccssmainless_o2115" class="lineno old"><a href="#rhodecodepubliccssmainless_o2115">2115</a></td>
345 344 <td id="rhodecodepubliccssmainless_n2114" class="lineno new"><a href="#rhodecodepubliccssmainless_n2114">2114</a></td>
346 345 <td class="code ">
347 346 <pre><span class="tab-escape"> </span>z-index: 100;//js sets the menu below it to 9999
348 347 </pre>
349 348 </td>
350 349 </tr>
351 350 <tr class="line unmod">
352 351 <td id="rhodecodepubliccssmainless_o2116" class="lineno old"><a href="#rhodecodepubliccssmainless_o2116">2116</a></td>
353 352 <td id="rhodecodepubliccssmainless_n2115" class="lineno new"><a href="#rhodecodepubliccssmainless_n2115">2115</a></td>
354 353 <td class="code ">
355 354 <pre><span class="tab-escape"> </span>background-color: white;
356 355 </pre>
357 356 </td>
358 357 </tr>
359 358 <tr class="line context">
360 359 <td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td>
361 360 <td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td>
362 361 <td class="code ">
363 362 <pre>@@ -2118,7 +2117,7 @@
364 363 </pre>
365 364 </td>
366 365 </tr>
367 366 <tr class="line unmod">
368 367 <td id="rhodecodepubliccssmainless_o2118" class="lineno old"><a href="#rhodecodepubliccssmainless_o2118">2118</a></td>
369 368 <td id="rhodecodepubliccssmainless_n2117" class="lineno new"><a href="#rhodecodepubliccssmainless_n2117">2117</a></td>
370 369 <td class="code ">
371 370 <pre></pre>
372 371 </td>
373 372 </tr>
374 373 <tr class="line unmod">
375 374 <td id="rhodecodepubliccssmainless_o2119" class="lineno old"><a href="#rhodecodepubliccssmainless_o2119">2119</a></td>
376 375 <td id="rhodecodepubliccssmainless_n2118" class="lineno new"><a href="#rhodecodepubliccssmainless_n2118">2118</a></td>
377 376 <td class="code ">
378 377 <pre><span class="tab-escape"> </span>a {
379 378 </pre>
380 379 </td>
381 380 </tr>
382 381 <tr class="line unmod">
383 382 <td id="rhodecodepubliccssmainless_o2120" class="lineno old"><a href="#rhodecodepubliccssmainless_o2120">2120</a></td>
384 383 <td id="rhodecodepubliccssmainless_n2119" class="lineno new"><a href="#rhodecodepubliccssmainless_n2119">2119</a></td>
385 384 <td class="code ">
386 385 <pre><span class="tab-escape"> </span><span class="tab-escape"> </span>display:block;
387 386 </pre>
388 387 </td>
389 388 </tr>
390 389 <tr class="line del">
391 390 <td id="rhodecodepubliccssmainless_o2121" class="lineno old"><a href="#rhodecodepubliccssmainless_o2121">2121</a></td>
392 391 <td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td>
393 392 <td class="code ">
394 393 <pre><span class="tab-escape"> </span><del><span< del=""> <del>class=</del><del>"tab-escape"</del><del>&gt; </del>padding: <del>0</del>;
395 394 </span<></del></pre>
396 395 </td>
397 396 </tr>
398 397 <tr class="line add">
399 398 <td class="lineno old"><a href="#rhodecodepubliccssmainless_o"></a></td>
400 399 <td id="rhodecodepubliccssmainless_n2120" class="lineno new"><a href="#rhodecodepubliccssmainless_n2120">2120</a></td>
401 400 <td class="code ">
402 401 <pre><span class="tab-escape"> </span><ins> </ins> <ins> </ins><ins> </ins>padding: <ins>.9em</ins>;
403 402 </pre>
404 403 </td>
405 404 </tr>
406 405 <tr class="line unmod">
407 406 <td id="rhodecodepubliccssmainless_o2122" class="lineno old"><a href="#rhodecodepubliccssmainless_o2122">2122</a></td>
408 407 <td id="rhodecodepubliccssmainless_n2121" class="lineno new"><a href="#rhodecodepubliccssmainless_n2121">2121</a></td>
409 408 <td class="code ">
410 409 <pre></pre>
411 410 </td>
412 411 </tr>
413 412 <tr class="line unmod">
414 413 <td id="rhodecodepubliccssmainless_o2123" class="lineno old"><a href="#rhodecodepubliccssmainless_o2123">2123</a></td>
415 414 <td id="rhodecodepubliccssmainless_n2122" class="lineno new"><a href="#rhodecodepubliccssmainless_n2122">2122</a></td>
416 415 <td class="code ">
417 416 <pre><span class="tab-escape"> </span><span class="tab-escape"> </span>&amp;:after {
418 417 </pre>
419 418 </td>
420 419 </tr>
421 420 <tr class="line unmod">
422 421 <td id="rhodecodepubliccssmainless_o2124" class="lineno old"><a href="#rhodecodepubliccssmainless_o2124">2124</a></td>
423 422 <td id="rhodecodepubliccssmainless_n2123" class="lineno new"><a href="#rhodecodepubliccssmainless_n2123">2123</a></td>
424 423 <td class="code ">
425 424 <pre><span class="tab-escape"> </span><span class="tab-escape"> </span><span class="tab-escape"> </span>content: "\00A0\25BE";
426 425 </pre>
427 426 </td>
428 427 </tr>
429 428 </tbody></table>
430 429 </div>
431 430 </div>
432 431 </div>
433 432
434 433 </td>
435 434 </tr>
436 435 </tbody></table>
437 436 </div>
438 437
439 438
440 439
441 440
442 441
443 442
444 443
445 444
446 445
447 446 <!--
448 447 File View
449 448 -->
450 449
451 450 ##TODO: lisa: I believe this needs to be updated as the layout has changed.
452 451 <h2>File View</h2>
453 452
454 453 <div class="codeblock">
455 454 <div class="code-header">
456 455 <div class="stats">
457 456 <div class="img">
458 457 <i class="icon-file"></i>
459 458 <span class="revision_id item"><a href="/example/changeset/fc252256eb0fcb4f2613e66f0126ea27967ae28c">r5487:fc252256eb0f</a></span>
460 459 <span>1.2 KiB</span>
461 460 <span class="item last">text/x-python</span>
462 461 <div class="buttons">
463 462
464 463 <a id="file_history_overview" class="btn btn-mini" href="#">
465 464 <i class="icon-time"></i> history
466 465 </a>
467 466 <a id="file_history_overview_full" class="btn btn-mini" style="display: none" href="/example/changelog/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">
468 467 <i class="icon-time"></i> show full history
469 468 </a>
470 469 <a class="btn btn-mini" href="/example/annotate/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">annotation</a>
471 470 <a class="btn btn-mini" href="/example/raw/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">raw</a>
472 471 <a class="btn btn-mini" href="/example/rawfile/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">
473 472 download
474 473 </a>
475 474
476 475 <a class="btn btn-mini disabled tooltip" href="#" title="Editing files allowed only when on branch head commit">edit</a>
477 476 <a class="btn btn-mini btn-danger disabled tooltip" href="#" title="Deleting files allowed only when on branch head commit">delete</a>
478 477 </div>
479 478 </div>
480 479 </div>
481 480 <div id="file_history_container"></div>
482 481 <div class="author">
483 482 <div class="gravatar">
484 483 <img alt="gravatar" src="https://secure.gravatar.com/avatar/99e27b99c64003ca8c9875c9e3843495?d=identicon&amp;s=32" height="16" width="16">
485 484 </div>
486 485 <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 486 </div>
488 487 <div id="trimmed_message_box" class="commit">License changes</div>
489 488 <div id="message_expand" style="display: none;">
490 489 <i class="icon-resize-vertical"></i>
491 490 expand
492 491 <i class="icon-resize-vertical"></i>
493 492 </div>
494 493 </div>
495 494 <div class="code-body">
496 495 <table class="code-highlighttable"><tbody><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L1"> 1</a>
497 496 <a href="#L2"> 2</a>
498 497 <a href="#L3"> 3</a>
499 498 <a href="#L4"> 4</a>
500 499 <a href="#L5"> 5</a>
501 500 <a href="#L6"> 6</a>
502 501 <a href="#L7"> 7</a>
503 502 <a href="#L8"> 8</a>
504 503 <a href="#L9"> 9</a>
505 504 <a href="#L10">10</a>
506 505 <a href="#L11">11</a>
507 506 <a href="#L12">12</a>
508 507 <a href="#L13">13</a>
509 508 <a href="#L14">14</a>
510 509 <a href="#L15">15</a>
511 510 <a href="#L16">16</a>
512 511 <a href="#L17">17</a>
513 512 <a href="#L18">18</a>
514 513 <a href="#L19">19</a>
515 514 <a href="#L20">20</a>
516 515 <a href="#L21">21</a>
517 516 <a href="#L22">22</a>
518 517 <a href="#L23">23</a>
519 518 <a href="#L24">24</a>
520 519 <a href="#L25">25</a>
521 520 <a href="#L26">26</a>
522 521 <a href="#L27">27</a>
523 522 <a href="#L28">28</a>
524 523 <a href="#L29">29</a>
525 524 <a href="#L30">30</a>
526 525 <a href="#L31">31</a>
527 526 <a href="#L32">32</a>
528 527 <a href="#L33">33</a>
529 528 <a href="#L34">34</a>
530 529 <a href="#L35">35</a>
531 530 <a href="#L36">36</a>
532 531 <a href="#L37">37</a>
533 532 <a href="#L38">38</a>
534 533 <a href="#L39">39</a>
535 534 <a href="#L40">40</a>
536 535 <a href="#L41">41</a>
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>
536 <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"></span>
538 537 </div><div id="L2"><a name="L-2"></a>
539 538 </div><div id="L3"><a name="L-3"></a><span class="c"># Published under Business Source License.</span>
540 539 </div><div id="L4"><a name="L-4"></a><span class="c"># Read the full license text at https://rhodecode.com/licenses.</span>
541 540 </div><div id="L5"><a name="L-5"></a><span class="sd">"""</span>
542 541 </div><div id="L6"><a name="L-6"></a><span class="sd">rhodecode.websetup</span>
543 542 </div><div id="L7"><a name="L-7"></a><span class="sd">~~~~~~~~~~~~~~~~~~</span>
544 543 </div><div id="L8"><a name="L-8"></a>
545 544 </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 545 </div><div id="L10"><a name="L-10"></a>
547 546 </div><div id="L11"><a name="L-11"></a><span class="sd">:created_on: Dec 11, 2010</span>
548 547 </div><div id="L12"><a name="L-12"></a><span class="sd">:author: marcink</span>
549 548 </div><div id="L13"><a name="L-13"></a><span class="sd">:copyright: (c) 2013-2015 RhodeCode GmbH.</span>
550 549 </div><div id="L14"><a name="L-14"></a><span class="sd">:license: Business Source License, see LICENSE for more details.</span>
551 550 </div><div id="L15"><a name="L-15"></a><span class="sd">"""</span>
552 551 </div><div id="L16"><a name="L-16"></a>
553 552 </div><div id="L17"><a name="L-17"></a><span class="kn">import</span> <span class="nn">logging</span>
554 553 </div><div id="L18"><a name="L-18"></a>
555 554 </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 555 </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 556 </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 557 </div><div id="L22"><a name="L-22"></a>
559 558 </div><div id="L23"><a name="L-23"></a>
560 559 </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 560 </div><div id="L25"><a name="L-25"></a>
562 561 </div><div id="L26"><a name="L-26"></a>
563 562 </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 563 </div><div id="L28"><a name="L-28"></a> <span class="sd">"""Place any commands to setup rhodecode here"""</span>
565 564 </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 565 </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 566 </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 567 </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 568 </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 569 </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 570 </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 571 </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 572 </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 573 </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 574 </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 575 </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 576 </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 577 </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 578 </div></pre></div>
580 579 </td></tr></tbody></table>
581 580 </div>
582 581 </div>
583 582
584 583
585 584
586 585
587 586
588 587
589 588
590 589
591 590
592 591 <!--
593 592 Gist Edit
594 593 -->
595 594
596 595
597 596 <h2>Gist Edit</h2>
598 597
599 598 <div class="codeblock">
600 599 <div class="code-header">
601 600 <div class="form">
602 601 <div class="fields">
603 602 <input id="filename" name="filename" placeholder="name this file..." size="30" type="text">
604 603 <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 604 <option selected="selected" value="plain">plain</option>
606 605 <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 606 <script>
608 607 $(document).ready(function() {
609 608 $('#mimetype').select2({
610 609 containerCssClass: 'drop-menu',
611 610 dropdownCssClass: 'drop-menu-dropdown',
612 611 dropdownAutoWidth: true
613 612 });
614 613 });
615 614 </script>
616 615
617 616 </div>
618 617 </div>
619 618 </div>
620 619 <div id="editor_container">
621 620 <div id="editor_pre"></div>
622 621 <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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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">&lt;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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">&gt;=</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>&nbsp;</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>&nbsp;</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;">&nbsp;</div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;">&nbsp;</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 622 </div>
624 623 </div>
625 624
626 625
627 626
628 627
629 628
630 629 <!--
631 630 File Edit
632 631 -->
633 632
634 633 <h2>File Edit</h2>
635 634
636 635 <div class="codeblock">
637 636 <div class="code-header">
638 637 <div class="stats">
639 638 <i class="icon-file"></i>
640 639 <span class="item"><a href="/example/changeset/80ead1899f50a894889e19ffeb49c9cebf5bf045">r8248:80ead1899f50</a></span>
641 640 <span class="item">1.2 KiB</span>
642 641 <span class="item last">text/x-python</span>
643 642 <div class="buttons">
644 643 <a class="btn btn-mini" href="/example/commits/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">
645 644 <i class="icon-time"></i> history
646 645 </a>
647 646
648 647 <a class="btn btn-mini" href="/example/files/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">source</a>
649 648 <a class="btn btn-mini" href="/example/raw/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">raw</a>
650 649 <a class="btn btn-mini" href="/example/rawfile/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">
651 650 download
652 651 </a>
653 652 </div>
654 653 </div>
655 654 <div class="form">
656 655 <label for="set_mode">Editing file:</label>
657 656 rhodecode /
658 657 <input type="text" name="filename" value="websetup.py">
659 658
660 659 <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 660 <option selected="selected" value="plain">plain</option>
662 661 <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 662 <script>
664 663 $(document).ready(function() {
665 664 $('#set_mode').select2({
666 665 containerCssClass: 'drop-menu',
667 666 dropdownCssClass: 'drop-menu-dropdown',
668 667 dropdownAutoWidth: true
669 668 });
670 669 });
671 670 </script>
672 671
673 672 <label for="line_wrap">line wraps</label>
674 673 <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 674 <option value="on">on</option>
676 675 <option selected="selected" value="off">off</option>
677 676 </select>
678 677 <script>
679 678 $(document).ready(function() {
680 679 $('#line_wrap').select2({
681 680 containerCssClass: 'drop-menu',
682 681 dropdownCssClass: 'drop-menu-dropdown',
683 682 dropdownAutoWidth: true,
684 683 minimumResultsForSearch: -1
685 684
686 685 });
687 686 });
688 687 </script>
689 688
690 689 <div id="render_preview" class="btn btn-mini hidden disabled">Preview</div>
691 690 </div>
692 691 </div>
693 692 <div id="editor_container">
694 693 <pre id="editor_pre"></pre>
695 <textarea id="editor" name="content" style="display: none;"># -*- coding: utf-8 -*-
694 <textarea id="editor" name="content" style="display: none;">
696 695
697 696 # Published under Commercial License.
698 697 # Read the full license text at https://rhodecode.com/licenses.
699 698 """
700 699 rhodecode.websetup
701 700 ~~~~~~~~~~~~~~~~~~
702 701
703 702 Weboperations and setup for rhodecode
704 703
705 704 :created_on: Dec 11, 2010
706 705 :author: marcink
707 706 :copyright: (c) 2013-2015 RhodeCode GmbH.
708 707 :license: Commercial License, see LICENSE for more details.
709 708 """
710 709
711 710 import logging
712 711
713 712 from rhodecode.config.environment import load_environment
714 713 from rhodecode.lib.db_manage import DbManage
715 714 from rhodecode.model.meta import Session
716 715
717 716
718 717 log = logging.getLogger(__name__)
719 718
720 719
721 720 def setup_app(command, conf, vars):
722 721 """Place any commands to setup rhodecode here"""
723 722 dbconf = conf['sqlalchemy.db1.url']
724 723 dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
725 724 tests=False, cli_args=command.options.__dict__)
726 725 dbmanage.create_tables(override=True)
727 726 dbmanage.set_db_version()
728 727 opts = dbmanage.config_prompt(None)
729 728 dbmanage.create_settings(opts)
730 729 dbmanage.create_default_user()
731 730 dbmanage.admin_prompt()
732 731 dbmanage.create_permissions()
733 732 dbmanage.populate_default_permissions()
734 733 Session().commit()
735 734 load_environment(conf.global_conf, conf.local_conf, initial=True)
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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</pre></div></div><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 13px;">&nbsp;</div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;">&nbsp;</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>
735 </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"></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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</pre></div></div><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 13px;">&nbsp;</div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;">&nbsp;</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 736 <div id="editor_preview"></div>
738 737 </div>
739 738 <div class="message">
740 739 <label class="codeblock-label">Commit Message</label>
741 740 <textarea id="commit" name="message" placeholder="Edited file rhodecode/websetup.py via RhodeCode"></textarea>
742 741 </div>
743 742 </div>
744 743
745 744
746 745
747 746
748 747
749 748
750 749 <!--
751 750 Commit with comments
752 751 -->
753 752
754 753 <h2>Commit with comments</h2>
755 754
756 755 <div class="diff-container" id="diff-container-140360037209920">
757 756 <div id="c-4e5ee86997c6-7046e4320b26_target"></div>
758 757 <div id="c-4e5ee86997c6-7046e4320b26" class="diffblock margined comm">
759 758 <div class="code-header">
760 759 <div title="Go back to changed files overview">
761 760 <a href="#changes_box">
762 761 <i class="icon-circle-arrow-up"></i>
763 762 </a>
764 763 </div>
765 764 <div class="changeset_header">
766 765 <div class="changeset_file">
767 766 <i class="icon-file"></i>
768 767 <a href="/andersonsantos/rhodecode-dev-fork/files/4e5ee86997c64981d85cf62283af448624e26929/rhodecode/tests/functional/test_compare_local.py">rhodecode/tests/functional/test_compare_local.py</a>
769 768 </div>
770 769 <div class="diff-actions">
771 770 <a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&amp;diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&amp;diff=diff&amp;diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full diff for this file">
772 771 <img class="icon" src="/images/icons/page_white_go.png">
773 772 </a>
774 773 <a href="/andersonsantos/rhodecode-dev-fork/diff-2way/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&amp;diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&amp;diff=diff&amp;diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full side-by-side diff for this file">
775 774 <img class="icon" src="/images/icons/application_double.png">
776 775 </a>
777 776 <a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&amp;diff=raw&amp;diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Raw diff">
778 777 <img class="icon" src="/images/icons/page_white.png">
779 778 </a>
780 779 <a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&amp;diff=download&amp;diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Download diff">
781 780 <img class="icon" src="/images/icons/page_save.png">
782 781 </a>
783 782 <a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=WS%3A1&amp;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 783 <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 784 </div>
786 785 <span>
787 786 <label>
788 787 Show inline comments
789 788 <input checked="checked" class="show-inline-comments" id="" id_for="c-4e5ee86997c6-7046e4320b26" name="" type="checkbox" value="1">
790 789 </label>
791 790 </span>
792 791 </div>
793 792 </div>
794 793 <div class="code-body">
795 794 <div class="full_f_path" path="rhodecode/tests/functional/test_compare_local.py"></div>
796 795 <table class="code-difftable">
797 796 <tbody><tr class="line context">
798 797 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td>
799 798 <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td>
800 799 <td class="code ">
801 800 <pre>@@ -59,7 +59,7 @@
802 801 </pre>
803 802 </td>
804 803 </tr>
805 804 <tr class="line unmod">
806 805 <td id="rhodecodetestsfunctionaltest_compare_localpy_o59" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o59">59</a></td>
807 806 <td id="rhodecodetestsfunctionaltest_compare_localpy_n59" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n59">59</a></td>
808 807 <td class="code ">
809 808 <pre> 'tag': 'v0.2.0',
810 809 </pre>
811 810 </td>
812 811 </tr>
813 812 <tr class="line unmod">
814 813 <td id="rhodecodetestsfunctionaltest_compare_localpy_o60" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o60">60</a></td>
815 814 <td id="rhodecodetestsfunctionaltest_compare_localpy_n60" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n60">60</a></td>
816 815 <td class="code ">
817 816 <pre> 'branch': 'default',
818 817 </pre>
819 818 </td>
820 819 </tr>
821 820 <tr class="line unmod">
822 821 <td id="rhodecodetestsfunctionaltest_compare_localpy_o61" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o61">61</a></td>
823 822 <td id="rhodecodetestsfunctionaltest_compare_localpy_n61" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n61">61</a></td>
824 823 <td class="code ">
825 824 <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 825 </pre>
827 826 </td>
828 827 </tr>
829 828 <tr class="line del">
830 829 <td id="rhodecodetestsfunctionaltest_compare_localpy_o62" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o62">62</a></td>
831 830 <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
832 831 <td class="code ">
833 832 <pre> '147 files changed: 5700 inserted, 10176 deleted'
834 833 </pre>
835 834 </td>
836 835 </tr>
837 836 <tr class="line add">
838 837 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
839 838 <td id="rhodecodetestsfunctionaltest_compare_localpy_n62" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n62">62</a></td>
840 839 <td class="code ">
841 840 <pre><ins> </ins> '147 files changed: 5700 inserted, 10176 deleted'
842 841 </pre>
843 842 </td>
844 843 </tr>
845 844 <tr class="line unmod">
846 845 <td id="rhodecodetestsfunctionaltest_compare_localpy_o63" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o63">63</a></td>
847 846 <td id="rhodecodetestsfunctionaltest_compare_localpy_n63" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n63">63</a></td>
848 847 <td class="code ">
849 848 <pre> },
850 849 </pre>
851 850 </td>
852 851 </tr>
853 852 <tr class="line unmod">
854 853 <td id="rhodecodetestsfunctionaltest_compare_localpy_o64" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o64">64</a></td>
855 854 <td id="rhodecodetestsfunctionaltest_compare_localpy_n64" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n64">64</a></td>
856 855 <td class="code ">
857 856 <pre> 'git': {
858 857 </pre>
859 858 </td>
860 859 </tr>
861 860 <tr class="line unmod">
862 861 <td id="rhodecodetestsfunctionaltest_compare_localpy_o65" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o65">65</a></td>
863 862 <td id="rhodecodetestsfunctionaltest_compare_localpy_n65" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n65">65</a></td>
864 863 <td class="code ">
865 864 <pre> 'tag': 'v0.2.2',
866 865 </pre>
867 866 </td>
868 867 </tr>
869 868 <tr class="line context">
870 869 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td>
871 870 <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td>
872 871 <td class="code ">
873 872 <pre>@@ -77,9 +77,11 @@
874 873 </pre>
875 874 </td>
876 875 </tr>
877 876 <tr class="line unmod">
878 877 <td id="rhodecodetestsfunctionaltest_compare_localpy_o77" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o77">77</a></td>
879 878 <td id="rhodecodetestsfunctionaltest_compare_localpy_n77" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n77">77</a></td>
880 879 <td class="code ">
881 880 <pre> target_ref=revisions[backend.alias]['tag'],
882 881 </pre>
883 882 </td>
884 883 </tr>
885 884 <tr class="line unmod">
886 885 <td id="rhodecodetestsfunctionaltest_compare_localpy_o78" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o78">78</a></td>
887 886 <td id="rhodecodetestsfunctionaltest_compare_localpy_n78" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n78">78</a></td>
888 887 <td class="code ">
889 888 <pre> ))
890 889 </pre>
891 890 </td>
892 891 </tr><tr id="comment-tr-3754" class="inline-comments"><td></td><td></td><td>
893 892
894 893 <div class="comment" id="comment-3754" line="n78">
895 894 <div class="comment-wrapp">
896 895 <div class="meta">
897 896 <span class="gravatar">
898 897 <img src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=40" height="20" width="20">
899 898 </span>
900 899 <span class="user">
901 900 anderson
902 901 </span>
903 902 <span class="date">
904 903 just now |
905 904 </span>
906 905 <span class="status-change">
907 906 Comment on commit
908 907 </span>
909 908 <a class="permalink" href="#comment-3754">ΒΆ</a>
910 909 </div>
911 910 <div class="text">
912 911 <div class="rst-block"><p>commented line
913 912 with multiple lines</p>
914 913 </div>
915 914 </div>
916 915 </div>
917 916 </div><div class="add-comment"><span class="btn btn-default">Add another comment</span></div>
918 917
919 918 </td></tr>
920 919 <tr class="line unmod">
921 920 <td id="rhodecodetestsfunctionaltest_compare_localpy_o79" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o79">79</a></td>
922 921 <td id="rhodecodetestsfunctionaltest_compare_localpy_n79" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n79">79</a></td>
923 922 <td class="code ">
924 923 <pre></pre>
925 924 </td>
926 925 </tr>
927 926 <tr class="line del form-open hl-comment">
928 927 <td id="rhodecodetestsfunctionaltest_compare_localpy_o80" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o80">80</a></td>
929 928 <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
930 929 <td class="code ">
931 930 <pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del>
932 931 </pre>
933 932 </td>
934 933 </tr><tr id="comment-tr-undefined" class="comment-form-inline"><td></td><td></td><td>
935 934 <div class="comment-inline-form ac">
936 935 <div class="overlay"><div class="overlay-text">Submitting...</div></div>
937 936 <form action="#" class="inline-form" method="get">
938 937 <div id="edit-container_o80" class="clearfix">
939 938 <div class="comment-title pull-left">
940 939 Commenting on line o80.
941 940 </div>
942 941 <div class="comment-help pull-right">
943 942 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 943 </div>
945 944 <div style="clear: both"></div>
946 945 <textarea id="text_o80" name="text" class="comment-block-ta ac-input" autocomplete="off"></textarea>
947 946 </div>
948 947 <div id="preview-container_o80" class="clearfix" style="display: none;">
949 948 <div class="comment-help">
950 949 Comment preview
951 950 </div>
952 951 <div id="preview-box_o80" class="preview-box"></div>
953 952 </div>
954 953 <div class="comment-button pull-right">
955 954 <input type="hidden" name="f_path" value="rhodecode/tests/functional/test_compare_local.py">
956 955 <input type="hidden" name="line" value="o80">
957 956 <div id="preview-btn_o80" class="btn btn-default">Preview</div>
958 957 <div id="edit-btn_o80" class="btn" style="display: none;">Edit</div>
959 958 <input class="btn btn-success save-inline-form" id="save" name="save" type="submit" value="Comment">
960 959 </div>
961 960 <div class="comment-button hide-inline-form-button">
962 961 <input class="btn hide-inline-form" id="hide-inline-form" name="hide-inline-form" type="reset" value="Cancel">
963 962 </div>
964 963 </form>
965 964 </div>
966 965 </td></tr>
967 966 <tr class="line add">
968 967 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
969 968 <td id="rhodecodetestsfunctionaltest_compare_localpy_n80" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n80">80</a></td>
970 969 <td class="code ">
971 970 <pre> response.mustcontain('%s@%s' % (
972 971 </pre>
973 972 </td>
974 973 </tr>
975 974 <tr class="line add">
976 975 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
977 976 <td id="rhodecodetestsfunctionaltest_compare_localpy_n81" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n81">81</a></td>
978 977 <td class="code ">
979 978 <pre> backend.repo_name,
980 979 </pre>
981 980 </td>
982 981 </tr>
983 982 <tr class="line unmod">
984 983 <td id="rhodecodetestsfunctionaltest_compare_localpy_o81" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o81">81</a></td>
985 984 <td id="rhodecodetestsfunctionaltest_compare_localpy_n82" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n82">82</a></td>
986 985 <td class="code ">
987 986 <pre> revisions[backend.alias]['branch']))
988 987 </pre>
989 988 </td>
990 989 </tr>
991 990 <tr class="line del">
992 991 <td id="rhodecodetestsfunctionaltest_compare_localpy_o82" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o82">82</a></td>
993 992 <td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
994 993 <td class="code ">
995 994 <pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del>
996 995 </pre>
997 996 </td>
998 997 </tr>
999 998 <tr class="line add">
1000 999 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
1001 1000 <td id="rhodecodetestsfunctionaltest_compare_localpy_n83" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n83">83</a></td>
1002 1001 <td class="code ">
1003 1002 <pre> response.mustcontain('%s@%s' % (
1004 1003 </pre>
1005 1004 </td>
1006 1005 </tr>
1007 1006 <tr class="line add">
1008 1007 <td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
1009 1008 <td id="rhodecodetestsfunctionaltest_compare_localpy_n84" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n84">84</a></td>
1010 1009 <td class="code ">
1011 1010 <pre> backend.repo_name,
1012 1011 </pre>
1013 1012 </td>
1014 1013 </tr>
1015 1014 <tr class="line unmod">
1016 1015 <td id="rhodecodetestsfunctionaltest_compare_localpy_o83" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o83">83</a></td>
1017 1016 <td id="rhodecodetestsfunctionaltest_compare_localpy_n85" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n85">85</a></td>
1018 1017 <td class="code ">
1019 1018 <pre> revisions[backend.alias]['tag']))
1020 1019 </pre>
1021 1020 </td>
1022 1021 </tr>
1023 1022 <tr class="line unmod">
1024 1023 <td id="rhodecodetestsfunctionaltest_compare_localpy_o84" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o84">84</a></td>
1025 1024 <td id="rhodecodetestsfunctionaltest_compare_localpy_n86" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n86">86</a></td>
1026 1025 <td class="code ">
1027 1026 <pre> response.mustcontain(revisions[backend.alias]['response'])
1028 1027 </pre>
1029 1028 </td>
1030 1029 </tr>
1031 1030 <tr class="line unmod">
1032 1031 <td id="rhodecodetestsfunctionaltest_compare_localpy_o85" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o85">85</a></td>
1033 1032 <td id="rhodecodetestsfunctionaltest_compare_localpy_n87" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n87">87</a></td>
1034 1033 <td class="code ">
1035 1034 <pre></pre>
1036 1035 </td>
1037 1036 </tr>
1038 1037 </tbody></table>
1039 1038 </div>
1040 1039 </div>
1041 1040 </div>
1042 1041
1043 1042
1044 1043
1045 1044 <!--
1046 1045 Side-by-side diff
1047 1046 -->
1048 1047
1049 1048 <h2>Side-by-side diff</h2>
1050 1049
1051 1050 <div class="box">
1052 1051 <div class="diff-container" style="overflow-x: hidden">
1053 1052 <div class="diffblock comm" style="margin:3px; padding:1px">
1054 1053 <div class="code-header">
1055 1054 <div class="changeset_header">
1056 1055 <div class="changeset_file">
1057 1056 <i class="icon-file"></i>
1058 1057 <a href="/pygments/files/ea295cfb622620f5ba13e226ec531e3fe5296399/tests/test_basic_api.py">tests/test_basic_api.py</a>
1059 1058 [mode: <span id="selected_mode">python</span>]
1060 1059 </div>
1061 1060 <div class="diff-actions">
1062 1061 <a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&amp;diff=diff&amp;diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&amp;fulldiff=1" class="tooltip" title="Show full diff for this file">
1063 1062 <img class="icon" src="/images/icons/page_white_go.png">
1064 1063 </a>
1065 1064 <a href="/pygments/diff-2way/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&amp;diff=diff&amp;diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&amp;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 1065 <img class="icon" src="/images/icons/application_double.png">
1067 1066 </a>
1068 1067 <a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&amp;diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&amp;diff=raw" class="tooltip" title="Raw diff">
1069 1068 <img class="icon" src="/images/icons/page_white.png">
1070 1069 </a>
1071 1070 <a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&amp;diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&amp;diff=download" class="tooltip" title="Download diff">
1072 1071 <img class="icon" src="/images/icons/page_save.png">
1073 1072 </a>
1074 1073 <label><input id="ignorews" name="ignorews" type="checkbox" value="1">ignore white space</label>
1075 1074 <label><input id="edit_mode" name="edit_mode" type="checkbox" value="1">turn on edit mode</label>
1076 1075
1077 1076 </div>
1078 1077 <div style="float: right; padding: 0px 10px 0px 0px">
1079 1078 r1538:de45f950b669 ... r1539:ea295cfb6226
1080 1079 </div>
1081 1080 </div>
1082 1081 </div>
1083 1082 <div id="compare"></div>
1084 1083 </div>
1085 1084 </div>
1086 1085
1087 1086 <script>
1088 1087 $(document).ready(function () {
1089 1088 var example_lines = '1\n2\n3\n4\n5\n6\n7\n8\n9\n \n';
1090 1089
1091 1090 $('#compare').mergely({
1092 1091 width: 'auto',
1093 1092 height: '600',
1094 1093 fgcolor: {a:'#ddffdd',c:'#cccccc',d:'#ffdddd'},
1095 1094 bgcolor: '#fff',
1096 1095 viewport: true,
1097 1096 cmsettings: {mode: 'text/plain', readOnly: true, lineWrapping: false, lineNumbers: true},
1098 1097 lhs: function(setValue) {
1099 1098 if("False" == "True"){
1100 1099 setValue('Binary file')
1101 1100 }
1102 1101 else if("MercurialCommit" == "EmptyCommit"){
1103 1102 setValue('');
1104 1103 }
1105 1104 else{
1106 1105 var left_value = example_lines.slice(0, 10) +
1107 1106 '123456789 '.repeat(10) +
1108 1107 '\n'+
1109 1108 example_lines.slice(10, 20);
1110 1109 setValue(left_value + example_lines.repeat(9));
1111 1110 }
1112 1111
1113 1112 },
1114 1113 rhs: function(setValue) {
1115 1114 if("False" == "True"){
1116 1115 setValue('Binary file')
1117 1116 }
1118 1117 else if("MercurialCommit" == "EmptyCommit"){
1119 1118 setValue('');
1120 1119 }
1121 1120 else{
1122 1121 var right_value = example_lines +
1123 1122 example_lines.slice(0, 8) +
1124 1123 'abcdefghi '.repeat(10) +
1125 1124 '\n'+
1126 1125 example_lines.slice(8, 20);
1127 1126 setValue(right_value + example_lines.repeat(9));
1128 1127 }
1129 1128 },
1130 1129 });
1131 1130
1132 1131 var detected_mode = detectCodeMirrorModeFromExt('test_basic_api.py', true);
1133 1132 if(detected_mode){
1134 1133 setCodeMirrorMode($('#compare').mergely('cm', 'lhs'), detected_mode);
1135 1134 setCodeMirrorMode($('#compare').mergely('cm', 'rhs'), detected_mode);
1136 1135 $('#selected_mode').html(detected_mode);
1137 1136 }
1138 1137
1139 1138 $('#ignorews').change(function(e){
1140 1139 var val = e.currentTarget.checked;
1141 1140 $('#compare').mergely('options', {ignorews: val});
1142 1141 $('#compare').mergely('update');
1143 1142 });
1144 1143 $('#edit_mode').change(function(e){
1145 1144 var val = !e.currentTarget.checked;
1146 1145 $('#compare').mergely('cm', 'lhs').setOption('readOnly', val);
1147 1146 $('#compare').mergely('cm', 'rhs').setOption('readOnly', val);
1148 1147 $('#compare').mergely('update');
1149 1148 })
1150 1149 });
1151 1150 </script>
1152 1151
1153 1152 </div>
1154 1153
1155 1154 <!-- end examples -->
1156 1155
1157 1156 </div>
1158 1157 </div>
1159 1158 </div>
1160 1159 </%def>
@@ -1,962 +1,961 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Collapsable Content</h2>
23 22 <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 23
25 24 <p><strong>To use the collapsable-content function:</strong> Create a toggle button using <code>&lt;div class="btn-collapse"&gt;Show More&lt;/div&gt;</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 25 </p>
27 26 <p>Notes:</p>
28 27 <ul>
29 28 <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 29 <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 30 </ul>
32 31
33 32 </div> <!-- .main-content -->
34 33 </div> <!-- .sidebar-col-wrapper -->
35 34 </div> <!-- .box -->
36 35
37 36 <!-- CONTENT -->
38 37 <div id="content" class="wrapper">
39 38
40 39 <div class="main">
41 40
42 41 <div class="box">
43 42 <div class="title">
44 43 <h1>
45 44 Diff: enable filename with spaces on diffs
46 45 </h1>
47 46 <h1>
48 47 <i class="icon-hg" ></i>
49 48
50 49 <i class="icon-lock"></i>
51 50 <span><a href="/rhodecode-momentum">rhodecode-momentum</a></span>
52 51
53 52 </h1>
54 53 </div>
55 54
56 55 <div class="box pr-summary">
57 56 <div class="summary-details block-left">
58 57
59 58 <div class="pr-details-title">
60 59
61 60 Pull request #720 From Tue, 17 Feb 2015 16:21:38
62 61 <div class="btn-collapse" data-toggle="description">Show More</div>
63 62 </div>
64 63 <div id="summary" class="fields pr-details-content">
65 64 <div class="field">
66 65 <div class="label-summary">
67 66 <label>Origin:</label>
68 67 </div>
69 68 <div class="input">
70 69 <div>
71 70 <span class="tag">
72 71 <a href="/andersonsantos/rhodecode-momentum-fork#fix_574">book: fix_574</a>
73 72 </span>
74 73 <span class="clone-url">
75 74 <a href="/andersonsantos/rhodecode-momentum-fork">https://code.rhodecode.com/andersonsantos/rhodecode-momentum-fork</a>
76 75 </span>
77 76 </div>
78 77 <div>
79 78 <br>
80 79 <input type="text" value="hg pull -r 46b3d50315f0 https://code.rhodecode.com/andersonsantos/rhodecode-momentum-fork" readonly="readonly">
81 80 </div>
82 81 </div>
83 82 </div>
84 83 <div class="field">
85 84 <div class="label-summary">
86 85 <label>Review:</label>
87 86 </div>
88 87 <div class="input">
89 88 <div class="flag_status under_review tooltip pull-left" title="Pull request status calculated from votes"></div>
90 89 <span class="changeset-status-lbl tooltip" title="Pull request status calculated from votes">
91 90 Under Review
92 91 </span>
93 92
94 93 </div>
95 94 </div>
96 95 <div class="field collapsable-content" data-toggle="description">
97 96 <div class="label-summary">
98 97 <label>Description:</label>
99 98 </div>
100 99 <div class="input">
101 100 <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 101 </div>
103 102 </div>
104 103 <div class="field collapsable-content" data-toggle="description">
105 104 <div class="label-summary">
106 105 <label>Comments:</label>
107 106 </div>
108 107 <div class="input">
109 108 <div>
110 109 <div class="comments-number">
111 110 <a href="#inline-comments-container">0 Pull request comments</a>,
112 111 0 Inline Comments
113 112 </div>
114 113 </div>
115 114 </div>
116 115 </div>
117 116 </div>
118 117 </div>
119 118 <div>
120 119 <div class="reviewers-title block-right">
121 120 <div class="pr-details-title">
122 121 Author
123 122 </div>
124 123 </div>
125 124 <div class="block-right pr-details-content reviewers">
126 125 <ul class="group_members">
127 126 <li>
128 127 <img class="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=32" height="16" width="16">
129 128 <span class="user"> <a href="/_profiles/lolek">lolek (Lolek Santos)</a></span>
130 129 </li>
131 130 </ul>
132 131 </div>
133 132 <div class="reviewers-title block-right">
134 133 <div class="pr-details-title">
135 134 Pull request reviewers
136 135 <span class="btn-collapse" data-toggle="reviewers">Show More</span>
137 136 </div>
138 137
139 138 </div>
140 139 <div id="reviewers" class="block-right pr-details-content reviewers">
141 140
142 141 <ul id="review_members" class="group_members">
143 142 <li id="reviewer_70">
144 143 <div class="reviewers_member">
145 144 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
146 145 <div class="flag_status rejected pull-left reviewer_member_status"></div>
147 146 </div>
148 147 <img class="gravatar" src="https://secure.gravatar.com/avatar/153a0fab13160b3e64a2cbc7c0373506?d=identicon&amp;s=32" height="16" width="16">
149 148 <span class="user"> <a href="/_profiles/jenkins-tests">jenkins-tests</a> (reviewer)</span>
150 149 </div>
151 150 <input id="reviewer_70_input" type="hidden" value="70" name="review_members">
152 151 <div class="reviewer_member_remove action_button" onclick="removeMember(70, true)" style="visibility: hidden;">
153 152 <i class="icon-remove"></i>
154 153 </div>
155 154 </li>
156 155 <li id="reviewer_33" class="collapsable-content" data-toggle="reviewers">
157 156 <div class="reviewers_member">
158 157 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
159 158 <div class="flag_status approved pull-left reviewer_member_status"></div>
160 159 </div>
161 160 <img class="gravatar" src="https://secure.gravatar.com/avatar/ffd6a317ec2b66be880143cd8459d0d9?d=identicon&amp;s=32" height="16" width="16">
162 161 <span class="user"> <a href="/_profiles/jenkins-tests">garbas (Rok Garbas)</a> (reviewer)</span>
163 162 </div>
164 163 </li>
165 164 <li id="reviewer_2" class="collapsable-content" data-toggle="reviewers">
166 165 <div class="reviewers_member">
167 166 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
168 167 <div class="flag_status not_reviewed pull-left reviewer_member_status"></div>
169 168 </div>
170 169 <img class="gravatar" src="https://secure.gravatar.com/avatar/aad9d40cac1259ea39b5578554ad9d64?d=identicon&amp;s=32" height="16" width="16">
171 170 <span class="user"> <a href="/_profiles/jenkins-tests">marcink (Marcin Kuzminski)</a> (reviewer)</span>
172 171 </div>
173 172 </li>
174 173 <li id="reviewer_36" class="collapsable-content" data-toggle="reviewers">
175 174 <div class="reviewers_member">
176 175 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
177 176 <div class="flag_status approved pull-left reviewer_member_status"></div>
178 177 </div>
179 178 <img class="gravatar" src="https://secure.gravatar.com/avatar/7a4da001a0af0016ed056ab523255db9?d=identicon&amp;s=32" height="16" width="16">
180 179 <span class="user"> <a href="/_profiles/jenkins-tests">johbo (Johannes Bornhold)</a> (reviewer)</span>
181 180 </div>
182 181 </li>
183 182 <li id="reviewer_47" class="collapsable-content" data-toggle="reviewers">
184 183 <div class="reviewers_member">
185 184 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
186 185 <div class="flag_status under_review pull-left reviewer_member_status"></div>
187 186 </div>
188 187 <img class="gravatar" src="https://secure.gravatar.com/avatar/8f6dc00dce79d6bd7d415be5cea6a008?d=identicon&amp;s=32" height="16" width="16">
189 188 <span class="user"> <a href="/_profiles/jenkins-tests">lisaq (Lisa Quatmann)</a> (reviewer)</span>
190 189 </div>
191 190 </li>
192 191 <li id="reviewer_49" class="collapsable-content" data-toggle="reviewers">
193 192 <div class="reviewers_member">
194 193 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
195 194 <div class="flag_status approved pull-left reviewer_member_status"></div>
196 195 </div>
197 196 <img class="gravatar" src="https://secure.gravatar.com/avatar/89f722927932a8f737a0feafb03a606e?d=identicon&amp;s=32" height="16" width="16">
198 197 <span class="user"> <a href="/_profiles/jenkins-tests">paris (Paris Kolios)</a> (reviewer)</span>
199 198 </div>
200 199 </li>
201 200 <li id="reviewer_50" class="collapsable-content" data-toggle="reviewers">
202 201 <div class="reviewers_member">
203 202 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
204 203 <div class="flag_status approved pull-left reviewer_member_status"></div>
205 204 </div>
206 205 <img class="gravatar" src="https://secure.gravatar.com/avatar/081322c975e8545ec269372405fbd016?d=identicon&amp;s=32" height="16" width="16">
207 206 <span class="user"> <a href="/_profiles/jenkins-tests">ergo (Marcin Lulek)</a> (reviewer)</span>
208 207 </div>
209 208 </li>
210 209 <li id="reviewer_54" class="collapsable-content" data-toggle="reviewers">
211 210 <div class="reviewers_member">
212 211 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
213 212 <div class="flag_status under_review pull-left reviewer_member_status"></div>
214 213 </div>
215 214 <img class="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=32" height="16" width="16">
216 215 <span class="user"> <a href="/_profiles/jenkins-tests">anderson (Anderson Santos)</a> (reviewer)</span>
217 216 </div>
218 217 </li>
219 218 <li id="reviewer_57" class="collapsable-content" data-toggle="reviewers">
220 219 <div class="reviewers_member">
221 220 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
222 221 <div class="flag_status approved pull-left reviewer_member_status"></div>
223 222 </div>
224 223 <img class="gravatar" src="https://secure.gravatar.com/avatar/23e2ee8f5fd462cba8129a40cc1e896c?d=identicon&amp;s=32" height="16" width="16">
225 224 <span class="user"> <a href="/_profiles/jenkins-tests">gmgauthier (Greg Gauthier)</a> (reviewer)</span>
226 225 </div>
227 226 </li>
228 227 <li id="reviewer_31" class="collapsable-content" data-toggle="reviewers">
229 228 <div class="reviewers_member">
230 229 <div class="reviewer_status tooltip pull-left" title="Not Reviewed">
231 230 <div class="flag_status under_review pull-left reviewer_member_status"></div>
232 231 </div>
233 232 <img class="gravatar" src="https://secure.gravatar.com/avatar/0c9a7e6674b6f0b35d98dbe073e3f0ab?d=identicon&amp;s=32" height="16" width="16">
234 233 <span class="user"> <a href="/_profiles/jenkins-tests">ostrobel (Oliver Strobel)</a> (reviewer)</span>
235 234 </div>
236 235 </li>
237 236 </ul>
238 237 <div id="add_reviewer_input" class="ac" style="display: none;">
239 238 </div>
240 239 </div>
241 240 </div>
242 241 </div>
243 242 </div>
244 243 <div class="box">
245 244 <div class="table" >
246 245 <div id="changeset_compare_view_content">
247 246 <div class="compare_view_commits_title">
248 247 <h2>Compare View: 6 commits<span class="btn-collapse" data-toggle="commits">Show More</span></h2>
249 248
250 249 </div>
251 250 <div class="container">
252 251
253 252
254 253 <table class="rctable compare_view_commits">
255 254 <tr>
256 255 <th>Time</th>
257 256 <th>Author</th>
258 257 <th>Commit</th>
259 258 <th></th>
260 259 <th>Title</th>
261 260 </tr>
262 261 <tr id="row-7e83e5cd7812dd9e055ce30e77c65cdc08154b43" commit_id="7e83e5cd7812dd9e055ce30e77c65cdc08154b43" class="compare_select">
263 262 <td class="td-time">
264 263 <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 264 </td>
266 265 <td class="td-user">
267 266 <div class="gravatar_with_user">
268 267 <img class="gravatar" alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&amp;s=16">
269 268 <span title="Lolek Santos <lolek@rhodecode.com>" class="user">brian (Brian Butler)</span>
270 269 </div>
271 270 </td>
272 271 <td class="td-hash">
273 272 <code>
274 273 <a href="/brian/documentation-rep/changeset/7e83e5cd7812dd9e055ce30e77c65cdc08154b43">r395:7e83e5cd7812</a>
275 274 </code>
276 275 </td>
277 276 <td class="expand_commit" data-commit-id="7e83e5cd7812dd9e055ce30e77c65cdc08154b43" title="Expand commit message">
278 277 <div class="show_more_col">
279 278 <i class="show_more"></i>
280 279 </div>
281 280 </td>
282 281 <td class="mid td-description">
283 282 <div class="log-container truncate-wrap">
284 283 <div id="c-7e83e5cd7812dd9e055ce30e77c65cdc08154b43" class="message truncate">rep: added how we doc to guide</div>
285 284 </div>
286 285 </td>
287 286 </tr>
288 287 <tr id="row-48ce1581bdb3aa7679c246cbdd3fb030623f5c87" commit_id="48ce1581bdb3aa7679c246cbdd3fb030623f5c87" class="compare_select">
289 288 <td class="td-time">
290 289 <span class="tooltip" title="4 hours and 18 minutes ago">2015-02-18 09:18:31</span>
291 290 </td>
292 291 <td class="td-user">
293 292 <div class="gravatar_with_user">
294 293 <img class="gravatar" alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&amp;s=16">
295 294 <span title="Lolek Santos <lolek@rhodecode.com>" class="user">brian (Brian Butler)</span>
296 295 </div>
297 296 </td>
298 297 <td class="td-hash">
299 298 <code>
300 299 <a href="/brian/documentation-rep/changeset/48ce1581bdb3aa7679c246cbdd3fb030623f5c87">r394:48ce1581bdb3</a>
301 300 </code>
302 301 </td>
303 302 <td class="expand_commit" data-commit-id="48ce1581bdb3aa7679c246cbdd3fb030623f5c87" title="Expand commit message">
304 303 <div class="show_more_col">
305 304 <i class="show_more"></i>
306 305 </div>
307 306 </td>
308 307 <td class="mid td-description">
309 308 <div class="log-container truncate-wrap">
310 309 <div id="c-48ce1581bdb3aa7679c246cbdd3fb030623f5c87" class="message truncate">repo 0004 - typo</div>
311 310 </div>
312 311 </td>
313 312 </tr>
314 313 <tr id="row-982d857aafb4c71e7686e419c32b71c9a837257d" commit_id="982d857aafb4c71e7686e419c32b71c9a837257d" class="compare_select collapsable-content" data-toggle="commits">
315 314 <td class="td-time">
316 315 <span class="tooltip" title="4 hours and 22 minutes ago">2015-02-18 09:14:45</span>
317 316 </td>
318 317 <td class="td-user">
319 318 <span class="gravatar" commit_id="982d857aafb4c71e7686e419c32b71c9a837257d">
320 319 <img alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&amp;s=28" height="14" width="14">
321 320 </span>
322 321 <span class="author">brian (Brian Butler)</span>
323 322 </td>
324 323 <td class="td-hash">
325 324 <code>
326 325 <a href="/brian/documentation-rep/changeset/982d857aafb4c71e7686e419c32b71c9a837257d">r393:982d857aafb4</a>
327 326 </code>
328 327 </td>
329 328 <td class="expand_commit" data-commit-id="982d857aafb4c71e7686e419c32b71c9a837257d" title="Expand commit message">
330 329 <div class="show_more_col">
331 330 <i class="show_more"></i>
332 331 </div>
333 332 </td>
334 333 <td class="mid td-description">
335 334 <div class="log-container truncate-wrap">
336 335 <div id="c-982d857aafb4c71e7686e419c32b71c9a837257d" class="message truncate">internals: how to doc section added</div>
337 336 </div>
338 337 </td>
339 338 </tr>
340 339 <tr id="row-4c7258ad1af6dae91bbaf87a933e3597e676fab8" commit_id="4c7258ad1af6dae91bbaf87a933e3597e676fab8" class="compare_select collapsable-content" data-toggle="commits">
341 340 <td class="td-time">
342 341 <span class="tooltip" title="20 hours and 16 minutes ago">2015-02-17 17:20:44</span>
343 342 </td>
344 343 <td class="td-user">
345 344 <span class="gravatar" commit_id="4c7258ad1af6dae91bbaf87a933e3597e676fab8">
346 345 <img alt="gravatar" src="https://secure.gravatar.com/avatar/02cc31cea73b88b7209ba302c5967a9d?d=identicon&amp;s=28" height="14" width="14">
347 346 </span>
348 347 <span class="author">brian (Brian Butler)</span>
349 348 </td>
350 349 <td class="td-hash">
351 350 <code>
352 351 <a href="/brian/documentation-rep/changeset/4c7258ad1af6dae91bbaf87a933e3597e676fab8">r392:4c7258ad1af6</a>
353 352 </code>
354 353 </td>
355 354 <td class="expand_commit" data-commit-id="4c7258ad1af6dae91bbaf87a933e3597e676fab8" title="Expand commit message">
356 355 <div class="show_more_col">
357 356 <i class="show_more"></i>
358 357 </div>
359 358 </td>
360 359 <td class="mid td-description">
361 360 <div class="log-container truncate-wrap">
362 361 <div id="c-4c7258ad1af6dae91bbaf87a933e3597e676fab8" class="message truncate">REP: 0004 Documentation standards</div>
363 362 </div>
364 363 </td>
365 364 </tr>
366 365 <tr id="row-46b3d50315f0f2b1f64485ac95af4f384948f9cb" commit_id="46b3d50315f0f2b1f64485ac95af4f384948f9cb" class="compare_select collapsable-content" data-toggle="commits">
367 366 <td class="td-time">
368 367 <span class="tooltip" title="18 hours and 19 minutes ago">2015-02-17 16:18:49</span>
369 368 </td>
370 369 <td class="td-user">
371 370 <span class="gravatar" commit_id="46b3d50315f0f2b1f64485ac95af4f384948f9cb">
372 371 <img alt="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=28" height="14" width="14">
373 372 </span>
374 373 <span class="author">anderson (Anderson Santos)</span>
375 374 </td>
376 375 <td class="td-hash">
377 376 <code>
378 377 <a href="/andersonsantos/rhodecode-momentum-fork/changeset/46b3d50315f0f2b1f64485ac95af4f384948f9cb">r8743:46b3d50315f0</a>
379 378 </code>
380 379 </td>
381 380 <td class="expand_commit" data-commit-id="46b3d50315f0f2b1f64485ac95af4f384948f9cb" title="Expand commit message">
382 381 <div class="show_more_col">
383 382 <i class="show_more" ></i>
384 383 </div>
385 384 </td>
386 385 <td class="mid td-description">
387 386 <div class="log-container truncate-wrap">
388 387 <div id="c-46b3d50315f0f2b1f64485ac95af4f384948f9cb" class="message truncate">Diff: created tests for the diff with filenames with spaces</div>
389 388
390 389 </div>
391 390 </td>
392 391 </tr>
393 392 <tr id="row-1e57d2549bd6c34798075bf05ac39f708bb33b90" commit_id="1e57d2549bd6c34798075bf05ac39f708bb33b90" class="compare_select collapsable-content" data-toggle="commits">
394 393 <td class="td-time">
395 394 <span class="tooltip" title="2 days ago">2015-02-16 10:06:08</span>
396 395 </td>
397 396 <td class="td-user">
398 397 <span class="gravatar" commit_id="1e57d2549bd6c34798075bf05ac39f708bb33b90">
399 398 <img alt="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=28" height="14" width="14">
400 399 </span>
401 400 <span class="author">anderson (Anderson Santos)</span>
402 401 </td>
403 402 <td class="td-hash">
404 403 <code>
405 404 <a href="/andersonsantos/rhodecode-momentum-fork/changeset/1e57d2549bd6c34798075bf05ac39f708bb33b90">r8742:1e57d2549bd6</a>
406 405 </code>
407 406 </td>
408 407 <td class="expand_commit" data-commit-id="1e57d2549bd6c34798075bf05ac39f708bb33b90" title="Expand commit message">
409 408 <div class="show_more_col">
410 409 <i class="show_more" ></i>
411 410 </div>
412 411 </td>
413 412 <td class="mid td-description">
414 413 <div class="log-container truncate-wrap">
415 414 <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 415
417 416 </div>
418 417 </td>
419 418 </tr>
420 419 </table>
421 420 </div>
422 421
423 422 <script>
424 423 $('.expand_commit').on('click',function(e){
425 424 $(this).children('i').hide();
426 425 var cid = $(this).data('commitId');
427 426 $('#c-'+cid).css({'height': 'auto', 'margin': '.65em 1em .65em 0','white-space': 'pre-line', 'text-overflow': 'initial', 'overflow':'visible'})
428 427 $('#t-'+cid).css({'height': 'auto', 'text-overflow': 'initial', 'overflow':'visible', 'white-space':'normal'})
429 428 });
430 429 $('.compare_select').on('click',function(e){
431 430 var cid = $(this).attr('commit_id');
432 431 $('#row-'+cid).toggleClass('hl', !$('#row-'+cid).hasClass('hl'));
433 432 });
434 433 </script>
435 434 <div class="cs_files_title">
436 435 <span class="cs_files_expand">
437 436 <span id="expand_all_files">Expand All</span> | <span id="collapse_all_files">Collapse All</span>
438 437 </span>
439 438 <h2>
440 439 7 files changed: 55 inserted, 9 deleted
441 440 </h2>
442 441 </div>
443 442 <div class="cs_files">
444 443 <table class="compare_view_files">
445 444
446 445 <tr class="cs_A expand_file" fid="c--efbe5b7a3f13">
447 446 <td class="cs_icon_td">
448 447 <span class="expand_file_icon" fid="c--efbe5b7a3f13"></span>
449 448 </td>
450 449 <td class="cs_icon_td">
451 450 <div class="flag_status not_reviewed hidden"></div>
452 451 </td>
453 452 <td id="a_c--efbe5b7a3f13">
454 453 <a class="compare_view_filepath" href="#a_c--efbe5b7a3f13">
455 454 rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff
456 455 </a>
457 456 <span id="diff_c--efbe5b7a3f13" class="diff_links" style="display: none;">
458 457 <a href="/andersonsantos/rhodecode-momentum-fork/diff/rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&amp;diff1=b78e2376b986b2cf656a2b4390b09f303291c886&amp;fulldiff=1&amp;diff=diff">
459 458 Unified Diff
460 459 </a>
461 460 |
462 461 <a href="/andersonsantos/rhodecode-momentum-fork/diff-2way/rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&amp;diff1=b78e2376b986b2cf656a2b4390b09f303291c886&amp;fulldiff=1&amp;diff=diff">
463 462 Side-by-side Diff
464 463 </a>
465 464 </span>
466 465 </td>
467 466 <td>
468 467 <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 468 <div class="comment-bubble pull-right" data-path="rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff">
470 469 <i class="icon-comment"></i>
471 470 </div>
472 471 </td>
473 472 </tr>
474 473 <tr id="tr_c--efbe5b7a3f13">
475 474 <td></td>
476 475 <td></td>
477 476 <td class="injected_diff" colspan="2">
478 477
479 478 <div class="diff-container" id="diff-container-140716195039928">
480 479 <div id="c--efbe5b7a3f13_target" ></div>
481 480 <div id="c--efbe5b7a3f13" class="diffblock margined comm" >
482 481 <div class="code-body">
483 482 <div class="full_f_path" path="rhodecode/tests/fixtures/git_diff_rename_file_with_spaces.diff" style="display: none;"></div>
484 483 <table class="code-difftable">
485 484 <tr class="line context">
486 485 <td class="add-comment-line"><span class="add-comment-content"></span></td>
487 486 <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td>
488 487 <td class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n"></a></td>
489 488 <td class="code no-comment">
490 489 <pre>new file 100644</pre>
491 490 </td>
492 491 </tr>
493 492 <tr class="line add">
494 493 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
495 494 <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td>
496 495 <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 496 <td class="code">
498 497 <pre>diff --git a/file_with_ spaces.txt b/file_with_ two spaces.txt
499 498 </pre>
500 499 </td>
501 500 </tr>
502 501 <tr class="line add">
503 502 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
504 503 <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td>
505 504 <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 505 <td class="code">
507 506 <pre>similarity index 100%
508 507 </pre>
509 508 </td>
510 509 </tr>
511 510 <tr class="line add">
512 511 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
513 512 <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td>
514 513 <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 514 <td class="code">
516 515 <pre>rename from file_with_ spaces.txt
517 516 </pre>
518 517 </td>
519 518 </tr>
520 519 <tr class="line add">
521 520 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
522 521 <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o"></a></td>
523 522 <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 523 <td class="code">
525 524 <pre>rename to file_with_ two spaces.txt
526 525 </pre>
527 526 </td>
528 527 </tr>
529 528 <tr class="line context">
530 529 <td class="add-comment-line"><span class="add-comment-content"></span></td>
531 530 <td class="lineno old"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_o...">...</a></td>
532 531 <td class="lineno new"><a href="#rhodecodetestsfixturesgit_diff_rename_file_with_spacesdiff_n...">...</a></td>
533 532 <td class="code no-comment">
534 533 <pre> No newline at end of file</pre>
535 534 </td>
536 535 </tr>
537 536 </table>
538 537 </div>
539 538 </div>
540 539 </div>
541 540
542 541 </td>
543 542 </tr>
544 543 <tr class="cs_A expand_file" fid="c--c21377f778f9">
545 544 <td class="cs_icon_td">
546 545 <span class="expand_file_icon" fid="c--c21377f778f9"></span>
547 546 </td>
548 547 <td class="cs_icon_td">
549 548 <div class="flag_status not_reviewed hidden"></div>
550 549 </td>
551 550 <td id="a_c--c21377f778f9">
552 551 <a class="compare_view_filepath" href="#a_c--c21377f778f9">
553 552 rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff
554 553 </a>
555 554 <span id="diff_c--c21377f778f9" class="diff_links" style="display: none;">
556 555 <a href="/andersonsantos/rhodecode-momentum-fork/diff/rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&amp;diff1=b78e2376b986b2cf656a2b4390b09f303291c886&amp;fulldiff=1&amp;diff=diff">
557 556 Unified Diff
558 557 </a>
559 558 |
560 559 <a href="/andersonsantos/rhodecode-momentum-fork/diff-2way/rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&amp;diff1=b78e2376b986b2cf656a2b4390b09f303291c886&amp;fulldiff=1&amp;diff=diff">
561 560 Side-by-side Diff
562 561 </a>
563 562 </span>
564 563 </td>
565 564 <td>
566 565 <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 566 <div class="comment-bubble pull-right" data-path="rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff">
568 567 <i class="icon-comment"></i>
569 568 </div>
570 569 </td>
571 570 </tr>
572 571 <tr id="tr_c--c21377f778f9">
573 572 <td></td>
574 573 <td></td>
575 574 <td class="injected_diff" colspan="2">
576 575
577 576 <div class="diff-container" id="diff-container-140716195038344">
578 577 <div id="c--c21377f778f9_target" ></div>
579 578 <div id="c--c21377f778f9" class="diffblock margined comm" >
580 579 <div class="code-body">
581 580 <div class="full_f_path" path="rhodecode/tests/fixtures/hg_diff_copy_file_with_spaces.diff" style="display: none;"></div>
582 581 <table class="code-difftable">
583 582 <tr class="line context">
584 583 <td class="add-comment-line"><span class="add-comment-content"></span></td>
585 584 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td>
586 585 <td class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n"></a></td>
587 586 <td class="code no-comment">
588 587 <pre>new file 100644</pre>
589 588 </td>
590 589 </tr>
591 590 <tr class="line add">
592 591 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
593 592 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td>
594 593 <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 594 <td class="code">
596 595 <pre>diff --git a/file_changed_without_spaces.txt b/file_copied_ with spaces.txt
597 596 </pre>
598 597 </td>
599 598 </tr>
600 599 <tr class="line add">
601 600 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
602 601 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td>
603 602 <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 603 <td class="code">
605 604 <pre>copy from file_changed_without_spaces.txt
606 605 </pre>
607 606 </td>
608 607 </tr>
609 608 <tr class="line add">
610 609 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
611 610 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o"></a></td>
612 611 <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 612 <td class="code">
614 613 <pre>copy to file_copied_ with spaces.txt
615 614 </pre>
616 615 </td>
617 616 </tr>
618 617 <tr class="line context">
619 618 <td class="add-comment-line"><span class="add-comment-content"></span></td>
620 619 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_o...">...</a></td>
621 620 <td class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_copy_file_with_spacesdiff_n...">...</a></td>
622 621 <td class="code no-comment">
623 622 <pre> No newline at end of file</pre>
624 623 </td>
625 624 </tr>
626 625 </table>
627 626 </div>
628 627 </div>
629 628 </div>
630 629
631 630 </td>
632 631 </tr>
633 632 <tr class="cs_A expand_file" fid="c--ee62085ad7a8">
634 633 <td class="cs_icon_td">
635 634 <span class="expand_file_icon" fid="c--ee62085ad7a8"></span>
636 635 </td>
637 636 <td class="cs_icon_td">
638 637 <div class="flag_status not_reviewed hidden"></div>
639 638 </td>
640 639 <td id="a_c--ee62085ad7a8">
641 640 <a class="compare_view_filepath" href="#a_c--ee62085ad7a8">
642 641 rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff
643 642 </a>
644 643 <span id="diff_c--ee62085ad7a8" class="diff_links" style="display: none;">
645 644 <a href="/andersonsantos/rhodecode-momentum-fork/diff/rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&amp;diff1=b78e2376b986b2cf656a2b4390b09f303291c886&amp;fulldiff=1&amp;diff=diff">
646 645 Unified Diff
647 646 </a>
648 647 |
649 648 <a href="/andersonsantos/rhodecode-momentum-fork/diff-2way/rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff?diff2=46b3d50315f0f2b1f64485ac95af4f384948f9cb&amp;diff1=b78e2376b986b2cf656a2b4390b09f303291c886&amp;fulldiff=1&amp;diff=diff">
650 649 Side-by-side Diff
651 650 </a>
652 651 </span>
653 652 </td>
654 653 <td>
655 654 <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 655 <div class="comment-bubble pull-right" data-path="rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff">
657 656 <i class="icon-comment"></i>
658 657 </div>
659 658 </td>
660 659 </tr>
661 660 <tr id="tr_c--ee62085ad7a8">
662 661 <td></td>
663 662 <td></td>
664 663 <td class="injected_diff" colspan="2">
665 664
666 665 <div class="diff-container" id="diff-container-140716195039496">
667 666 <div id="c--ee62085ad7a8_target" ></div>
668 667 <div id="c--ee62085ad7a8" class="diffblock margined comm" >
669 668 <div class="code-body">
670 669 <div class="full_f_path" path="rhodecode/tests/fixtures/hg_diff_rename_file_with_spaces.diff" style="display: none;"></div>
671 670 <table class="code-difftable">
672 671 <tr class="line context">
673 672 <td class="add-comment-line"><span class="add-comment-content"></span></td>
674 673 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td>
675 674 <td class="lineno new"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_n"></a></td>
676 675 <td class="code no-comment">
677 676 <pre>new file 100644</pre>
678 677 </td>
679 678 </tr>
680 679 <tr class="line add">
681 680 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
682 681 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td>
683 682 <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 683 <td class="code">
685 684 <pre>diff --git a/file_ with update.txt b/file_changed _.txt
686 685 </pre>
687 686 </td>
688 687 </tr>
689 688 <tr class="line add">
690 689 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
691 690 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td>
692 691 <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 692 <td class="code">
694 693 <pre>rename from file_ with update.txt
695 694 </pre>
696 695 </td>
697 696 </tr>
698 697 <tr class="line add">
699 698 <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td>
700 699 <td class="lineno old"><a href="#rhodecodetestsfixtureshg_diff_rename_file_with_spacesdiff_o"></a></td>
701 700 <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 701 <td class="code">
703 702 <pre>rename to file_changed _.txt</pre>
704 703 </td>
705 704 </tr>
706 705 </table>
707 706 </div>
708 707 </div>
709 708 </div>
710 709
711 710 </td>
712 711 </tr>
713 712
714 713 </table>
715 714 </div>
716 715 </div>
717 716 </div>
718 717
719 718 </td>
720 719 </tr>
721 720 </table>
722 721 </div>
723 722 </div>
724 723 </div>
725 724
726 725
727 726
728 727
729 728 <div id="comment-inline-form-template" style="display: none;">
730 729 <div class="comment-inline-form ac">
731 730 <div class="overlay"><div class="overlay-text">Submitting...</div></div>
732 731 <form action="#" class="inline-form" method="get">
733 732 <div id="edit-container_{1}" class="clearfix">
734 733 <div class="comment-title pull-left">
735 734 Commenting on line {1}.
736 735 </div>
737 736 <div class="comment-help pull-right">
738 737 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 738 </div>
740 739 <div style="clear: both"></div>
741 740 <textarea id="text_{1}" name="text" class="comment-block-ta ac-input"></textarea>
742 741 </div>
743 742 <div id="preview-container_{1}" class="clearfix" style="display: none;">
744 743 <div class="comment-help">
745 744 Comment preview
746 745 </div>
747 746 <div id="preview-box_{1}" class="preview-box"></div>
748 747 </div>
749 748 <div class="comment-button pull-right">
750 749 <input type="hidden" name="f_path" value="{0}">
751 750 <input type="hidden" name="line" value="{1}">
752 751 <div id="preview-btn_{1}" class="btn btn-default">Preview</div>
753 752 <div id="edit-btn_{1}" class="btn" style="display: none;">Edit</div>
754 753 <input class="btn btn-success save-inline-form" id="save" name="save" type="submit" value="Comment" />
755 754 </div>
756 755 <div class="comment-button hide-inline-form-button">
757 756 <input class="btn hide-inline-form" id="hide-inline-form" name="hide-inline-form" type="reset" value="Cancel" />
758 757 </div>
759 758 </form>
760 759 </div>
761 760 </div>
762 761
763 762
764 763
765 764 <div class="comments">
766 765 <div id="inline-comments-container">
767 766
768 767 <h2>0 Pull Request Comments</h2>
769 768
770 769
771 770 </div>
772 771
773 772 </div>
774 773
775 774
776 775
777 776
778 777 <div class="pull-request-merge">
779 778 </div>
780 779 <div class="comments">
781 780 <div class="comment-form ac">
782 781 <form action="/rhodecode-momentum/pull-request-comment/720" id="comments_form" method="POST">
783 782 <div style="display: none;"><input id="csrf_token" name="csrf_token" type="hidden" value="6dbc0b19ac65237df65d57202a3e1f2df4153e38" /></div>
784 783 <div id="edit-container" class="clearfix">
785 784 <div class="comment-title pull-left">
786 785 Create a comment on this Pull Request.
787 786 </div>
788 787 <div class="comment-help pull-right">
789 788 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 789 </div>
791 790 <div style="clear: both"></div>
792 791 <textarea class="comment-block-ta" id="text" name="text"></textarea>
793 792 </div>
794 793
795 794 <div id="preview-container" class="clearfix" style="display: none;">
796 795 <div class="comment-title">
797 796 Comment preview
798 797 </div>
799 798 <div id="preview-box" class="preview-box"></div>
800 799 </div>
801 800
802 801 <div id="comment_form_extras">
803 802 </div>
804 803 <div class="action-button pull-right">
805 804 <div id="preview-btn" class="btn">
806 805 Preview
807 806 </div>
808 807 <div id="edit-btn" class="btn" style="display: none;">
809 808 Edit
810 809 </div>
811 810 <div class="comment-button">
812 811 <input class="btn btn-small btn-success comment-button-input" id="save" name="save" type="submit" value="Comment" />
813 812 </div>
814 813 </div>
815 814 </form>
816 815 </div>
817 816 </div>
818 817 <script>
819 818
820 819 $(document).ready(function() {
821 820
822 821 var cm = initCommentBoxCodeMirror('#text');
823 822
824 823 // main form preview
825 824 $('#preview-btn').on('click', function(e) {
826 825 $('#preview-btn').hide();
827 826 $('#edit-btn').show();
828 827 var _text = cm.getValue();
829 828 if (!_text) {
830 829 return;
831 830 }
832 831 var post_data = {
833 832 'text': _text,
834 833 'renderer': DEFAULT_RENDERER,
835 834 'csrf_token': CSRF_TOKEN
836 835 };
837 836 var previewbox = $('#preview-box');
838 837 previewbox.addClass('unloaded');
839 838 previewbox.html(_gettext('Loading ...'));
840 839 $('#edit-container').hide();
841 840 $('#preview-container').show();
842 841
843 842 var url = pyroutes.url('repo_commit_comment_preview',
844 843 {'repo_name': 'rhodecode-momentum', 'commit_id': '000000'});
845 844
846 845 ajaxPOST(url, post_data, function(o) {
847 846 previewbox.html(o);
848 847 previewbox.removeClass('unloaded');
849 848 });
850 849 });
851 850 $('#edit-btn').on('click', function(e) {
852 851 $('#preview-btn').show();
853 852 $('#edit-btn').hide();
854 853 $('#edit-container').show();
855 854 $('#preview-container').hide();
856 855 });
857 856
858 857 var formatChangeStatus = function(state, escapeMarkup) {
859 858 var originalOption = state.element;
860 859 return '<div class="flag_status ' + $(originalOption).data('status') + ' pull-left"></div>' +
861 860 '<span>' + escapeMarkup(state.text) + '</span>';
862 861 };
863 862
864 863 var formatResult = function(result, container, query, escapeMarkup) {
865 864 return formatChangeStatus(result, escapeMarkup);
866 865 };
867 866
868 867 var formatSelection = function(data, container, escapeMarkup) {
869 868 return formatChangeStatus(data, escapeMarkup);
870 869 };
871 870
872 871 $('#change_status_general').select2({
873 872 placeholder: "Status Review",
874 873 formatResult: formatResult,
875 874 formatSelection: formatSelection,
876 875 containerCssClass: "drop-menu status_box_menu",
877 876 dropdownCssClass: "drop-menu-dropdown",
878 877 dropdownAutoWidth: true,
879 878 minimumResultsForSearch: -1
880 879 });
881 880 });
882 881 </script>
883 882
884 883
885 884 <script type="text/javascript">
886 885 // TODO: switch this to pyroutes
887 886 AJAX_COMMENT_DELETE_URL = "/rhodecode-momentum/pull-request-comment/__COMMENT_ID__/delete";
888 887
889 888 $(function(){
890 889 ReviewerAutoComplete('#user');
891 890
892 891 $('#open_edit_reviewers').on('click', function(e){
893 892 $('#open_edit_reviewers').hide();
894 893 $('#close_edit_reviewers').show();
895 894 $('#add_reviewer_input').show();
896 895 $('.reviewer_member_remove').css('visibility', 'visible');
897 896 });
898 897
899 898 $('#close_edit_reviewers').on('click', function(e){
900 899 $('#open_edit_reviewers').show();
901 900 $('#close_edit_reviewers').hide();
902 901 $('#add_reviewer_input').hide();
903 902 $('.reviewer_member_remove').css('visibility', 'hidden');
904 903 });
905 904
906 905 $('.show-inline-comments').on('change', function(e){
907 906 var show = 'none';
908 907 var target = e.currentTarget;
909 908 if(target.checked){
910 909 show = ''
911 910 }
912 911 var boxid = $(target).attr('id_for');
913 912 var comments = $('#{0} .inline-comments'.format(boxid));
914 913 var fn_display = function(idx){
915 914 $(this).css('display', show);
916 915 };
917 916 $(comments).each(fn_display);
918 917 var btns = $('#{0} .inline-comments-button'.format(boxid));
919 918 $(btns).each(fn_display);
920 919 });
921 920
922 921 var commentTotals = {};
923 922 $.each(file_comments, function(i, comment) {
924 923 var path = $(comment).attr('path');
925 924 var comms = $(comment).children().length;
926 925 if (path in commentTotals) {
927 926 commentTotals[path] += comms;
928 927 } else {
929 928 commentTotals[path] = comms;
930 929 }
931 930 });
932 931 $.each(commentTotals, function(path, total) {
933 932 var elem = $('.comment-bubble[data-path="'+ path +'"]')
934 933 elem.css('visibility', 'visible');
935 934 elem.html(elem.html() + ' ' + total );
936 935 });
937 936
938 937 $('#merge_pull_request_form').submit(function() {
939 938 if (!$('#merge_pull_request').attr('disabled')) {
940 939 $('#merge_pull_request').attr('disabled', 'disabled');
941 940 }
942 941 return true;
943 942 });
944 943
945 944 $('#update_pull_request').on('click', function(e){
946 945 updateReviewers(undefined, "rhodecode-momentum", "720");
947 946 });
948 947
949 948 $('#update_commits').on('click', function(e){
950 949 updateCommits("rhodecode-momentum", "720");
951 950 });
952 951
953 952 })
954 953 </script>
955 954
956 955 </div>
957 956 </div></div>
958 957
959 958 </div>
960 959
961 960
962 961 </%def>
@@ -1,49 +1,48 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/base/base.mako"/>
3 2
4 3 <%def name="title()">
5 4 ${_('Show notification')} ${c.rhodecode_user.username}
6 5 %if c.rhodecode_name:
7 6 &middot; ${h.branding(c.rhodecode_name)}
8 7 %endif
9 8 </%def>
10 9
11 10 <%def name="breadcrumbs_links()">
12 11 ${h.link_to(_('My Notifications'), h.route_path('notifications_show_all'))}
13 12 &raquo;
14 13 ${_('Show notification')}
15 14 </%def>
16 15
17 16 <%def name="menu_bar_nav()">
18 17 ${self.menu_items(active='admin')}
19 18 </%def>
20 19
21 20 <%def name="main()">
22 21 <div class="box">
23 22
24 23 <!-- box / title -->
25 24 <div class="title">
26 25 Rendered plain text using markup renderer
27 26 </div>
28 27 <div class="table">
29 28 <div >
30 29 <div class="notification-header">
31 30 GRAVATAR
32 31 <div class="desc">
33 32 DESC
34 33 </div>
35 34 </div>
36 35 <div class="notification-body">
37 36 <div class="notification-subject">
38 37 <h3>${_('Subject')}: ${c.subject}</h3>
39 38 </div>
40 39 ${c.email_body|n}
41 40 </div>
42 41 </div>
43 42 </div>
44 43 </div>
45 44
46 45 </%def>
47 46
48 47
49 48
@@ -1,34 +1,33 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18 <div class="main-content">
20 19 <h2>Emails</h2>
21 20 <ul>
22 21 % for elem in sorted(c.email_types.keys()):
23 22 <li>
24 23 <a href="${request.route_path('debug_style_email', email_id=elem, _query={'user':c.rhodecode_user.username, 'email': ''})}">${elem}</a>
25 24 |
26 25 <a href="${request.route_path('debug_style_email_plain_rendered', email_id=elem, _query={'user':c.rhodecode_user.username})}">plain rendered</a>
27 26 </li>
28 27 % endfor
29 28 </ul>
30 29
31 30 </div> <!-- .main-content -->
32 31 </div>
33 32 </div> <!-- .box -->
34 33 </%def>
@@ -1,295 +1,294 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Simple form elements (Depreciated)</h2>
23 22
24 23 <p>The wrapping <code>.field</code> also gets the class
25 24 <code>.field-sm</code>.</p>
26 25
27 26 <p>Buttons get additional the class <code>.btn-sm</code>.</p>
28 27
29 28
30 29 <div class="bs-example">
31 30 <form method='post' action='none'>
32 31 <div class='form'>
33 32 <div class='fields'>
34 33
35 34 <div class='field field-sm'>
36 35 <div class='label'>
37 36 <label for='example_input'>Example input label:</label>
38 37 </div>
39 38 <div class='input'>
40 39 <input id="example_input" type="text" placeholder="Example input">
41 40 </div>
42 41 </div>
43 42
44 43 <div class='field field-sm'>
45 44 <div class='label'>
46 45 <label for='example_input_ro'>Example input readonly:</label>
47 46 </div>
48 47 <div class='input'>
49 48 <input id="example_input_ro" type="text" readonly="readonly" placeholder="Example input">
50 49 </div>
51 50 </div>
52 51
53 52 <div class='field field-sm'>
54 53 <div class='label'>
55 54 <label for='example_select'>Example select input:</label>
56 55 </div>
57 56 <div class="select">
58 57 <select id="example_select" >
59 58 <option value="#">${_('Templates...')}</option>
60 59 <option value="ga">Google Analytics</option>
61 60 <option value="clicky">Clicky</option>
62 61 <option value="server_announce">${_('Server Announcement')}</option>
63 62 </select>
64 63 </div>
65 64 </div>
66 65 <script>
67 66 $(document).ready(function() {
68 67 $('#example_select').select2({
69 68 containerCssClass: 'drop-menu',
70 69 dropdownCssClass: 'drop-menu-dropdown',
71 70 dropdownAutoWidth: true,
72 71 minimumResultsForSearch: -1
73 72 });
74 73 });
75 74 </script>
76 75
77 76 <div class='field field-sm'>
78 77 <div class='label'>
79 78 <label for='example_checkbox'>Example checkbox:</label>
80 79 </div>
81 80 <div class="checkboxes">
82 81 <div class="checkbox">
83 82 <input id="example_checkbox" type="checkbox">
84 83 <label for="example_checkbox">Label of the checkbox</label>
85 84 </div>
86 85 </div>
87 86 </div>
88 87
89 88 <div class='field field-sm'>
90 89 <div class='label'>
91 90 <label for='example_checkboxes'>Example multiple checkboxes:</label>
92 91 </div>
93 92 <div class="checkboxes">
94 93 <div class="checkbox">
95 94 <input id="example_checkboxes_01" type="checkbox">
96 95 <label for="example_checkboxes_01">Label of the first checkbox</label>
97 96 </div>
98 97 <div class="checkbox">
99 98 <input id="example_checkboxes_02" type="checkbox">
100 99 <label for="example_checkboxes_02">Label of the first checkbox</label>
101 100 </div>
102 101 <div class="checkbox">
103 102 <input id="example_checkboxes_03" type="checkbox">
104 103 <label for="example_checkboxes_03">Label of the first checkbox</label>
105 104 </div>
106 105 </div>
107 106 </div>
108 107
109 108
110 109 <div class='field field-sm'>
111 110 <div class='label'>
112 111 <label for='example_checkboxes'>Example multiple checkboxes:</label>
113 112 </div>
114 113 ## TODO: johbo: This is off compared to the checkboxes
115 114 <div class="radios">
116 115 <label><input type="radio" checked="checked" value="hg.create.repository" name="default_repo_create" id="default_repo_create_hgcreaterepository">Enabled</label>
117 116 <label><input type="radio" value="hg.create.none" name="default_repo_create" id="default_repo_create_hgcreatenone">Disabled</label>
118 117 <span class="help-block">
119 118 Permission to allow repository creation. This includes ability to create
120 119 repositories in root level. If this option is disabled admin of
121 120 repository group can still create repositories inside that
122 121 repository group.
123 122 </span>
124 123 </div>
125 124 </div>
126 125
127 126 <div class="buttons">
128 127 <input type="submit" value="Save" id="example_save" class="btn btn-sm">
129 128 <input type="reset" value="Reset" id="example_reset" class="btn btn-sm">
130 129 </div>
131 130
132 131 </div>
133 132 </div>
134 133 </form>
135 134 </div>
136 135
137 136
138 137
139 138
140 139 <h2>Help text in form elements</h2>
141 140
142 141 <div class="bs-example">
143 142 <form method='post' action=''>
144 143 <div class='form'>
145 144 <div class='fields'>
146 145
147 146 <div class='field field-sm'>
148 147 <div class='label'>
149 148 <label for='02_example_input'>Example input label:</label>
150 149 </div>
151 150 <div class='input'>
152 151 <input id="02_example_input" type="text" placeholder="Placeholder text">
153 152 <span class="help-block">
154 153 Example help text for this input element. This help text
155 154 will be shown under the input element itself. It can be
156 155 so long that it will span multiple lines.
157 156 </span>
158 157 </div>
159 158 </div>
160 159
161 160 <div class='field field-sm'>
162 161 <div class='label'>
163 162 <label for='02_example_checkbox'>Example checkbox with help block:</label>
164 163 </div>
165 164 <div class="checkboxes">
166 165 <div class="checkbox">
167 166 <input id="02_example_checkbox" type="checkbox">
168 167 <label for="02_example_checkbox">Label of the checkbox</label>
169 168 </div>
170 169 <span class="help-block">
171 170 Example help text for this checkbox element. This help text
172 171 will be shown under the checkbox element itself. It can be
173 172 so long that it will span multiple lines.
174 173 </span>
175 174 </div>
176 175 </div>
177 176
178 177
179 178 <div class='field field-sm'>
180 179 <div class='label'>
181 180 <label>Multiple checkboxes:</label>
182 181 </div>
183 182 <div class="checkboxes">
184 183 <div class="checkbox">
185 184 <input id="02_example_checkboxes_01" type="checkbox">
186 185 <label for="02_example_checkboxes_01">Label of the first checkbox</label>
187 186 </div>
188 187 <div class="checkbox">
189 188 <input id="02_example_checkboxes_02" type="checkbox">
190 189 <label for="02_example_checkboxes_02">Label of the first checkbox</label>
191 190 </div>
192 191 <div class="checkbox">
193 192 <input id="02_example_checkboxes_03" type="checkbox">
194 193 <label for="02_example_checkboxes_03">Label of the first checkbox</label>
195 194 </div>
196 195 <span class="help-block">
197 196 Example help text for this checkbox element. This help text
198 197 will be shown under the checkbox element itself. It can be
199 198 so long that it will span multiple lines.
200 199 </span>
201 200 </div>
202 201 </div>
203 202
204 203
205 204 </div>
206 205 </div>
207 206 </form>
208 207 </div>
209 208
210 209
211 210
212 211
213 212 <h2>Error messages</h2>
214 213
215 214 <div class="bs-example">
216 215 <form method='post' action=''>
217 216 <div class='form'>
218 217 <div class='fields'>
219 218
220 219 <div class='field field-sm'>
221 220 <div class='label'>
222 221 <label for='04_example_input'>Example input label:</label>
223 222 </div>
224 223 <div class='input'>
225 224 <input id="04_example_input" type="text" placeholder="Example input"/>
226 225 <span class="error-message">
227 226 If form validation fails, some input fields can show an
228 227 error message close to the field.
229 228 </span>
230 229 </div>
231 230 </div>
232 231
233 232 </div>
234 233 </div>
235 234 </form>
236 235 </div>
237 236
238 237
239 238 <h2>Fields with buttons</h2>
240 239
241 240 <div class="bs-example">
242 241 <form method='post' action=''>
243 242 <div class='form'>
244 243 <div class='fields'>
245 244
246 245 <div class='field field-sm'>
247 246 <div class='label'>
248 247 <label for='05_example_input'>Example input label:</label>
249 248 </div>
250 249 <div class='input'>
251 250 <input id="05_example_input" type="text" readonly="readonly" placeholder="Example input">
252 251 <span class="btn action_button btn-x">
253 252 <i class="icon-remove"></i>
254 253 delete
255 254 </span>
256 255 <span class="help-block">
257 256 Used if there is a list of values and the user can remove
258 257 single entries.
259 258 </span>
260 259 </div>
261 260 </div>
262 261
263 262
264 263 <div class='field field-sm'>
265 264 <div class='label'>
266 265 <label for='05_example_input'>Example input label:</label>
267 266 </div>
268 267 <div class='input'>
269 268 <input id="05_example_input" type="text" readonly="readonly" placeholder="Example input">
270 269 <span title="Click to unlock. You must restart RhodeCode in order to make this setting take effect."
271 270 class="tooltip" id="path_unlock"
272 271 tt_title="Click to unlock. You must restart RhodeCode in order to make this setting take effect.">
273 272 <div class="btn btn-default">
274 273 <span><i class="icon-lock" id="path_unlock_icon"></i></span>
275 274 </div>
276 275 </span>
277 276 <span class="help-block">
278 277 Used together with locked fields, the user has to first
279 278 unlock and afterwards it is possible to change the value.
280 279 </span>
281 280 </div>
282 281 </div>
283 282
284 283 </div>
285 284 </div>
286 285 </form>
287 286 </div>
288 287
289 288
290 289
291 290
292 291 </div>
293 292 </div> <!-- .main-content -->
294 293 </div> <!-- .box -->
295 294 </%def>
@@ -1,619 +1,618 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Simple form elements (Depreciated)</h2>
23 22
24 23 <div class="bs-example">
25 24 <form method='post' action='none'>
26 25 <div class='form'>
27 26 <div class='fields'>
28 27
29 28 <div class='field'>
30 29 <div class='label'>
31 30 <label for='example_input_ro'>Example input readonly:</label>
32 31 </div>
33 32 <div class='input'>
34 33 <input id="example_input_ro" type="text" readonly="readonly" placeholder="Example input">
35 34 </div>
36 35 </div>
37 36
38 37 <div class='field'>
39 38 <div class='label'>
40 39 <label for='example_input'>Example text:</label>
41 40 </div>
42 41 <div class='input'>
43 42 <div class='text-as-placeholder'>
44 43 http://something.example.com
45 44 <span class="link" id="edit_clone_uri">${_('edit')}</span>
46 45 </div>
47 46 <p class='help-block'>Help text in a paragraph.</p>
48 47 </div>
49 48 </div>
50 49
51 50 <div class='field'>
52 51 <div class='label'>
53 52 <label for='example_select'>Example select input:</label>
54 53 </div>
55 54 <div class="select">
56 55 <select id="example_select" >
57 56 <option value="#">${_('Templates...')}</option>
58 57 <option value="ga">Google Analytics</option>
59 58 <option value="clicky">Clicky</option>
60 59 <option value="server_announce">${_('Server Announcement')}</option>
61 60 </select>
62 61 </div>
63 62 </div>
64 63 <script>
65 64 $(document).ready(function() {
66 65 $('#example_select').select2({
67 66 containerCssClass: 'drop-menu',
68 67 dropdownCssClass: 'drop-menu-dropdown',
69 68 dropdownAutoWidth: true,
70 69 minimumResultsForSearch: -1
71 70 });
72 71 });
73 72 </script>
74 73
75 74 <div class='field'>
76 75 <div class='label'>
77 76 <label for='example_select'>Example select input:</label>
78 77 </div>
79 78 <div class="select">
80 79 text before
81 80 <select id="example_select2" >
82 81 <option value="#">${_('Templates...')}</option>
83 82 <option value="ga">Google Analytics</option>
84 83 <option value="clicky">Clicky</option>
85 84 <option value="server_announce">${_('Server Announcement')}</option>
86 85 </select>
87 86 text after
88 87 </div>
89 88 </div>
90 89 <script>
91 90 $(document).ready(function() {
92 91 $('#example_select2').select2({
93 92 containerCssClass: 'drop-menu',
94 93 dropdownCssClass: 'drop-menu-dropdown',
95 94 dropdownAutoWidth: true,
96 95 minimumResultsForSearch: -1
97 96 });
98 97 });
99 98 </script>
100 99
101 100 <div class='field'>
102 101 <div class='label'>
103 102 <label for='example_select'>Example select input with submenus:</label>
104 103 </div>
105 104 <div class="select">
106 105 <select id="example_select_sub" >
107 106 <option value="#">${_('Default')}</option>
108 107 <optgroup label="Group 1">
109 108 <option>Option 1.1</option>
110 109 </optgroup>
111 110 <optgroup label="Group 2">
112 111 <option>Option 2.1</option>
113 112 <option>Option 2.2</option>
114 113 </optgroup>
115 114 <optgroup label="Group 3" disabled>
116 115 <option>Option 3.1</option>
117 116 <option>Option 3.2</option>
118 117 <option>Option 3.3</option>
119 118 </optgroup>
120 119 </select>
121 120 </div>
122 121 </div>
123 122 <script>
124 123 $(document).ready(function() {
125 124 $('#example_select_sub').select2({
126 125 containerCssClass: 'drop-menu',
127 126 dropdownCssClass: 'drop-menu-dropdown',
128 127 dropdownAutoWidth: true,
129 128 minimumResultsForSearch: -1
130 129 });
131 130 });
132 131 </script>
133 132
134 133 <div class='field'>
135 134 <div class='label'>
136 135 <label for='example_checkbox'>Example checkbox:</label>
137 136 </div>
138 137 <div class="checkboxes">
139 138 <div class="checkbox">
140 139 <input id="example_checkbox" type="checkbox">
141 140 <label for="example_checkbox">Label of the checkbox</label>
142 141 </div>
143 142 </div>
144 143 </div>
145 144
146 145 <div class='field'>
147 146 <div class='label'>
148 147 <label for='example_checkboxes'>Example multiple checkboxes:</label>
149 148 </div>
150 149 <div class="checkboxes">
151 150 <div class="checkbox">
152 151 <input id="example_checkboxes_01" type="checkbox">
153 152 <label for="example_checkboxes_01">Label of the first checkbox</label>
154 153 </div>
155 154 <div class="checkbox">
156 155 <input id="example_checkboxes_02" type="checkbox">
157 156 <label for="example_checkboxes_02">Label of the first checkbox</label>
158 157 </div>
159 158 <div class="checkbox">
160 159 <input id="example_checkboxes_03" type="checkbox">
161 160 <label for="example_checkboxes_03">Label of the first checkbox</label>
162 161 </div>
163 162 </div>
164 163 </div>
165 164
166 165
167 166 <div class='field'>
168 167 <div class='label'>
169 168 <label for='example_checkboxes'>Example multiple checkboxes:</label>
170 169 </div>
171 170 ## TODO: johbo: This is off compared to the checkboxes
172 171 <div class="radios">
173 172 <label><input type="radio" checked="checked" value="hg.create.repository" name="default_repo_create" id="default_repo_create_hgcreaterepository">Enabled</label>
174 173 <label><input type="radio" value="hg.create.none" name="default_repo_create" id="default_repo_create_hgcreatenone">Disabled</label>
175 174 <span class="help-block">
176 175 Permission to allow repository creation. This includes ability to create
177 176 repositories in root level. If this option is disabled admin of
178 177 repository group can still create repositories inside that
179 178 repository group.
180 179 </span>
181 180 </div>
182 181 </div>
183 182
184 183 <div class="buttons">
185 184 <input type="submit" value="Save" id="example_save" class="btn">
186 185 <input type="reset" value="Reset" id="example_reset" class="btn">
187 186 </div>
188 187
189 188 </div>
190 189 </div>
191 190 </form>
192 191 </div>
193 192
194 193
195 194
196 195
197 196 <h2>Help text in form elements</h2>
198 197
199 198 <div class="bs-example">
200 199 <form method='post' action=''>
201 200 <div class='form'>
202 201 <div class='fields'>
203 202
204 203 <div class='field'>
205 204 <div class='label'>
206 205 <label for='02_example_input'>Example input label:</label>
207 206 </div>
208 207 <div class='input'>
209 208 <input id="02_example_input" type="text" placeholder="Placeholder text">
210 209 <span class="help-block">
211 210 Example help text for this input element. This help text
212 211 will be shown under the input element itself. It can be
213 212 so long that it will span multiple lines.
214 213 </span>
215 214
216 215 </div>
217 216 </div>
218 217
219 218 <div class='field'>
220 219 <div class='label'>
221 220 <label for='example_select_help'>Example select input:</label>
222 221 </div>
223 222 <div class="select">
224 223 <select id="example_select_help" >
225 224 <option value="#">${_('Templates...')}</option>
226 225 <option value="ga">Google Analytics</option>
227 226 <option value="clicky">Clicky</option>
228 227 <option value="server_announce">${_('Server Announcement')}</option>
229 228 </select>
230 229 <span class="help-block">
231 230 Example help text for this input element. This help text
232 231 will be shown under the input element itself. It can be
233 232 so long that it will span multiple lines.
234 233 </span>
235 234 </div>
236 235 </div>
237 236 <script>
238 237 $(document).ready(function() {
239 238 $('#example_select_help').select2({
240 239 containerCssClass: 'drop-menu',
241 240 dropdownCssClass: 'drop-menu-dropdown',
242 241 dropdownAutoWidth: true,
243 242 minimumResultsForSearch: -1
244 243 });
245 244 });
246 245 </script>
247 246
248 247 <div class='field'>
249 248 <div class='label'>
250 249 <label for='02_example_checkbox'>Example checkbox with help block:</label>
251 250 </div>
252 251 <div class="checkboxes">
253 252 <div class="checkbox">
254 253 <input id="02_example_checkbox" type="checkbox">
255 254 <label for="02_example_checkbox">Label of the checkbox</label>
256 255 </div>
257 256 <span class="help-block">
258 257 Example help text for this checkbox element. This help text
259 258 will be shown under the checkbox element itself. It can be
260 259 so long that it will span multiple lines.
261 260 </span>
262 261 </div>
263 262 </div>
264 263
265 264
266 265 <div class='field'>
267 266 <div class='label'>
268 267 <label>Multiple checkboxes:</label>
269 268 </div>
270 269 <div class="checkboxes">
271 270 <div class="checkbox">
272 271 <input id="02_example_checkboxes_01" type="checkbox">
273 272 <label for="02_example_checkboxes_01">Label of the first checkbox</label>
274 273 </div>
275 274 <div class="checkbox">
276 275 <input id="02_example_checkboxes_02" type="checkbox">
277 276 <label for="02_example_checkboxes_02">Label of the first checkbox</label>
278 277 </div>
279 278 <div class="checkbox">
280 279 <input id="02_example_checkboxes_03" type="checkbox">
281 280 <label for="02_example_checkboxes_03">Label of the first checkbox</label>
282 281 </div>
283 282 <span class="help-block">
284 283 Example help text for this checkbox element. This help text
285 284 will be shown under the checkbox element itself. It can be
286 285 so long that it will span multiple lines.
287 286 </span>
288 287 </div>
289 288 </div>
290 289
291 290
292 291 </div>
293 292 </div>
294 293 </form>
295 294 </div>
296 295
297 296
298 297
299 298
300 299 <h2>Error messages</h2>
301 300
302 301 <div class="bs-example">
303 302 <form method='post' action=''>
304 303 <div class='form'>
305 304 <div class='fields'>
306 305
307 306 <div class='field'>
308 307 <div class='label'>
309 308 <label for='04_example_input'>Example input label:</label>
310 309 </div>
311 310 <div class='input'>
312 311 <input id="04_example_input" type="text" placeholder="Example input"/>
313 312 <span class="error-message">
314 313 If form validation fails, some input fields can show an
315 314 error message close to the field.
316 315 </span>
317 316 </div>
318 317 </div>
319 318
320 319 </div>
321 320 </div>
322 321 </form>
323 322 </div>
324 323
325 324
326 325
327 326
328 327 <h2>Fields with buttons</h2>
329 328
330 329 <div class="bs-example">
331 330 <form method='post' action=''>
332 331 <div class='form'>
333 332 <div class='fields'>
334 333
335 334 <div class='field'>
336 335 <div class='label'>
337 336 <label for='05_example_input'>Example input label:</label>
338 337 </div>
339 338 <div class='input'>
340 339 <input id="05_example_input" type="text" readonly="readonly" placeholder="Example input">
341 340 <span class="btn btn-x">
342 341 <i class="icon-remove"></i>
343 342 delete
344 343 </span>
345 344 <button class='btn btn-primary'>Action</button>
346 345 <span class="help-block">
347 346 Used if there is a list of values and the user can remove
348 347 single entries.
349 348 </span>
350 349 </div>
351 350 </div>
352 351
353 352
354 353 <div class='field'>
355 354 <div class='label'>
356 355 <label for='05_example_input'>Example input label:</label>
357 356 </div>
358 357 <div class='input'>
359 358 <input id="05_example_input" type="text" readonly="readonly" placeholder="Example input">
360 359 <span title="Click to unlock. You must restart RhodeCode in order to make this setting take effect."
361 360 class="tooltip" id="path_unlock"
362 361 tt_title="Click to unlock. You must restart RhodeCode in order to make this setting take effect.">
363 362 <div class="btn btn-default">
364 363 <span><i class="icon-lock" id="path_unlock_icon"></i></span>
365 364 </div>
366 365 <button class='btn btn-primary'>Action</button>
367 366 </span>
368 367 <span class="help-block">
369 368 Used together with locked fields, the user has to first
370 369 unlock and afterwards it is possible to change the value.
371 370 </span>
372 371 </div>
373 372 </div>
374 373
375 374 <div class='field'>
376 375 <div class='label'>
377 376 <label for='05_example_select'>Example input label:</label>
378 377 </div>
379 378 <div class="select">
380 379 <select id="05_example_select" >
381 380 <option value="#">${_('Templates...')}</option>
382 381 <option value="ga">Google Analytics</option>
383 382 <option value="clicky">Clicky</option>
384 383 <option value="server_announce">${_('Server Announcement')}</option>
385 384 </select>
386 385 <button class='btn btn-primary'>Action</button>
387 386 </div>
388 387 </div>
389 388 <script>
390 389 $(document).ready(function() {
391 390 $('#05_example_select').select2({
392 391 containerCssClass: 'drop-menu',
393 392 dropdownCssClass: 'drop-menu-dropdown',
394 393 dropdownAutoWidth: true
395 394 });
396 395 });
397 396 </script>
398 397
399 398 <div class='field'>
400 399 <div class='label'>
401 400 <label for='05_example_select2'>Example input label:</label>
402 401 </div>
403 402 <div class="select">
404 403 <span>Some text</span>
405 404 before
406 405 <select id="05_example_select2" >
407 406 <option value="#">${_('Templates...')}</option>
408 407 <option value="ga">Google Analytics</option>
409 408 <option value="clicky">Clicky</option>
410 409 <option value="server_announce">${_('Server Announcement')}</option>
411 410 </select>
412 411 after
413 412 <button class='btn btn-primary'>Action</button>
414 413 Some text
415 414 </div>
416 415 </div>
417 416 <script>
418 417 $(document).ready(function() {
419 418 $('#05_example_select2').select2({
420 419 containerCssClass: 'drop-menu',
421 420 dropdownCssClass: 'drop-menu-dropdown',
422 421 dropdownAutoWidth: true
423 422 });
424 423 });
425 424 </script>
426 425
427 426
428 427 </div>
429 428 </div>
430 429 </form>
431 430 </div>
432 431
433 432
434 433
435 434 <h2>Definition lists together with forms</h2>
436 435
437 436 <p>Some pages list values in a definition list. These lists align
438 437 properly with form elements on the same page.</p>
439 438
440 439 <div class="bs-example">
441 440
442 441 <dl class="dl-horizontal">
443 442 <dt>RhodeCode version:</dt>
444 443 <dd title="">3.0.0</dd>
445 444 <dt>License token:</dt>
446 445 <dd title=""><pre>abra-cada-bra1-rce3</pre></dd>
447 446 <dt>License issued to:</dt>
448 447 <dd title="">RhodeCode Trial (RhodeCode GmbH)</dd>
449 448 <dt>License issued on:</dt>
450 449 <dd title="">Sun, 07 Dec 2014 16:34:10</dd>
451 450 <dt>License expires on:</dt>
452 451 <dd title="">Fri, 05 Jun 2015 17:34:10</dd>
453 452 <dt>License type:</dt>
454 453 <dd title="">trial</dd>
455 454 <dt>License users limit:</dt>
456 455 <dd title="">20</dd>
457 456 </dl>
458 457
459 458 <form method='post' action=''>
460 459 <div class='form'>
461 460 <div class='fields'>
462 461
463 462 <div class='field'>
464 463 <div class='label'>
465 464 <label for='07_example_input'>Example input label:</label>
466 465 </div>
467 466 <div class='input'>
468 467 <input id="07_example_input" type="text" placeholder="Example input">
469 468 </div>
470 469 </div>
471 470
472 471 <div class="buttons">
473 472 <input type="submit" value="Save" id="07_example_save" class="btn">
474 473 <input type="reset" value="Reset" id="07_example_reset" class="btn">
475 474 </div>
476 475 </div>
477 476 </div>
478 477 </form>
479 478
480 479 </div>
481 480
482 481
483 482
484 483
485 484
486 485 <h2>Multi select widget</h2>
487 486
488 487 <p>This example shows two multi select widgets, one having no selects
489 488 currently. It is mixed up with other form elements to show the
490 489 magin effects.</p>
491 490
492 491 <div class="bs-example">
493 492
494 493 <form method='post' action=''>
495 494 <div class='form'>
496 495 <div class='fields'>
497 496
498 497 <div class='field'>
499 498 <div class='label'>
500 499 <label for='example_input'>Example input label:</label>
501 500 </div>
502 501 <div class='input'>
503 502 <input id="example_input" type="text" placeholder="Example input">
504 503 </div>
505 504 </div>
506 505
507 506 <div class="field">
508 507 <div class="label">
509 508 <label for="users_group_active">${_('Members')}:</label>
510 509 </div>
511 510 <div class="select side-by-side-selector">
512 511 <div class="left-group">
513 512 <label class="text" >${_('Chosen group members')}</label>
514 513 <select id="users_group_members" multiple size='8'>
515 514 <option value="#">${_('Templates...')}</option>
516 515 <option value="ga">Google Analytics</option>
517 516 <option value="clicky">Clicky</option>
518 517 <option value="server_announce">${_('Server Announcement')}</option>
519 518 <option value="#">${_('Templates...')}</option>
520 519 <option value="ga">Google Analytics</option>
521 520 <option value="clicky">Clicky</option>
522 521 <option value="server_announce">${_('Server Announcement')}</option>
523 522 </select>
524 523 <div class="btn" id="remove_all_elements" >
525 524 ${_('Remove all elements')}
526 525 <i class="icon-chevron-right"></i>
527 526 </div>
528 527 </div>
529 528 <div class="middle-group">
530 529 <i id="add_element" class="icon-chevron-left"></i>
531 530 <br />
532 531 <i id="remove_element" class="icon-chevron-right"></i>
533 532 </div>
534 533 <div class="right-group">
535 534 <label class="text" >${_('Available members')}</label>
536 535 <select id="available_members" multiple size='8'>
537 536 <option value="#">${_('Templates...')}</option>
538 537 <option value="ga">Google Analytics</option>
539 538 <option value="clicky">Clicky</option>
540 539 <option value="server_announce">${_('Server Announcement')}</option>
541 540 </select>
542 541 <div class="btn" id="add_all_elements" >
543 542 <i class="icon-chevron-left"></i>${_('Add all elements')}
544 543 </div>
545 544 </div>
546 545 </div>
547 546
548 547 </div>
549 548
550 549 <div class='field'>
551 550 <div class='label'>
552 551 <label for='example_input'>Example input label:</label>
553 552 </div>
554 553 <div class='input'>
555 554 <input id="example_input" type="text" placeholder="Example input">
556 555 </div>
557 556 </div>
558 557
559 558 <div class="field">
560 559 <div class="label">
561 560 <label for="users_group_active2">Members with one side empty:</label>
562 561 </div>
563 562 <div class="select side-by-side-selector">
564 563 <div class="left-group">
565 564 <label class="text" >${_('Chosen group members')}</label>
566 565 <select id="users_group_members2" multiple size='8'>
567 566 </select>
568 567 <div class="btn" id="remove_all_elements2" >
569 568 ${_('Remove all elements')}
570 569 <i class="icon-chevron-right"></i>
571 570 </div>
572 571 </div>
573 572 <div class="middle-group">
574 573 <i id="add_element2" class="icon-chevron-left"></i>
575 574 <br />
576 575 <i id="remove_element2" class="icon-chevron-right"></i>
577 576 </div>
578 577 <div class="right-group">
579 578 <label class="text" >${_('Available members')}</label>
580 579 <select id="available_members2" multiple size='8'>
581 580 <option value="#">${_('Templates...')}</option>
582 581 <option value="ga">Google Analytics</option>
583 582 <option value="clicky">Clicky</option>
584 583 <option value="server_announce">${_('Server Announcement')}</option>
585 584 </select>
586 585 <div class="btn" id="add_all_elements2" >
587 586 <i class="icon-chevron-left"></i>${_('Add all elements')}
588 587 </div>
589 588 </div>
590 589 </div>
591 590
592 591 </div>
593 592
594 593 <div class='field'>
595 594 <div class='label'>
596 595 <label for='example_input'>Example input label:</label>
597 596 </div>
598 597 <div class='input'>
599 598 <input id="example_input" type="text" placeholder="Example input">
600 599 </div>
601 600 </div>
602 601
603 602 <div class="buttons">
604 603 <input type="submit" value="Save" id="07_example_save" class="btn">
605 604 <input type="reset" value="Reset" id="07_example_reset" class="btn">
606 605 </div>
607 606 </div>
608 607 </div>
609 608 </form>
610 609
611 610 </div>
612 611
613 612
614 613
615 614
616 615 </div>
617 616 </div> <!-- .main-content -->
618 617 </div> <!-- .box -->
619 618 </%def>
@@ -1,174 +1,173 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21
23 22 <h2>Inline form elements</h2>
24 23
25 24 <p>A few places have a button close to an input element or similar.</p>
26 25
27 26
28 27 <h3>Submit button after select element</h3>
29 28
30 29 <div class="bs-example">
31 30
32 31 ## TODO: johbo: not sure if we should add a class like .form-inline
33 32 ## here. Seems to work good enough right now.
34 33 <form method="post" action="">
35 34 <div class="form">
36 35 <div class="fields">
37 36 <select id="example_select" >
38 37 <option value="#">${_('Templates...')}</option>
39 38 <option value="ga">Google Analytics</option>
40 39 <option value="clicky">Clicky</option>
41 40 <option value="server_announce">${_('Server Announcement')}</option>
42 41 </select>
43 42 <input type="submit" value="Set" id="example_save" class="btn">
44 43 </div>
45 44
46 45 <script>
47 46 $(document).ready(function() {
48 47 $('#example_select').select2({
49 48 containerCssClass: 'drop-menu',
50 49 dropdownCssClass: 'drop-menu-dropdown',
51 50 dropdownAutoWidth: true,
52 51 minimumResultsForSearch: -1
53 52 });
54 53 });
55 54 </script>
56 55
57 56 </div>
58 57 </form>
59 58
60 59 </div>
61 60
62 61
63 62
64 63 <h3>Submit button after input element</h3>
65 64
66 65 <div class="bs-example">
67 66
68 67 ## TODO: johbo: not sure if we should add a class like .form-inline
69 68 ## here. Seems to work good enough right now.
70 69 <form method="post" action="">
71 70 <div class="form">
72 71
73 72 <div class="fields">
74 73 <input type="text" id="example_input" placeholder="Placeholder...">
75 74 <input type="submit" value="Set" id="example_save" class="btn">
76 75 </div>
77 76
78 77 </div>
79 78 </form>
80 79
81 80 </div>
82 81
83 82
84 83
85 84 <h3>Submit and Reset button after input element</h3>
86 85
87 86 <div class="bs-example">
88 87
89 88 ## TODO: johbo: not sure if we should add a class like .form-inline
90 89 ## here. Seems to work good enough right now.
91 90 <form method="post" action="">
92 91 <div class="form">
93 92
94 93 <div class="fields">
95 94 <input type="text" id="example_input" placeholder="Placeholder...">
96 95 <input type="submit" value="Set" id="example_save" class="btn">
97 96 <input type="reset" value="Reset" id="example_reset" class="btn">
98 97 </div>
99 98
100 99 </div>
101 100 </form>
102 101
103 102 </div>
104 103
105 104
106 105
107 106 <h3>Checkbox wrapped in the label itself</h3>
108 107
109 108 <div class="bs-example">
110 109
111 110 <div class="field">
112 111 <label><input id="example_label_checkbox" type="checkbox">Checkbox with label around it</label>
113 112 </div>
114 113
115 114 <div class="field">
116 115 <label><input id="example_label_checkbox" type="radio">Radio with label around it</label>
117 116 </div>
118 117
119 118 </div>
120 119
121 120
122 121 <h3>Checkbox wrapped in the label itself</h3>
123 122
124 123 <div class="bs-example">
125 124
126 125 <div class="form">
127 126 <div class="fields">
128 127 <label>Label</label> <input type="text">
129 128 </div>
130 129 </div>
131 130 </div>
132 131
133 132
134 133 <div class="bs-example">
135 134 <div class="form">
136 135 <div class="fields">
137 136 <label>Label</label>
138 137 <select id="02_example_select1" >
139 138 <option value="#">${_('Templates...')}</option>
140 139 <option value="ga">Google Analytics</option>
141 140 <option value="clicky">Clicky</option>
142 141 <option value="server_announce">${_('Server Announcement')}</option>
143 142 </select>
144 143
145 144 <label>Label</label>
146 145 <select id="02_example_select2" >
147 146 <option value="#">${_('Templates...')}</option>
148 147 <option value="ga">Google Analytics</option>
149 148 <option value="clicky">Clicky</option>
150 149 <option value="server_announce">${_('Server Announcement')}</option>
151 150 </select>
152 151 </div>
153 152 </div>
154 153
155 154 <script>
156 155 $(document).ready(function() {
157 156 $('#02_example_select1').select2({
158 157 containerCssClass: 'drop-menu',
159 158 dropdownCssClass: 'drop-menu-dropdown',
160 159 dropdownAutoWidth: true,
161 160 minimumResultsForSearch: -1
162 161 });
163 162 $('#02_example_select2').select2({
164 163 containerCssClass: 'drop-menu',
165 164 dropdownCssClass: 'drop-menu-dropdown',
166 165 dropdownAutoWidth: true,
167 166 minimumResultsForSearch: -1
168 167 });
169 168 });
170 169 </script>
171 170 </div>
172 171 </div>
173 172 </div>
174 173 </%def>
@@ -1,144 +1,143 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 ##main
18 17 <div class='sidebar-col-wrapper'>
19 18 ${self.sidebar()}
20 19
21 20 <div class="main-content">
22 21
23 22 <h2>Vertical forms</h2>
24 23
25 24 <p>Adding the class <code>.form-vertical</code> will align the form
26 25 elements differently. Otherwise it is the same structure of HTML
27 26 elements.</p>
28 27
29 28 <h2>Simple form elements</h2>
30 29
31 30 <div class="bs-example">
32 31 <form method='post' action='none'>
33 32 <div class='form form-vertical'>
34 33 <div class='fields'>
35 34
36 35 <div class='field'>
37 36 <div class='label'>
38 37 <label for='example_input'>Example input label:</label>
39 38 </div>
40 39 <div class='input'>
41 40 <input id="example_input" type="text" placeholder="Example input">
42 41 </div>
43 42 </div>
44 43
45 44 <div class='field'>
46 45 <div class='label'>
47 46 <label for='example_input_ro'>Example input readonly:</label>
48 47 </div>
49 48 <div class='input'>
50 49 <input id="example_input_ro" type="text" readonly="readonly" placeholder="Example input">
51 50 </div>
52 51 </div>
53 52
54 53 <div class='field'>
55 54 <div class='label'>
56 55 <label for='example_select'>Example select input:</label>
57 56 </div>
58 57 <div class="select">
59 58 <select id="example_select" >
60 59 <option value="#">${_('Templates...')}</option>
61 60 <option value="ga">Google Analytics</option>
62 61 <option value="clicky">Clicky</option>
63 62 <option value="server_announce">${_('Server Announcement')}</option>
64 63 </select>
65 64 </div>
66 65 </div>
67 66 <script>
68 67 $(document).ready(function() {
69 68 $('#example_select').select2({
70 69 containerCssClass: 'drop-menu',
71 70 dropdownCssClass: 'drop-menu-dropdown',
72 71 dropdownAutoWidth: true,
73 72 minimumResultsForSearch: -1
74 73 });
75 74 });
76 75 </script>
77 76
78 77 <div class='field'>
79 78 <div class='label'>
80 79 <label for='example_checkbox'>Example checkbox:</label>
81 80 </div>
82 81 <div class="checkboxes">
83 82 <div class="checkbox">
84 83 <input id="example_checkbox" type="checkbox">
85 84 <label for="example_checkbox">Label of the checkbox</label>
86 85 </div>
87 86 </div>
88 87 </div>
89 88
90 89 <div class='field'>
91 90 <div class='label'>
92 91 <label for='example_checkboxes'>Example multiple checkboxes:</label>
93 92 </div>
94 93 <div class="checkboxes">
95 94 <div class="checkbox">
96 95 <input id="example_checkboxes_01" type="checkbox">
97 96 <label for="example_checkboxes_01">Label of the first checkbox</label>
98 97 </div>
99 98 <div class="checkbox">
100 99 <input id="example_checkboxes_02" type="checkbox">
101 100 <label for="example_checkboxes_02">Label of the first checkbox</label>
102 101 </div>
103 102 <div class="checkbox">
104 103 <input id="example_checkboxes_03" type="checkbox">
105 104 <label for="example_checkboxes_03">Label of the first checkbox</label>
106 105 </div>
107 106 </div>
108 107 </div>
109 108
110 109
111 110 <div class='field'>
112 111 <div class='label'>
113 112 <label for='example_checkboxes'>Example multiple checkboxes:</label>
114 113 </div>
115 114 ## TODO: johbo: This is off compared to the checkboxes
116 115 <div class="radios">
117 116 <label><input type="radio" checked="checked" value="hg.create.repository" name="default_repo_create" id="default_repo_create_hgcreaterepository">Enabled</label>
118 117 <label><input type="radio" value="hg.create.none" name="default_repo_create" id="default_repo_create_hgcreatenone">Disabled</label>
119 118 <span class="help-block">
120 119 Permission to allow repository creation. This includes ability
121 120 to create repositories in root level. If this option is
122 121 disabled admin of repository group can still create
123 122 repositories inside that repository group.
124 123 </span>
125 124 </div>
126 125 </div>
127 126
128 127 <div class="buttons">
129 128 <input type="submit" value="Save" id="example_save" class="btn">
130 129 <input type="reset" value="Reset" id="example_reset" class="btn">
131 130 </div>
132 131
133 132 </div>
134 133 </div>
135 134 </form>
136 135
137 136 </div>
138 137
139 138
140 139
141 140 </div>
142 141 </div>
143 142 </div>
144 143 </%def>
@@ -1,273 +1,272 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Simple form elements</h2>
23 22 <p>When working with forms, please upgrade to this new form layout. See the depreciated forms pages for the previous layout.</p>
24 23 <p>These forms are marked by the class <code>rcform</code>. See html for details on formatting.
25 24 </p>
26 25 <p>Some other notes: The customized checkboxes and radio buttons use the label for styling. This has been disabled for lower versions of IE using the <code>:not()</code> selector. Select2 dropdowns need to be redone, but this may be in a later iteration.
27 26 </p>
28 27
29 28 <h2>Examples</h2>
30 29
31 30 <form method='post' action='none' class="rcform">
32 31
33 32 <fieldset>
34 33 <legend>Dropdown:</legend>
35 34 <div class="fields">
36 35 <select id="example_select" >
37 36 <option value="#">${_('Templates...')}</option>
38 37 <option value="ga">Google Analytics</option>
39 38 <option value="clicky">Clicky</option>
40 39 <option value="server_announce">${_('Server Announcement')}</ option>
41 40 </select>
42 41 <script>
43 42 $(document).ready(function() {
44 43 $('#example_select').select2({
45 44 containerCssClass: 'drop-menu',
46 45 dropdownCssClass: 'drop-menu-dropdown',
47 46 dropdownAutoWidth: true,
48 47 minimumResultsForSearch: -1
49 48 });
50 49 });
51 50 </script>
52 51 </fields>
53 52 </fieldset>
54 53
55 54 <fieldset>
56 55 <legend>Multiple Dropdowns in a list:</legend>
57 56 <ul class="fields formlist">
58 57 <li>
59 58 <select id="example_select3" >
60 59 <option value="#">${_('Templates...')}</option>
61 60 <option value="ga">Google Analytics</option>
62 61 <option value="clicky">Clicky</option>
63 62 <option value="server_announce">${_('Server Announcement')} </ option>
64 63 </select>
65 64 <script>
66 65 $(document).ready(function() {
67 66 $('#example_select3').select2({
68 67 containerCssClass: 'drop-menu',
69 68 dropdownCssClass: 'drop-menu-dropdown',
70 69 dropdownAutoWidth: true,
71 70 minimumResultsForSearch: -1
72 71 });
73 72 });
74 73 </script>
75 74 </li>
76 75 <li>
77 76 <select id="example_select4" >
78 77 <option value="#">${_('Templates...')}</option>
79 78 <option value="ga">Google Analytics</option>
80 79 <option value="clicky">Clicky</option>
81 80 <option value="server_announce">${_('Server Announcement')} </ option>
82 81 </select>
83 82 <script>
84 83 $(document).ready(function() {
85 84 $('#example_select4').select2({
86 85 containerCssClass: 'drop-menu',
87 86 dropdownCssClass: 'drop-menu-dropdown',
88 87 dropdownAutoWidth: true,
89 88 minimumResultsForSearch: -1
90 89 });
91 90 });
92 91 </script>
93 92 </li>
94 93 <li>
95 94 <select id="example_select5" >
96 95 <option value="#">${_('Templates...')}</option>
97 96 <option value="ga">Google Analytics</option>
98 97 <option value="clicky">Clicky</option>
99 98 <option value="server_announce">${_('Server Announcement')} </ option>
100 99 </select>
101 100 <script>
102 101 $(document).ready(function() {
103 102 $('#example_select5').select2({
104 103 containerCssClass: 'drop-menu',
105 104 dropdownCssClass: 'drop-menu-dropdown',
106 105 dropdownAutoWidth: true,
107 106 minimumResultsForSearch: -1
108 107 });
109 108 });
110 109 </script>
111 110 </li>
112 111 </ul>
113 112 </fieldset>
114 113
115 114 <fieldset>
116 115 <legend>Dropdown with checkbox:</legend>
117 116 <div class="fields">
118 117 <select id="example_select2" >
119 118 <option value="#">${_('Some text...')}</option>
120 119 <option value="ga">A really long thing</option>
121 120 <option value="clicky">Repo Name</option>
122 121 <option value="server_announce">${_('Variable Item')}</option>
123 122 </select>
124 123 <input type="checkbox" name="size" id="size_1" value="small"/>
125 124 <label for="size_1">Checkbox for something</label>\
126 125 <span class="label">Checkbox for something</span>
127 126 <span class="help-block">
128 127 Note: There is a very specific selector which centers the checkbox on the dropdown;
129 128 it requires that the script NOT be between the two.
130 129 </span>
131 130 </div>
132 131 <script>
133 132 $(document).ready(function() {
134 133 $('#example_select2').select2({
135 134 containerCssClass: 'drop-menu',
136 135 dropdownCssClass: 'drop-menu-dropdown',
137 136 dropdownAutoWidth: true,
138 137 minimumResultsForSearch: -1
139 138 });
140 139 });
141 140 </script>
142 141 </fieldset>
143 142
144 143 <fieldset>
145 144 <legend>Radio Buttons:</legend>
146 145 <div class="fields">
147 146 <input type="radio" name="size" id="size_2" value="small"/>
148 147 <label for="size_2">Radio one</label>
149 148 <span class="label">Radio Button One</span>
150 149 <input type="radio" name="size" id="size_3" value="small"/>
151 150 <label for="size_3">Radio two</label>
152 151 <span class="label">Radio Button Two</span>
153 152 <input type="radio" checked name="size" id="size_4" value="small"/>
154 153 <label for="size_4">Radio three</label>
155 154 <span class="label">Radio Button Three</span>
156 155 </div>
157 156 </fieldset>
158 157
159 158 <fieldset>
160 159 <legend>Checkboxes with help text:</legend>
161 160 <div class="fields">
162 161 <input type="checkbox" name="size" id="size_5" value="small"/>
163 162 <label for="size_5">Checkbox one</label>
164 163 <span class="label">Checkbox One</span>
165 164 <input type="checkbox" checked name="size" id="size_6" value="small"/>
166 165 <label for="size_6">Checkbox two</label>
167 166 <span class="label">Checkbox Two</span>
168 167 <input type="checkbox" checked name="size" id="size_7" value="small"/>
169 168 <label for="size_7">Checkbox three</label>
170 169 <span class="label">Checkbox Three</span>
171 170 <span class="help-block">
172 171 Help text can be put wherever needed. Inside of .fields, it is confined to the width of the input sections.
173 172 </span>
174 173 </div>
175 174 </fieldset>
176 175
177 176 <fieldset>
178 177 <legend>Checkboxes as a list:</legend>
179 178 <div class="fields">
180 179 <ul class="formlist">
181 180 <li>
182 181 <input type="checkbox" name="size" id="size_8" value="small "/>
183 182 <label for="size_8">Checkbox one</label>
184 183 <span class="label">Checkbox One</span>
185 184 </li>
186 185 <li>
187 186 <input type="checkbox" checked name="size" id="size_9" value=" small"/>
188 187 <label for="size_9">Checkbox two</label>
189 188 <span class="label">Checkbox Two</span>
190 189 </li>
191 190 <li>
192 191 <input type="checkbox" checked name="size" id="size_10" value=" small"/>
193 192 <label for="size_10">Checkbox three</label>
194 193 <span class="label">Checkbox Three</span>
195 194 </li>
196 195 </ul>
197 196 <span class="help-block">
198 197 In some instances, you may wish for dropdowns, checkboxes, or radio buttons to be in a list rather than inline. This is achieved using .formlist.
199 198 </span>
200 199 </div>
201 200 </fieldset>
202 201
203 202 <fieldset>
204 203 <legend>Text Input:</legend>
205 204 <div class="fields">
206 205 <input id="example_input" type="text" placeholder="Example input">
207 206 <input id="example_input" type="text" placeholder="Example input">
208 207 </div>
209 208 </fieldset>
210 209
211 210 <fieldset>
212 211 <legend>Textarea:</legend>
213 212 <div class="fields">
214 213 <textarea placeholder="This is a textarea."></textarea>
215 214 </div>
216 215 </fieldset>
217 216
218 217 <fieldset>
219 218 <legend>Some Inputs with a button:</legend>
220 219 <div class="fields">
221 220 <input class="disabled" id="paths_root_path" name="paths_root_path" readonly="readonly" size="59" type="text" value="Disabled input">
222 221 <span id="path_unlock" class="tooltip" title="Click to unlock. You must restart RhodeCode in order to make this setting take effect.">
223 222 <div class="btn btn-default">
224 223 <span><i id="path_unlock_icon" class="icon-lock"></i></span>
225 224 </div>
226 225 </span>
227 226 <input id="paths_root_path" name="paths_root_path" size="59" type="text" placeholder="Input">
228 227 <span class="btn btn-x" onclick="ajaxDeletePattern(11,'id11')">
229 228 Delete
230 229 </span>
231 230 </div>
232 231 </fieldset>
233 232
234 233 <fieldset class="select side-by-side-selector">
235 234 <div class="left-group">
236 235 <label class="text" >${_('Chosen group members')}</label>
237 236 <select id="users_group_members2" multiple size='8'>
238 237 </select>
239 238 <div class="btn" id="remove_all_elements2" >
240 239 ${_('Remove all elements')}
241 240 <i class="icon-chevron-right"></i>
242 241 </div>
243 242 </div>
244 243 <div class="middle-group">
245 244 <i id="add_element2" class="icon-chevron-left"></i>
246 245 <br />
247 246 <i id="remove_element2" class="icon-chevron-right"></i>
248 247 </div>
249 248 <div class="right-group">
250 249 <label class="text" >${_('Available members')}</label>
251 250 <select id="available_members2" multiple size='8'>
252 251 <option value="#">${_('Some example text...')}</option>
253 252 <option value="ga">A really long thing</option>
254 253 <option value="clicky">Repo Name</option>
255 254 <option value="server_announce">${_('Variable Item')}</option>
256 255 </select>
257 256 <div class="btn" id="add_all_elements2" >
258 257 <i class="icon-chevron-left"></i>${_('Add all elements')}
259 258 </div>
260 259 </div>
261 260 </fieldset>
262 261
263 262 <div class="buttons">
264 263 <input type="submit" value="Save" id="example_save" class="btn">
265 264 <input type="reset" value="Reset" id="example_reset" class="btn">
266 265 </div>
267 266
268 267 </form>
269 268
270 269 </div> <!-- .main-content -->
271 270 </div> <!-- .sidebar-col-wrappe -->
272 271 </div> <!-- .box -->
273 272 </%def>
@@ -1,90 +1,89 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Gravatars</h2>
23 22
24 23 <p>Usernames are always centered on an avatar to the left.
25 24 Avatars are 16px square.
26 25 For user settings/login, some exceptions may use a larger avatar.
27 26 Use base.gravatar for a gravatar only, and base.gravatar_with_user
28 27 for a gravatar with a username.
29 28 Use the format below:
30 29 </p>
31 30 <div class="bs-example template-example">
32 31 <div class="gravatar_with_user">
33 32 <img class="gravatar" alt="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=16">
34 33 <span title="Lolek Santos <lolek@rhodecode.com>" class="user">Lolek</span>
35 34 </div>
36 35 </div>
37 36 <div class="bs-example template-example">
38 37 <xmp>$</xmp><xmp>{base.gravatar_with_user(c.rhodecode_user.email, 16)}</xmp>
39 38 </div>
40 39 <div class="bs-example template-example">
41 40 <div class="gravatar_with_user">
42 41 <img class="gravatar gravatar-large" alt="gravatar" src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&amp;s=30">
43 42 <span title="Lolek Santos <lolek@rhodecode.com>" class="user">Lolek</span>
44 43 </div>
45 44 </div>
46 45 <div class="bs-example template-example">
47 46 <xmp>$</xmp><xmp>{base.gravatar_with_user(c.rhodecode_user.email, 30)}</xmp>
48 47 </div>
49 48 <p class="help-block">Note: Actual template variables may be different.</p>
50 49
51 50 <h2>Icon List</h2>
52 51
53 52
54 53 <table id="icons-list">
55 54 <%
56 55 import os
57 56 import string
58 57 with open(os.path.abspath('./rhodecode/public/css/rcicons.less')) as f:
59 58 source = f.read()
60 59 start = source.find('// -- ICON CLASSES -- //')
61 60 end = source.find('// -- END ICON CLASSES -- //')
62 61 source = source[start:end]
63 62
64 63 ico_data = []
65 64 for line in source.splitlines():
66 65 line = line.split(':before')
67 66 line = map(string.strip, line)
68 67 if len(line) in [2, 3]:
69 68 if len(line) == 2:
70 69 ico_cls, ico_code = line
71 70 else:
72 71 ico_cls, ico_code, rest = line
73 72
74 73 ico_code = ico_code[:ico_code.find('/*')]
75 74 ico_data.append([ico_cls, ico_code])
76 75
77 76 %>
78 77 % for ico_cls, ico_code in ico_data:
79 78 <tr class="row">
80 79 <td title="Code: ${ico_code}" class="the-icons span3"><i class="${ico_cls[1:]}"></i><td/>
81 80 <td><span class="i-name">${ico_cls}</span></td>
82 81 <td><span class="i-code">${ico_code}</span></td>
83 82 </tr>
84 83 % endfor
85 84
86 85 </table>
87 86 </div>
88 87 </div>
89 88 </div>
90 89 </%def> No newline at end of file
@@ -1,80 +1,79 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/base/base.mako"/>
3 2
4 3 <%def name="title()">
5 4 ${_('Debug Style')}
6 5 %if c.rhodecode_name:
7 6 &middot; ${h.branding(c.rhodecode_name)}
8 7 %endif
9 8 </%def>
10 9
11 10 <%def name="breadcrumbs_links()">
12 11 ${_('Style')}
13 12 </%def>
14 13
15 14 <%def name="menu_bar_nav()">
16 15 ${self.menu_items(active='debug_style')}
17 16 </%def>
18 17
19 18
20 19 <%def name="main()">
21 20 <div id="style-page">
22 21 ${self.real_main()}
23 22 </div>
24 23 </%def>
25 24
26 25 <%def name="real_main()">
27 26 <div class="box">
28 27 <div class="title">
29 28 ${self.breadcrumbs()}
30 29 </div>
31 30
32 31 <div class='sidebar-col-wrapper'>
33 32 ##main
34 33 ${self.sidebar()}
35 34
36 35 <div class="main-content">
37 36 <h2>Examples of styled elements</h2>
38 37 <p>Taken based on the examples from Bootstrap, form elements based
39 38 on our current markup.</p>
40 39 <p>
41 40 The objective of this section is to have a comprehensive style guide which out
42 41 lines any and all elements used throughout the application, as a reference for
43 42 both existing developers and as a training tool for future hires.
44 43 </p>
45 44 </div>
46 45 </div>
47 46 </div>
48 47 </%def>
49 48
50 49
51 50 <%def name="sidebar()">
52 51 <div class="sidebar">
53 52 <ul class="nav nav-pills nav-stacked">
54 53 <li class="${'active' if c.active=='index' else ''}"><a href="${h.route_path('debug_style_home')}">${_('Index')}</a></li>
55 54 <li class="${'active' if c.active=='emails' else ''}"><a href="${h.route_path('debug_style_template', t_path='emails.html')}">${_('Emails')}</a></li>
56 55 <li class="${'active' if c.active=='typography' else ''}"><a href="${h.route_path('debug_style_template', t_path='typography.html')}">${_('Typography')}</a></li>
57 56 <li class="${'active' if c.active=='forms' else ''}"><a href="${h.route_path('debug_style_template', t_path='forms.html')}">${_('Forms')}</a></li>
58 57 <li class="${'active' if c.active=='buttons' else ''}"><a href="${h.route_path('debug_style_template', t_path='buttons.html')}">${_('Buttons')}</a></li>
59 58 <li class="${'active' if c.active=='labels' else ''}"><a href="${h.route_path('debug_style_template', t_path='labels.html')}">${_('Labels')}</a></li>
60 59 <li class="${'active' if c.active=='alerts' else ''}"><a href="${h.route_path('debug_style_template', t_path='alerts.html')}">${_('Alerts')}</a></li>
61 60 <li class="${'active' if c.active=='tables' else ''}"><a href="${h.route_path('debug_style_template', t_path='tables.html')}">${_('Tables')}</a></li>
62 61 <li class="${'active' if c.active=='tables-wide' else ''}"><a href="${h.route_path('debug_style_template', t_path='tables-wide.html')}">${_('Tables wide')}</a></li>
63 62 <li class="${'active' if c.active=='collapsable-content' else ''}"><a href="${h.route_path('debug_style_template', t_path='collapsable-content.html')}">${_('Collapsable Content')}</a></li>
64 63 <li class="${'active' if c.active=='icons' else ''}"><a href="${h.route_path('debug_style_template', t_path='icons.html')}">${_('Icons')}</a></li>
65 64 <li class="${'active' if c.active=='layout-form-sidebar' else ''}"><a href="${h.route_path('debug_style_template', t_path='layout-form-sidebar.html')}">${_('Layout form with sidebar')}</a></li>
66 65 <li class="${'active' if c.active=='login' else ''}"><a href="${h.route_path('debug_style_template', t_path='login.html')}">${_('Login')}</a></li>
67 66 <li class="${'active' if c.active=='login2' else ''}"><a href="${h.route_path('debug_style_template', t_path='login2.html')}">${_('Login 2')}</a></li>
68 67 <li class="${'active' if c.active=='code-block' else ''}"><a href="${h.route_path('debug_style_template', t_path='code-block.html')}">${_('Code blocks')}</a></li>
69 68
70 69 <li class="divider"><strong>Experimental</strong></li>
71 70 <li class="${'active' if c.active=='panels' else ''}"><a href="${h.route_path('debug_style_template', t_path='panels.html')}">${_('Panels')}</a></li>
72 71
73 72 <li class="divider"><strong>Depreciated</strong></li>
74 73 <li class="${'active' if c.active=='form-elements' else ''}"><a href="${h.route_path('debug_style_template', t_path='form-elements.html')}">${_('Form elements')}</a></li>
75 74 <li class="${'active' if c.active=='form-elements-small' else ''}"><a href="${h.route_path('debug_style_template', t_path='form-elements-small.html')}">${_('Form elements small')}</a></li>
76 75 <li class="${'active' if c.active=='form-inline' else ''}"><a href="${h.route_path('debug_style_template', t_path='form-inline.html')}">${_('Form inline elements')}</a></li>
77 76 <li class="${'active' if c.active=='form-vertical' else ''}"><a href="${h.route_path('debug_style_template', t_path='form-vertical.html')}">${_('Form vertical')}</a></li>
78 77 </ul>
79 78 </div>
80 79 </%def> No newline at end of file
@@ -1,64 +1,63 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17
19 18 ${self.sidebar()}
20 19
21 20 <div class="main-content">
22 21 <h2>Labels</h2>
23 22
24 23 <h3>Labels used for tags, branches and bookmarks</h3>
25 24
26 25 <div class="bs-example">
27 26 <ul class="metatag-list">
28 27 <li>
29 28 <span class="tagtag tag" title="Tag tip">
30 29 <a href="/fake-link"><i class="icon-tag"></i>tip</a>
31 30 </span>
32 31 </li>
33 32 <li>
34 33 <span class="branchtag tag" title="Branch default">
35 34 <a href="/fake-link"><i class="icon-code-fork"></i>default</a>
36 35 </span>
37 36 </li>
38 37 <li>
39 38 <span class="bookmarktag tag" title="Bookmark example">
40 39 <a href="/fake-link"><i class="icon-bookmark"></i>example</a>
41 40 </span>
42 41 </li>
43 42 </ul>
44 43
45 44 </div>
46 45
47 46 <h3>Labels used in tables</h3>
48 47 <div class="bs-example">
49 48 <ul class="metatag-list">
50 49 <li>[default] <span class="metatag" tag="default">default</span></li>
51 50 <li>[featured] <span class="metatag" tag="featured">featured</span></li>
52 51 <li>[stale] <span class="metatag" tag="stale">stale</span></li>
53 52 <li>[dead] <span class="metatag" tag="dead">dead</span></li>
54 53 <li>[lang =&gt; lang] <span class="metatag" tag="lang">lang</span></li>
55 54 <li>[license =&gt; License] <span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License">License</a></span></li>
56 55 <li>[requires =&gt; Repo] <span class="metatag" tag="requires">requires =&gt; <a href="#">Repo</a></span></li>
57 56 <li>[recommends =&gt; Repo] <span class="metatag" tag="recommends">recommends =&gt; <a href="#">Repo</a></span></li>
58 57 <li>[see =&gt; URI] <span class="metatag" tag="see">see =&gt; <a href="#">URI</a></span></li>
59 58 </ul>
60 59 </div>
61 60 </div> <!-- .main-content -->
62 61 </div>
63 62 </div> <!-- .box -->
64 63 </%def>
@@ -1,106 +1,105 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ${self.sidebar()}
19 18
20 19 <div class="main-content">
21 20
22 21 <h2>Headline comes as a h2 element</h2>
23 22
24 23
25 24 <form method='post' action='none'>
26 25 <div class='form'>
27 26 <div class='fields'>
28 27
29 28 <div class='field'>
30 29 <div class='label'>
31 30 <label for='example_input'>Example input label:</label>
32 31 </div>
33 32 <div class='input'>
34 33 <input id="example_input" type="text" placeholder="Example input">
35 34 </div>
36 35 </div>
37 36
38 37 <div class='field'>
39 38 <div class='label'>
40 39 <label for='example_select'>Example select input:</label>
41 40 </div>
42 41 <div class="select">
43 42 <select id="example_select" >
44 43 <option value="#">${_('Templates...')}</option>
45 44 <option value="ga">Google Analytics</option>
46 45 <option value="clicky">Clicky</option>
47 46 <option value="server_announce">${_('Server Announcement')}</option>
48 47 </select>
49 48 </div>
50 49 </div>
51 50 <script>
52 51 $(document).ready(function() {
53 52 $('#example_select').select2({
54 53 containerCssClass: 'drop-menu',
55 54 dropdownCssClass: 'drop-menu-dropdown',
56 55 dropdownAutoWidth: true,
57 56 minimumResultsForSearch: -1
58 57 });
59 58 });
60 59 </script>
61 60
62 61 <div class='field'>
63 62 <div class='label'>
64 63 <label for='example_checkbox'>Example checkbox:</label>
65 64 </div>
66 65 <div class="checkboxes">
67 66 <div class="checkbox">
68 67 <input id="example_checkbox" type="checkbox">
69 68 <label for="example_checkbox">Label of the checkbox</label>
70 69 </div>
71 70 </div>
72 71 </div>
73 72
74 73 <div class='field'>
75 74 <div class='label'>
76 75 <label for='example_checkboxes'>Example multiple radios:</label>
77 76 </div>
78 77 ## TODO: johbo: This is off compared to the checkboxes
79 78 <div class="radios">
80 79 <label><input type="radio" checked="checked" value="hg.create.repository" name="default_repo_create" id="default_repo_create_hgcreaterepository">Enabled</label>
81 80 <label><input type="radio" value="hg.create.none" name="default_repo_create" id="default_repo_create_hgcreatenone">Disabled</label>
82 81 <span class="help-block">
83 82 Permission to allow repository creation. This includes ability
84 83 to create repositories in root level. If this option is disabled
85 84 admin of repository group can still create repositories
86 85 inside that repository group.
87 86 </span>
88 87 </div>
89 88 </div>
90 89
91 90 <div class="buttons">
92 91 <input type="submit" value="Save" id="example_save" class="btn">
93 92 <input type="reset" value="Reset" id="example_reset" class="btn">
94 93 </div>
95 94
96 95 </div>
97 96 </div>
98 97 </form>
99 98
100 99
101 100
102 101
103 102 </div>
104 103 </div>
105 104 </div>
106 105 </%def>
@@ -1,74 +1,72 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4
5 3 <%def name="breadcrumbs_links()">
6 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
7 5 &raquo;
8 6 ${c.active}
9 7 </%def>
10 8
11 9
12 10 <%def name="real_main()">
13 11 <div class="box">
14 12 <div class="title">
15 13 ${self.breadcrumbs()}
16 14 </div>
17 15
18 16 ##main
19 17 <div class='sidebar-col-wrapper'>
20 18 ${self.sidebar()}
21 19
22 20 <div class="main-content">
23 21
24 22
25 23 <div class="bs-example pull-left">
26 24
27 25 <div id="quick_login">
28 26 <h4>${_('Sign in to your account')}</h4>
29 27
30 28 ${h.form(h.route_path('login'), needs_csrf_token=False)}
31 29 <div class="form form-vertical">
32 30 <div class="fields">
33 31
34 32 <div class="field">
35 33 <div class="label">
36 34 <label for="username">${_('Username')}:</label>
37 35 </div>
38 36 <div class="input">
39 37 ${h.text('username',class_='focus',tabindex=1)}
40 38 </div>
41 39 </div>
42 40
43 41 <div class="field">
44 42 <div class="label">
45 43 <label for="password">${_('Password')}:</label>
46 44 <span class="forgot_password">${h.link_to(_('(Forgot password?)'),h.route_path('reset_password'))}</span>
47 45 </div>
48 46 <div class="input">
49 47 ${h.password('password',class_='focus',tabindex=2)}
50 48 </div>
51 49 </div>
52 50
53 51 <div class="buttons">
54 52 <div class="register">
55 53 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
56 54 ${h.link_to(_("Don't have an account ?"),h.route_path('register'))}
57 55 %endif
58 56 </div>
59 57 <div class="submit">
60 58 ${h.submit('sign_in',_('Sign In'),class_="btn btn-small",tabindex=3)}
61 59 </div>
62 60 </div>
63 61
64 62 </div>
65 63 </div>
66 64 ${h.end_form()}
67 65 </div>
68 66
69 67 </div>
70 68 </div>
71 69 </div>
72 70 </div>
73 71
74 72 </%def>
@@ -1,9 +1,8 b''
1 ## -*- coding: utf-8 -*-
2 1
3 2 <%
4 3 # Tweaks needed to simulate things
5 4 c.came_from = ""
6 5 %>
7 6
8 7 ## Include the original file here for easy operation
9 8 <%include file="/login.mako" />
@@ -1,152 +1,151 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9 <%def name="real_main()">
11 10 <div class="box">
12 11 <div class="title">
13 12 ${self.breadcrumbs()}
14 13 </div>
15 14
16 15 <div class='sidebar-col-wrapper'>
17 16 ${self.sidebar()}
18 17
19 18 <div class="main-content">
20 19
21 20 <h2>Panels</h2>
22 21
23 22 <p>
24 23 Panels are based on
25 24 <a href="http://getbootstrap.com/components/#panels">
26 25 Bootstrap panels</a>, with custom styles added.</p>
27 26 <p>
28 27 Examples how to use it:
29 28 </p>
30 29
31 30 <div class="panel panel-default">
32 31 <div class="panel-heading">
33 32 Panel title
34 33 </div>
35 34 <div class="panel-body">
36 35 Panel with a plain <code>.panel-heading</code>
37 36 and <code>.panel-footer</code>.
38 37 </div>
39 38 <div class="panel-footer">
40 39 Panel footer
41 40 </div>
42 41 </div>
43 42
44 43 <div class="panel panel-default">
45 44 <div class="panel-heading">
46 45 Panel title
47 46 </div>
48 47 <div class="panel-body">
49 48 Footers are optional.
50 49 </div>
51 50 </div>
52 51
53 52 <div class="panel panel-default">
54 53 <div class="panel-heading">
55 54 <div class="panel-title">
56 55 Panel title
57 56 </div>
58 57 </div>
59 58 <div class="panel-body">
60 59 A <code>div.panel-title</code>
61 60 </div>
62 61 <div class="panel-footer">
63 62 Panel footer
64 63 </div>
65 64 </div>
66 65
67 66 <div class="panel panel-default">
68 67 <div class="panel-heading">
69 68 <h3 class="panel-title">
70 69 Panel title
71 70 </h3>
72 71 </div>
73 72 <div class="panel-body">
74 73 A <code>h3.panel-title</code>
75 74 </div>
76 75 <div class="panel-footer">
77 76 Panel footer
78 77 </div>
79 78 </div>
80 79
81 80 <div class="panel panel-default">
82 81 <div class="panel-heading">
83 82 Panel title
84 83 Panel title
85 84 Panel title
86 85 Panel title
87 86 Panel title
88 87 Panel title
89 88 Panel title
90 89 Panel title
91 90 Panel title
92 91 Panel title
93 92 Panel title
94 93 Panel title
95 94 Panel title
96 95 Panel title
97 96 Panel title
98 97 Panel title
99 98 Panel title
100 99 Panel title
101 100 </div>
102 101 <div class="panel-body">
103 102 Content, title and footer can be of arbritary length.
104 103 Content, title and footer can be of arbritary length.
105 104 Content, title and footer can be of arbritary length.
106 105 Content, title and footer can be of arbritary length.
107 106 Content, title and footer can be of arbritary length.
108 107 Content, title and footer can be of arbritary length.
109 108 Content, title and footer can be of arbritary length.
110 109 Content, title and footer can be of arbritary length.
111 110 Content, title and footer can be of arbritary length.
112 111 </div>
113 112 <div class="panel-footer">
114 113 Panel footer
115 114 Panel footer
116 115 Panel footer
117 116 Panel footer
118 117 Panel footer
119 118 Panel footer
120 119 Panel footer
121 120 Panel footer
122 121 Panel footer
123 122 Panel footer
124 123 Panel footer
125 124 Panel footer
126 125 Panel footer
127 126 Panel footer
128 127 Panel footer
129 128 Panel footer
130 129 </div>
131 130 </div>
132 131 <p>
133 132 Use the HTML format below:
134 133 </p>
135 134 <div class="bs-example template-example">
136 135 <xmp><div class="panel panel-default">
137 136 <div class="panel-heading">
138 137 <h3 class="panel-title">Panel title</h3>
139 138 </div>
140 139 <div class="panel-body">
141 140 Panel content
142 141 </div>
143 142 <div class="panel-footer">
144 143 Panel footer
145 144 </div>
146 145 </div></xmp>
147 146 </div>
148 147
149 148 </div>
150 149 </div>
151 150 </div>
152 151 </%def>
@@ -1,127 +1,126 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 ##main
18 17 <div class='sidebar-col-wrapper'>
19 18 ${self.sidebar()}
20 19
21 20 <div class="main-content">
22 21
23 22 <h2>Too wide tables handling</h2>
24 23
25 24
26 25
27 26 <table class="issuetracker">
28 27 <tbody><tr>
29 28 <th>Description</th>
30 29 <th>Pattern</th>
31 30 <th>Url</th>
32 31 <th>Prefix</th>
33 32 <th></th>
34 33 </tr>
35 34 <tr>
36 35 <td class="issue-tracker-example">Example</td>
37 36 <td class="issue-tracker-example">(?:#)(?P&lt;issue_id&gt;\d+)</td>
38 37 <td class="issue-tracker-example">https://myissueserver.com/repo/issue/issue_id</td>
39 38 <td class="issue-tracker-example">#</td>
40 39 <td class="issue-tracker-example"><a target="_blank" href="https://rhodecode.com/docs">Read more</a></td>
41 40 </tr>
42 41 <tr id="4980baa2985b361e6e91b932f4a897d5">
43 42 <td class="issuetracker_desc">kjlakjlkjlkj;lkjl;kjl;kjl;kjl;kj;lkj</td>
44 43 <td class="issuetracker_pat">lkjhlkjhlkjhaslkdjfhalkdjsfhalksjdhf</td>
45 44 <td class="issuetracker_url">alsdkjhfalskjdfhalskjdhf</td>
46 45 <td class="issuetracker_pref">alskdjhfalksjdhfalksjdhf</td>
47 46 <td>
48 47 <div class="grid_edit">
49 48 <a class="edit_issuetracker_entry" uid="4980baa2985b361e6e91b932f4a897d5" title="edit" href="#">
50 49 <input type="submit" value="edit" class="btn btn-link">
51 50 </a>
52 51 </div>
53 52
54 53 <div class="grid_delete">
55 54 <form method="post" action="/_admin/settings/issue-tracker/delete"><div style="display:none">
56 55 <input type="hidden" value="delete" name="_method">
57 56 </div>
58 57
59 58 <div style="display: none;"><input type="hidden" value="05adf5bfb9be3766186f25db19b545134c6b0077" name="csrf_token" id="csrf_token"></div>
60 59 <input type="hidden" value="4980baa2985b361e6e91b932f4a897d5" name="del_uid" id="del_uid">
61 60 <i class="icon-remove"></i>
62 61 <input type="submit" value="delete" onclick="return confirm('Confirm to remove this pattern: kjlakjlkjlkj;lkjl;kjl;kjl;kjl;kj;lkj');" id="remove_user_3" class="btn btn-link btn-danger">
63 62 </form>
64 63 </div>
65 64
66 65 </td>
67 66 </tr>
68 67 <tr id="98ac51a4ab43bb36a4feceed15ac5b21">
69 68 <td class="issuetracker_desc">kajls;kdjfal;skdjflaskdjflksjdlfksjdlfksjdlfkjsldkfjslkdjflskdjflkdsjf</td>
70 69 <td class="issuetracker_pat">lksjdlfkjsldkfjsldkfjlskdjflskjdlfksjdlfksjdlfjslkdfjslkdjf</td>
71 70 <td class="issuetracker_url">lksdjflskdjflskjdf</td>
72 71 <td class="issuetracker_pref">sdlfkjsldkfjslkdjf</td>
73 72 <td>
74 73 <div class="grid_edit">
75 74 <a class="edit_issuetracker_entry" uid="98ac51a4ab43bb36a4feceed15ac5b21" title="edit" href="#">
76 75 <input type="submit" value="edit" class="btn btn-link">
77 76 </a>
78 77 </div>
79 78
80 79 <div class="grid_delete">
81 80 <form method="post" action="/_admin/settings/issue-tracker/delete"><div style="display:none">
82 81 <input type="hidden" value="delete" name="_method">
83 82 </div>
84 83
85 84 <div style="display: none;"><input type="hidden" value="05adf5bfb9be3766186f25db19b545134c6b0077" name="csrf_token" id="csrf_token"></div>
86 85 <input type="hidden" value="98ac51a4ab43bb36a4feceed15ac5b21" name="del_uid" id="del_uid">
87 86 <i class="icon-remove"></i>
88 87 <input type="submit" value="delete" onclick="return confirm('Confirm to remove this pattern: kajls;kdjfal;skdjflaskdjflksjdlfksjdlfksjdlfkjsldkfjslkdjflskdjflkdsjf');" id="remove_user_3" class="btn btn-link btn-danger">
89 88 </form>
90 89 </div>
91 90
92 91 </td>
93 92 </tr>
94 93 <tr id="098f6bcd4621d373cade4e832627b4f6">
95 94 <td class="issuetracker_desc">test</td>
96 95 <td class="issuetracker_pat">test</td>
97 96 <td class="issuetracker_url">test</td>
98 97 <td class="issuetracker_pref">test</td>
99 98 <td>
100 99 <div class="grid_edit">
101 100 <a class="edit_issuetracker_entry" uid="098f6bcd4621d373cade4e832627b4f6" title="edit" href="#">
102 101 <input type="submit" value="edit" class="btn btn-link">
103 102 </a>
104 103 </div>
105 104
106 105 <div class="grid_delete">
107 106 <form method="post" action="/_admin/settings/issue-tracker/delete"><div style="display:none">
108 107 <input type="hidden" value="delete" name="_method">
109 108 </div>
110 109
111 110 <div style="display: none;"><input type="hidden" value="05adf5bfb9be3766186f25db19b545134c6b0077" name="csrf_token" id="csrf_token"></div>
112 111 <input type="hidden" value="098f6bcd4621d373cade4e832627b4f6" name="del_uid" id="del_uid">
113 112 <i class="icon-remove"></i>
114 113 <input type="submit" value="delete" onclick="return confirm('Confirm to remove this pattern: test');" id="remove_user_3" class="btn btn-link btn-danger">
115 114 </form>
116 115 </div>
117 116
118 117 </td>
119 118 </tr>
120 119 </tbody></table>
121 120
122 121
123 122
124 123 </div>
125 124 </div>
126 125 </div>
127 126 </%def>
@@ -1,546 +1,545 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9
11 10 <%def name="real_main()">
12 11 <div class="box">
13 12 <div class="title">
14 13 ${self.breadcrumbs()}
15 14 </div>
16 15
17 16 <div class='sidebar-col-wrapper'>
18 17 ##main
19 18 ${self.sidebar()}
20 19
21 20 <div class="main-content">
22 21
23 22 <div style="opacity:.5">
24 23
25 24 <h2>Simple tables</h2>
26 25
27 26 <p>These styles will be adjusted later to provide a baseline style
28 27 for all tables without classes added, whether part of the
29 28 application or not. Currently, some of the
30 29 application-specific styles are applied to this table.</p>
31 30 <p>This is a baseline style for all tables, whether part of the
32 31 application or not. It has no class applied for styling. Use
33 32 the "rctable" class as outlined before for tables which are
34 33 part of the RhodeCode application.</p>
35 34 <table>
36 35 <tbody>
37 36 <tr>
38 37 <th>Header A</th>
39 38 <th>Header B</th>
40 39 <th>Header C</th>
41 40 <th>Header D</th>
42 41 </tr>
43 42 <tr>
44 43 <td>Content of col A</td>
45 44 <td>Content of col B</td>
46 45 <td>Content of col C</td>
47 46 <td>Content of col D</td>
48 47 </tr>
49 48 <tr>
50 49 <td>Content of col A</td>
51 50 <td>Content of col B</td>
52 51 <td>Content of col C</td>
53 52 <td>Content of col D</td>
54 53 </tr>
55 54 <tr>
56 55 <td>Content of col A</td>
57 56 <td>Content of col B</td>
58 57 <td>Content of col C</td>
59 58 <td>Content of col D</td>
60 59 </tr>
61 60 <tr>
62 61 <td>Content of col A</td>
63 62 <td>Content of col B</td>
64 63 <td>Content of col C</td>
65 64 <td>Content of col D</td>
66 65 </tr>
67 66 </tbody>
68 67 </table>
69 68 </div>
70 69
71 70
72 71
73 72
74 73 <h2>RC application table with examples</h2>
75 74
76 75 <p>This is a standard table which applies the rhodecode-specific styling to be used
77 76 throughout the application; it has <code>&lt;table class="rctable"&gt;</code>.
78 77 <br/>
79 78 By default, table data is not truncated, and wraps inside of the <code>&lt;td&gt
80 79 ;</code>. To prevent wrapping and contain data on one line, use the <code>&lt;
81 80 class="truncate-wrap"&gt;</code> on the <code>&lt;td&gt;</code>, and <code>span
82 81 class="truncate"</code> around the specific data to be truncated.
83 82 </p>
84 83 <p>
85 84 Ellipsis is added via CSS. Please always add a row of headers using <code>&lt;th
86 85 &gt;</code> to the top of a table.
87 86 </p>
88 87
89 88 ## TODO: johbo: in case we have more tables with examples, we should
90 89 ## create a generic class here.
91 90 <table class="rctable issuetracker">
92 91 <thead>
93 92 <tr>
94 93 <th>Header A</th>
95 94 <th>Header B</th>
96 95 <th>Header C</th>
97 96 <th>Header D</th>
98 97 </tr>
99 98 </thead>
100 99 <tbody>
101 100 <tr>
102 101 <td class="issue-tracker-example">
103 102 Example of col A
104 103 </td>
105 104 <td class="issue-tracker-example">
106 105 Example of col B
107 106 </td>
108 107 <td class="issue-tracker-example">
109 108 Example of col C
110 109 </td>
111 110 <td class="issue-tracker-example">
112 111 Example of col D
113 112 </td>
114 113 </tr>
115 114 <tr>
116 115 <td>Content of col A</td>
117 116 <td>Content of col B</td>
118 117 <td>Content of col C which is very long and will not be
119 118 truncated because sometimes people just want to write
120 119 really, really long commit messages which explain what
121 120 they did in excruciating detail and you really, really
122 121 want to read them.</td>
123 122 <td>Content of col D</td>
124 123 </tr>
125 124 <tr>
126 125 <td>Content of col A</td>
127 126 <td>Content of col B</td>
128 127 <td>Content of col C</td>
129 128 <td class="truncate-wrap"><span class="truncate">Truncated
130 129 content of column D truncate truncate truncatetruncate
131 130 truncate truncate</span></td>
132 131 </tr>
133 132 </tbody>
134 133 </table>
135 134
136 135 <h2>RC application table data classes</h2>
137 136
138 137 <p>The following tables contain documentation of all existing table data classes.
139 138 Please update when new classes are made.
140 139 </p>
141 140 <table class="rctable examples">
142 141 <thead>
143 142 <tr>
144 143 <th>Class</th>
145 144 <th>Description</th>
146 145 <th>Example</th>
147 146 </tr>
148 147 </thead>
149 148 <tbody>
150 149 <td>td-user</td>
151 150 <td>Any username/gravatar combination (see also Icons style).</td>
152 151 <td class="td-user author">
153 152 <img class="gravatar" alt="gravatar" src="https://secure.gravatar.com/avatar/0c9a7e6674b6f0b35d98dbe073e3f0ab?d=identicon&amp;s=32" height="16" width="16">
154 153 <span title="Oliver Strobel <oliver@rhodecode.com>" class="user">ostrobel (Oliver Strobel)</span>
155 154 </td>
156 155 </tr>
157 156 <tr>
158 157 <td>td-hash</td>
159 158 <td>Any hash; a commit, revision, etc. Use <code>&lt;pre&gt;</code> and header 'Commit'</td>
160 159 <td class="td-commit">
161 160 <pre><a href="/anothercpythonforkkkk/files/8d6b27837c6979983b037693fe975cdbb761b500/">r93699:8d6b27837c69</a></pre>
162 161 </td>
163 162 </tr>
164 163 <tr>
165 164 <td>td-rss</td>
166 165 <td>RSS feed link icon</td>
167 166 <td class="td-rss">
168 167 <a title="Subscribe to rss feed" href="/feed/rss"><i class="icon-rss-sign"></i></a>
169 168 </td>
170 169 </tr>
171 170 <tr>
172 171 <td>td-componentname</td>
173 172 <td>Any group, file, gist, or directory name.</td>
174 173 <td class="td-componentname">
175 174 <a href="/cpythonfork">
176 175 <span title="Mercurial repository"><i class="icon-hg"></i></span>
177 176 <i class="icon-unlock-alt" title="Public repository"></i>
178 177 rhodecode-dev-restyle-fork
179 178 </a>
180 179 </td>
181 180 </tr>
182 181 <tr>
183 182 <td>td-tags</td>
184 183 <td>Any cell containing tags, including branches and bookmarks.</td>
185 184 <td class="td-tags">
186 185 <span class="branchtag tag" title="Branch default">
187 186 <a href="/rhodecode-dev-restyle- fork/changelog?branch=default"><i class="icon-code-fork"></i>default</a>
188 187 </span>
189 188 </td>
190 189 </tr>
191 190 <tr>
192 191 <td>tags-truncate</td>
193 192 <td>Used to truncate a cell containing tags; avoid if possible.</td>
194 193 <td class="td-tags truncate-wrap">
195 194 <div class="truncate tags-truncate">
196 195 <div class="autoexpand">
197 196 <span class="tagtag tag" title="Tag tip">
198 197 <a href="/rhodecode-dev-restyle-fork/files/e519d5a0e71466d27257ddff921c4a13c540408e/"><i class="icon-tag"></i>tip</a>
199 198 </span>
200 199 <span class="branchtag tag" title="Branch default">
201 200 <a href="/rhodecode-dev-restyle-fork/changelog?branch=default"><i class="icon-code-fork"></i>default</a>
202 201 </span>
203 202 <span class="branchtag tag" title="Branch default">
204 203 <a href="/rhodecode-dev-restyle-fork/changelog?branch=default"><i class="icon-code-fork"></i>default</a>
205 204 </span>
206 205 </div>
207 206 </div>
208 207 </td>
209 208 </tr>
210 209 <tr>
211 210 <td>td-ip</td>
212 211 <td>Any ip address.</td>
213 212 <td class="td-ip">
214 213 172.16.115.168
215 214 </td>
216 215 </tr>
217 216 <tr>
218 217 <td>td-type</td>
219 218 <td>A state or an auth type.</td>
220 219 <td class="td-type">
221 220 rhodecode
222 221 </td>
223 222 </tr>
224 223 <tr>
225 224 <td>td-authtoken</td>
226 225 <td>For auth tokens. Use truncate classes for hover expand; see html.</td>
227 226 <td class="truncate-wrap td-authtoken">
228 227 <div class="truncate autoexpand">
229 228 <code>688df65b87d3ad16ae9f8fc6338a551d40f41c7a</code>
230 229 </div>
231 230 </td>
232 231 </tr>
233 232 <tr>
234 233 <td>td-action</td>
235 234 <td>Buttons which perform an action.</td>
236 235 <td class="td-action">
237 236 <div class="grid_edit">
238 237 <a href="/_admin/users/2/edit" title="edit">
239 238 Edit
240 239 </a>
241 240 </div>
242 241 <div class="grid_delete">
243 242 <form action="/_admin/users/2" method="post">
244 243 <i class="icon-remove"></i>
245 244 <input class="btn btn-danger btn-link" id="remove_user_2" name="remove_" type="submit" value="delete">
246 245 </form>
247 246 </div>
248 247 </td>
249 248 </tr>
250 249 <tr>
251 250 <td>td-radio</td>
252 251 <td>Radio buttons for a form. Centers element.</td>
253 252 <td class="td-radio">
254 253 <input type="radio" checked="checked" value="" name="1" id="read"></td>
255 254 </tr>
256 255 <tr>
257 256 <td>td-checkbox</td>
258 257 <td>Checkbox for a form. Centers element.</td>
259 258 <td class="td-checkbox">
260 259 <input type="checkbox" checked="checked" value="" name="1" id="read"></td>
261 260 </tr>
262 261 <tr>
263 262 <tr>
264 263 <td>td-buttons</td>
265 264 <td>Buttons.</td>
266 265 <td class="td-buttons">
267 266 <span class="btn btn-mini btn-primary">feed access</span>
268 267 </td>
269 268 </tr>
270 269 <tr>
271 270 <td>td-compare</td>
272 271 <td>Radio buttons to compare commits.</td>
273 272 <td class=" td-compare">
274 273 <input class="compare-radio-button" type="radio" name="compare_source" value="2.0">
275 274 <input class="compare-radio-button" type="radio" name="compare_target" value="2.0">
276 275 </td>
277 276 </tr>
278 277 <tr>
279 278 <td>td-comments</td>
280 279 <td>Comments indicator icon.</td>
281 280 <td>
282 281 <i class="icon-comment"></i> 0
283 282 </td>
284 283 </tr>
285 284 <tr>
286 285 <td>td-status</td>
287 286 <td>Status indicator icon.</td>
288 287 <td class="td-description">
289 288 <div class="flag_status under_review pull-left"></div>
290 289 </td>
291 290 </tr>
292 291 </tbody>
293 292 </table>
294 293 <table class="dataTable rctable examples">
295 294 <tbody>
296 295 <tr>
297 296 <td>quick_repo_menu</td>
298 297 <td>Hidden menu generated by dataTable.</td>
299 298 <td class="quick_repo_menu">
300 299 <i class="icon-more"></i>
301 300 <div class="menu_items_container" style="display: none;">
302 301 <ul class="menu_items">
303 302 <li>
304 303 <a title="Summary" href="/anothercpythonforkkkk-fork">
305 304 <span>Summary</span>
306 305 </a>
307 306 </li>
308 307 <li>
309 308 <a title="Changelog" href="/anothercpythonforkkkk-fork/changelog">
310 309 <span>Changelog</span>
311 310 </a>
312 311 </li>
313 312 <li>
314 313 <a title="Files" href="/anothercpythonforkkkk-fork/files/tip/">
315 314 <span>Files</span>
316 315 </a>
317 316 </li>
318 317 <li>
319 318 <a title="Fork" href="/anothercpythonforkkkk-fork/fork">
320 319 <span>Fork</span>
321 320 </a>
322 321 </li>
323 322 </ul>
324 323 </div>
325 324 </td>
326 325 <td></td>
327 326 </tr>
328 327 </tbody>
329 328 </table>
330 329 <script>quick_repo_menu();</script>
331 330 <table class="rctable examples">
332 331 <tbody>
333 332 <tr>
334 333 <td>td-description</td>
335 334 <td>Any description. They may be rather long, and using the expand_commit outlined below is recommended.</td>
336 335 <td class="td-description">
337 336 Ultrices mattis! Enim pellentesque lacus, sit magna natoque risus turpis ut, auctor ultrices facilisis dapibus odio? Parturient! Porta egestas nascetur, quis, elementum dolor, in magna ac dis sit etiam turpis, scelerisque! Integer tristique aliquam.
338 337 </td>
339 338 </tr>
340 339 </tbody>
341 340 </table>
342 341 <table id="changesets" class="rctable examples end">
343 342 <tbody>
344 343 <tr>
345 344 <td>expand_commit</td>
346 345 <td>Expands a long message; see html+js.</td>
347 346 <td class="expand_commit" data-commit-id="2ffc6faabc7a9c790b1b452943a3f0c047b8b436" title="Expand commit message">
348 347 <div class="show_more_col">
349 348 <i class="show_more"></i>
350 349 </div>
351 350 </td>
352 351 <td class="mid td-description">
353 352 <div class="log-container truncate-wrap">
354 353 <div id="c-2ffc6faabc7a9c790b1b452943a3f0c047b8b436" class="message truncate" data-message-raw="tests: Test echo method on the server object
355 354
356 355 This only works for Pyro4 so far, have to extend it still for HTTP to work.">tests: Test echo method on the server object
357 356
358 357 This only works for Pyro4 so far, have to extend it still for HTTP to work.</div>
359 358 </div>
360 359 </td>
361 360 </tr>
362 361 </tbody>
363 362 </table>
364 363 <script type="text/javascript">
365 364 var cache = {};
366 365 $('.expand_commit').on('click',function(e){
367 366 var target_expand = $(this);
368 367 var cid = target_expand.data('commitId');
369 368
370 369 if (target_expand.hasClass('open')){
371 370 $('#c-'+cid).css({'height': '1.5em', 'white-space': 'nowrap', 'text-overflow': 'ellipsis', 'overflow':'hidden'});
372 371 $('#t-'+cid).css({'height': '1.5em', 'max-height': '1.5em', 'text-overflow': 'ellipsis', 'overflow':'hidden', 'white-space':'nowrap'});
373 372 target_expand.removeClass('open');
374 373 }
375 374 else {
376 375 $('#c-'+cid).css({'height': 'auto', 'white-space': 'pre-line', 'text-overflow': 'initial', 'overflow':'visible'});
377 376 $('#t-'+cid).css({'height': 'auto', 'max-height': 'none', 'text-overflow': 'initial', 'overflow':'visible', 'white-space':'normal'});
378 377 target_expand.addClass('open');
379 378 }
380 379 });
381 380
382 381 </script>
383 382 <p>The following classes currently do not have unique styles applied.</p>
384 383 <table class="rctable examples end">
385 384 <tbody>
386 385 <tr>
387 386 <td>td-regex</td>
388 387 <td>Regex patterns</td>
389 388 <td class="td-regex">(?:#)(?P<issue_id>\d+)</td>
390 389 </tr>
391 390 <tr>
392 391 <td>td-url</td>
393 392 <td>Any URL.</td>
394 393 <td class="td-url">https://rhodecode.com</td>
395 394 </tr>
396 395 <tr>
397 396 <td>td-journalaction</td>
398 397 <td>Action listed in a journal</td>
399 398 <td class="td-journalaction">started following repository supervisor-fork-4</td>
400 399 </tr>
401 400 <tr>
402 401 <td>td-iprange</td>
403 402 <td>Any ip address.</td>
404 403 <td class="td-ip">127.0.0.1-127.0.0.10</td>
405 404 </tr>
406 405 <tr>
407 406 <td>td-exp</td>
408 407 <td>Expiration time.</td>
409 408 <td class="td-exp">never</td>
410 409 </tr>
411 410 <tr>
412 411 <td>td-prefix</td>
413 412 <td>Prefixes outlined in settings.</td>
414 413 <td class="td-prefix">ubuntu-92539</td>
415 414 </tr>
416 415 <tr>
417 416 <td>td-cachekey</td>
418 417 <td>Cache key value.</td>
419 418 <td class="td-cachekey">ubuntu-92539supervisor</td>
420 419 </tr>
421 420 <tr>
422 421 <td>td-email</td>
423 422 <td>Any email address.</td>
424 423 <td class="td-email">example@rhodecode.com</td>
425 424 </tr>
426 425 <tr>
427 426 <td>td-active</td>
428 427 <td>Shows active state with icon-true/icon-false.</td>
429 428 <td class="td-active"><i class="icon-pr-merge-fail"></i></td>
430 429 </tr>
431 430 <tr>
432 431 <td>td-size</td>
433 432 <td>File, repo, or directory size.</td>
434 433 <td class="td-size">89 MB</td>
435 434 </tr>
436 435 <tr>
437 436 <td>td-number</td>
438 437 <td>Any numerical data.</td>
439 438 <td class="td-number">42</td>
440 439 </tr>
441 440 <tr>
442 441 <td>td-message</td>
443 442 <td>Any commit message. Often treated with the truncate class used for descriptions as well.</td>
444 443 <td class="td-message">Updated the files</td>
445 444 </tr>
446 445 </tbody>
447 446 </table>
448 447
449 448
450 449 <h2>Permissions table</h2>
451 450
452 451 <p>
453 452 This is a special-case table; it has
454 453 <code>table class="rctable permissions"</code>
455 454 where "rctable" applies the rhodecode styling as above, and
456 455 "permissions" adds an extra layer of customization specific to
457 456 permissions tables. Other special-case tables may exist or be
458 457 created if necessary.
459 458 </p>
460 459
461 460 <table class="rctable permissions">
462 461 <tr>
463 462 <th class="td-radio">none</th>
464 463 <th class="td-radio">read</th>
465 464 <th class="td-radio">write</th>
466 465 <th class="td-radio">admin</th>
467 466 <th>user/user group</th>
468 467 <th></th>
469 468 </tr>
470 469 <tr class="perm_admin_row">
471 470 <td class="td-radio"><input type="radio" value="repository.none"
472 471 name="admin_perm_2" id="admin_perm_2_repositorynone"
473 472 disabled="disabled"></td>
474 473 <td class="td-radio"><input type="radio" value="repository.read"
475 474 name="admin_perm_2" id="admin_perm_2_repositoryread"
476 475 disabled="disabled"></td>
477 476 <td class="td-radio"><input type="radio" value="repository.write"
478 477 name="admin_perm_2" id="admin_perm_2_repositorywrite"
479 478 disabled="disabled"></td>
480 479 <td class="td-radio"><input type="radio" value="repository.admin"
481 480 name="admin_perm_2" id="admin_perm_2_repositoryadmin"
482 481 disabled="disabled" checked="checked"></td>
483 482 <td>
484 483 <img class="gravatar" src="https://secure.gravatar.com/avatar/be9d18f611892a738e54f2a3a171e2f9?d=identicon&amp;s=32" height="16" width="16">
485 484 <span class="user">dev (super admin) (owner)</span>
486 485 </td>
487 486 <td></td>
488 487 </tr>
489 488 <tr>
490 489 <td colspan="4">
491 490 <span class="private_repo_msg">
492 491 private repository
493 492 </span>
494 493 </td>
495 494 <td class="private_repo_msg">
496 495 <i class="icon-user"></i>
497 496 default - only people explicitly added here will have access</td>
498 497 <td></td>
499 498 </tr>
500 499 <tr>
501 500 <td class="td-radio"><input type="radio" value="repository.none"
502 501 name="u_perm_1" id="u_perm_1_repositorynone"></td>
503 502 <td class="td-radio"><input type="radio" checked="checked"
504 503 value="repository.read" name="u_perm_1"
505 504 id="u_perm_1_repositoryread"></td>
506 505 <td class="td-radio"><input type="radio" value="repository.write"
507 506 name="u_perm_1" id="u_perm_1_repositorywrite"></td>
508 507 <td class="td-radio"><input type="radio" value="repository.admin"
509 508 name="u_perm_1" id="u_perm_1_repositoryadmin"></td>
510 509 <td>
511 510 <img class="gravatar" src="/_static/rhodecode/images/user30.png" height="16" width="16">
512 511 <span class="user">default</span>
513 512 </td>
514 513 <td></td>
515 514 </tr>
516 515 <tr>
517 516 <td class="td-radio"><input type="radio" value="repository.none"
518 517 name="u_perm_2" id="u_perm_2_repositorynone"></td>
519 518 <td class="td-radio"><input type="radio" checked="checked"
520 519 value="repository.read" name="u_perm_2"
521 520 id="u_perm_2_repositoryread"></td>
522 521 <td class="td-radio"><input type="radio" value="repository.write"
523 522 name="u_perm_2" id="u_perm_2_repositorywrite"></td>
524 523 <td class="td-radio"><input type="radio" value="repository.admin"
525 524 name="u_perm_2" id="u_perm_2_repositoryadmin"></td>
526 525 <td>
527 526 <img class="gravatar" src="https://secure.gravatar.com/avatar/be9d18f611892a738e54f2a3a171e2f9?d=identicon&amp;s=32" height="16" width="16">
528 527 <a class="user" href="/_admin/users/2/edit">dev</a>
529 528 </td>
530 529 <td>
531 530 <span member_type="user" member="2"
532 531 class="btn action_button btn-link btn-danger">revoke</span>
533 532 </td>
534 533 </tr>
535 534 </tbody>
536 535 </table>
537 536 <div class="link" id="add_perm">
538 537 Add user/user group
539 538 </div>
540 539
541 540
542 541
543 542 </div>
544 543 </div>
545 544 </div>
546 545 </%def>
@@ -1,507 +1,506 b''
1 ## -*- coding: utf-8 -*-
2 1 <%inherit file="/debug_style/index.html"/>
3 2
4 3 <%def name="breadcrumbs_links()">
5 4 ${h.link_to(_('Style'), h.route_path('debug_style_home'))}
6 5 &raquo;
7 6 ${c.active}
8 7 </%def>
9 8
10 9 <%def name="real_main()">
11 10 <div class="box">
12 11 <div class="title">
13 12 ${self.breadcrumbs()}
14 13 </div>
15 14 </div>
16 15
17 16 ##main
18 17 <div class='sidebar-col-wrapper'>
19 18 ${self.sidebar()}
20 19
21 20 <div class="main-content">
22 21
23 22 <div class="bs-docs-section">
24 23 <h1 id="type" class="page-header">Typography</h1>
25 24
26 25 <!-- Headings -->
27 26 <h2 id="type-headings">Headings</h2>
28 27 <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code>, are available. <code>.h1</code> through <code>.h6</code> classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.
29 28 </p>
30 29 <p>All headings have no top/side margins and a bottom margin which corresponds to variable <code>@textmargin</code>, a color corresponding to <code>@text-color</code>, and a line-height of 1.8em.
31 30 <div class="bs-example bs-example-type" data-example-id="simple-headings">
32 31 <table class="table">
33 32 <tbody>
34 33 <tr>
35 34 <td><h1>h1. RhodeCode heading</h1></td>
36 35 <td class="type-info">Bold</td>
37 36 <td class="type-info">1.54em</td>
38 37 </tr>
39 38 <tr>
40 39 <td><h2>h2. RhodeCode heading</h2></td>
41 40 <td class="type-info">Semi-Bold</td>
42 41 <td class="type-info">1.23em</td>
43 42 </tr>
44 43 <tr>
45 44 <td><h3>h3. RhodeCode heading</h3></td>
46 45 <td class="type-info">Regular</td>
47 46 <td class="type-info">1.23em</td>
48 47 </tr>
49 48 <tr>
50 49 <td><h4>h4. RhodeCode heading</h4></td>
51 50 <td class="type-info">Bold</td>
52 51 <td class="type-info">1em</td>
53 52 </tr>
54 53 <tr>
55 54 <td><h5>h5. RhodeCode heading</h5></td>
56 55 <td class="type-info">Bold Italic</td>
57 56 <td class="type-info">1em</td>
58 57 </tr>
59 58 <tr>
60 59 <td><h6>h6. RhodeCode heading</h6></td>
61 60 <td class="type-info">Bold Italic</td>
62 61 <td class="type-info">1em</td>
63 62 </tr>
64 63 </tbody>
65 64 </table>
66 65 </div>
67 66 <div class="highlight-html"><xmp>
68 67 <h1>h1. RhodeCode heading</h1>
69 68 <h2>h2. RhodeCode heading</h2>
70 69 <h3>h3. RhodeCode heading</h3>
71 70 <h4>h4. RhodeCode heading</h4>
72 71 <h5>h5. RhodeCode heading</h5>
73 72 <h6>h6. RhodeCode heading</h6>
74 73 </xmp></div> <!-- end highlight -->
75 74
76 75 <p>Create lighter, secondary text in any heading with a generic <code>&lt;small&gt;</code> tag or the <code>.small</code> class.</p>
77 76 <div class="bs-example bs-example-type" data-example-id="small- headings">
78 77 <table class="table">
79 78 <tbody>
80 79 <tr>
81 80 <td><h1>h1. RhodeCode heading <small>Secondary text</small></h1></td>
82 81 </tr>
83 82 <tr>
84 83 <td><h2>h2. RhodeCode heading <small>Secondary text</small></h2></td>
85 84 </tr>
86 85 <tr>
87 86 <td><h3>h3. RhodeCode heading <small>Secondary text</small></h3></td>
88 87 </tr>
89 88 <tr>
90 89 <td><h4>h4. RhodeCode heading <small>Secondary text</small></h4></td>
91 90 </tr>
92 91 <tr>
93 92 <td><h5>h5. RhodeCode heading <small>Secondary text</small></h5></td>
94 93 </tr>
95 94 <tr>
96 95 <td><h6>h6. RhodeCode heading <small>Secondary text</small></h6></td>
97 96 </tr>
98 97 </tbody>
99 98 </table>
100 99 </div>
101 100 <div class="highlight-html"><xmp>
102 101 <h1>h1. RhodeCode heading <small>Secondary text</small></h1>
103 102 <h2>h2. RhodeCode heading <small>Secondary text</small></h2>
104 103 <h3>h3. RhodeCode heading <small>Secondary text</small></h3>
105 104 <h4>h4. RhodeCode heading <small>Secondary text</small></h4>
106 105 <h5>h5. RhodeCode heading <small>Secondary text</small></h5>
107 106 <h6>h6. RhodeCode heading <small>Secondary text</small></h6>
108 107 </xmp></div> <!-- end highlight -->
109 108
110 109
111 110 <!-- Body copy -->
112 111 <h2 id="type-body-copy">Body copy</h2>
113 112 <p>RhodeCode's global default <code>font-size</code> is <strong>13px</strong>, with a <code>line-height</code> of <strong>2em</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of designated by @textmargin (20px).</p>
114 113 <div class="bs-example" data-example-id="body-copy">
115 114 <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
116 115 <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
117 116 <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
118 117 </div>
119 118 <div class="highlight-html"><xmp>
120 119 <p>...</p>
121 120 </xmp></div> <!-- end highlight -->
122 121
123 122 <!-- Body copy .lead -->
124 123 <h3>Lead body copy</h3>
125 124 <p>Make a paragraph stand out by adding <code>.lead</code>.</p>
126 125 <div class="bs-example" data-example-id="lead-copy">
127 126 <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
128 127 </div>
129 128 <div class="highlight-html"><xmp>
130 129 <p class="lead">...</p>
131 130 </xmp></div> <!-- end highlight -->
132 131
133 132 <!-- Using Less -->
134 133 <h3>Built with Less</h3>
135 134 <p>The typographic scale is based on Less variables in <strong>variables.less</strong>. Font sizes are calculated from <code>@basefontsize</code>, line-heights are calculated with em, and font families are handled by:
136 135 <ul class="list-unstyled">
137 136 <li><code>@text-regular</code></li>
138 137 <li><code>@text-italic</code></li>
139 138 <li><code>@text-bold</code></li>
140 139 <li><code>@text-semibold</code></li>
141 140 <li><code>@text-bold-italic</code></li>
142 141 <li><code>@text-light</code></li>
143 142 <li><code>@text-light-italic</code></li>
144 143 </ul>
145 144 </p>
146 145
147 146 <!-- Inline text elements -->
148 147 <h2 id="type-inline-text">Inline text elements</h2>
149 148 <h3>Marked text</h3>
150 149 <p>For highlighting a run of text due to its relevance in another context, use the <code>&lt;mark&gt;</code> tag.</p>
151 150 <div class="bs-example" data-example-id="simple-mark">
152 151 <p>You can use the mark tag to <mark>highlight</mark> text.</p>
153 152 </div>
154 153 <div class="highlight-html"><xmp>
155 154 You can use the mark tag to <mark>highlight</mark> text.
156 155 </xmp></div> <!-- end highlight -->
157 156
158 157
159 158 <h3>Deleted text</h3>
160 159 <p>For indicating blocks of text that have been deleted use the <code>&lt;del&gt;</code> tag.</p>
161 160 <div class="bs-example" data-example-id="simple-del">
162 161 <p><del>This line of text is meant to be treated as deleted text.</del></p>
163 162 </div>
164 163 <div class="highlight-html"><xmp>
165 164 <del>This line of text is meant to be treated as deleted text.</del>
166 165 </xmp></div> <!-- end highlight -->
167 166
168 167 <h3>Strikethrough text</h3>
169 168 <p>For indicating blocks of text that are no longer relevant use the <code>&lt;s&gt;</code> tag.</p>
170 169 <div class="bs-example" data-example-id="simple-s">
171 170 <p><s>This line of text is meant to be treated as no longer accurate.</s></p>
172 171 </div>
173 172 <div class="highlight-html"><xmp>
174 173 <s>This line of text is meant to be treated as no longer accurate.</s>
175 174 </xmp></div> <!-- end highlight -->
176 175
177 176 <h3>Inserted text</h3>
178 177 <p>For indicating additions to the document use the <code>&lt;ins&gt;</code> tag.</p>
179 178 <div class="bs-example" data-example-id="simple-ins">
180 179 <p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
181 180 </div>
182 181 <div class="highlight-html"><xmp>
183 182 <ins>This line of text is meant to be treated as an addition to the document.</ins>
184 183 </xmp></div> <!-- end highlight -->
185 184
186 185 <h3>Underlined text</h3>
187 186 <p>To underline text use the <code>&lt;u&gt;</code> tag.</p>
188 187 <div class="bs-example" data-example-id="simple-u">
189 188 <p><u>This line of text will render as underlined</u></p>
190 189 </div>
191 190 <div class="highlight-html"><xmp>
192 191 <u>This line of text will render as underlined</u>
193 192 </xmp></div> <!-- end highlight -->
194 193
195 194 <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
196 195
197 196 <h3>Small text</h3>
198 197 <p>For de-emphasizing inline or blocks of text, use the <code>&lt;small&gt;</code> tag to set text at 85% the size of the parent. Heading elements receive their own <code>font-size</code> for nested <code>&lt;small&gt;</code> elements.</p>
199 198 <p>You may alternatively use an inline element with <code>.small</code> in place of any <code>&lt;small&gt;</code>.</p>
200 199 <div class="bs-example" data-example-id="simple-small">
201 200 <p><small>This line of text is meant to be treated as fine print.</small></p>
202 201 </div>
203 202 <div class="highlight-html"><xmp>
204 203 <small>This line of text is meant to be treated as fine print.</small>
205 204 </xmp></div> <!-- end highlight -->
206 205
207 206
208 207 <h3>Bold</h3>
209 208 <p>For emphasizing a snippet of text with a heavier font-weight.</p>
210 209 <div class="bs-example" data-example-id="simple-strong">
211 210 <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
212 211 </div>
213 212 <div class="highlight-html"><xmp>
214 213 <strong>rendered as bold text</strong>
215 214 </xmp></div> <!-- end highlight -->
216 215
217 216 <h3>Italics</h3>
218 217 <p>For emphasizing a snippet of text with italics.</p>
219 218 <div class="bs-example" data-example-id="simple-em">
220 219 <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
221 220 </div>
222 221 <div class="highlight-html"><xmp>
223 222 <em>rendered as italicized text</em>
224 223 </xmp></div> <!-- end highlight -->
225 224
226 225 <div class="bs-callout bs-callout-info" id="callout-type-b-i-elems">
227 226 <h4>Alternate elements</h4>
228 227 <p>Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p>
229 228 </div>
230 229
231 230 <h2 id="type-alignment">Alignment classes</h2>
232 231 <p>Easily realign text to components with text alignment classes.</p>
233 232 <div class="bs-example" data-example-id="text-alignment">
234 233 <p class="text-left">Left aligned text.</p>
235 234 <p class="text-center">Center aligned text.</p>
236 235 <p class="text-right">Right aligned text.</p>
237 236 <p class="text-justify">Justified text.</p>
238 237 <p class="text-nowrap">No wrap text.</p>
239 238 </div>
240 239 <div class="highlight-html"><xmp>
241 240 <p class="text-left">Left aligned text.</p>
242 241 <p class="text-center">Center aligned text.</p>
243 242 <p class="text-right">Right aligned text.</p>
244 243 <p class="text-justify">Justified text.</p>
245 244 <p class="text-nowrap">No wrap text.</p>
246 245 </xmp></div> <!-- end highlight -->
247 246
248 247 <h2 id="type-transformation">Transformation classes</h2>
249 248 <p>Transform text in components with text capitalization classes.</p>
250 249 <div class="bs-example" data-example-id="text-capitalization">
251 250 <p class="text-lowercase">Lowercased text.</p>
252 251 <p class="text-uppercase">Uppercased text.</p>
253 252 <p class="text-capitalize">Capitalized text.</p>
254 253 </div>
255 254 <div class="highlight-html"><xmp>
256 255 <p class="text-lowercase">Lowercased text.</p>
257 256 <p class="text-uppercase">Uppercased text.</p>
258 257 <p class="text-capitalize">Capitalized text.</p>
259 258 </xmp></div> <!-- end highlight -->
260 259
261 260 <!-- Abbreviations -->
262 261 <h2 id="type-abbreviations">Abbreviations</h2>
263 262 <p>Stylized implementation of HTML's <code>&lt;abbr&gt;</code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover and to users of assistive technologies.</p>
264 263
265 264 <h3>Basic abbreviation</h3>
266 265 <div class="bs-example" data-example-id="simple-abbr">
267 266 <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
268 267 </div>
269 268 <div class="highlight-html"><xmp>
270 269 <abbr title="attribute">attr</abbr>
271 270 </xmp></div> <!-- end highlight -->
272 271
273 272 <h3>Initialism</h3>
274 273 <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
275 274 <div class="bs-example" data-example-id="simple-initialism">
276 275 <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
277 276 </div>
278 277 <div class="highlight-html"><xmp>
279 278 <abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
280 279 </xmp></div> <!-- end highlight -->
281 280
282 281
283 282 <!-- Addresses -->
284 283 <h2 id="type-addresses">Addresses</h2>
285 284 <p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.</p>
286 285 <div class="bs-example" data-example-id="simple-address">
287 286 <address>
288 287 <strong>Twitter, Inc.</strong><br>
289 288 795 Folsom Ave, Suite 600<br>
290 289 San Francisco, CA 94107<br>
291 290 <abbr title="Phone">P:</abbr> (123) 456-7890
292 291 </address>
293 292 <address>
294 293 <strong>Full Name</strong><br>
295 294 <a href="mailto:#">first.last@example.com</a>
296 295 </address>
297 296 </div>
298 297 <div class="highlight-html"><xmp>
299 298 <address>
300 299 <strong>Twitter, Inc.</strong><br>
301 300 795 Folsom Ave, Suite 600<br>
302 301 San Francisco, CA 94107<br>
303 302 <abbr title="Phone">P:</abbr> (123) 456-7890
304 303 </address>
305 304
306 305 <address>
307 306 <strong>Full Name</strong><br>
308 307 <a href="mailto:#">first.last@example.com</a>
309 308 </address>
310 309 </xmp></div> <!-- end highlight -->
311 310
312 311
313 312 <!-- Blockquotes -->
314 313 <h2 id="type-blockquotes">Blockquotes</h2>
315 314 <p>For quoting blocks of content from another source within your document.</p>
316 315
317 316 <h3>Default blockquote</h3>
318 317 <p>Wrap <code>&lt;blockquote&gt;</code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes, we recommend a <code>&lt;p&gt;</code>.</p>
319 318 <div class="bs-example" data-example-id="simple-blockquote">
320 319 <blockquote>
321 320 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
322 321 </blockquote>
323 322 </div>
324 323 <div class="highlight-html"><xmp>
325 324 <blockquote>
326 325 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
327 326 </blockquote>
328 327 </xmp></div> <!-- end highlight -->
329 328
330 329 <h3>Blockquote options</h3>
331 330 <p>Style and content changes for simple variations on a standard <code>&lt;blockquote&gt;</code>.</p>
332 331
333 332 <h4>Naming a source</h4>
334 333 <p>Add a <code>&lt;footer&gt;</code> for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p>
335 334 <div class="bs-example" data-example-id="blockquote-cite">
336 335 <blockquote>
337 336 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
338 337 <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
339 338 </blockquote>
340 339 </div>
341 340 <div class="highlight-html"><xmp>
342 341 <blockquote>
343 342 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
344 343 <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
345 344 </blockquote>
346 345 </xmp></div> <!-- end highlight -->
347 346
348 347 <h4>Alternate displays</h4>
349 348 <p>Add <code>.blockquote-reverse</code> for a blockquote with right-aligned content.</p>
350 349 <div class="bs-example" style="overflow: hidden;" data-example-id="blockquote-reverse">
351 350 <blockquote class="blockquote-reverse">
352 351 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
353 352 <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
354 353 </blockquote>
355 354 </div>
356 355 <div class="highlight-html"><xmp>
357 356 <blockquote class="blockquote-reverse">
358 357 ...
359 358 </blockquote>
360 359 </xmp></div> <!-- end highlight -->
361 360
362 361 <h2>Tooltip</h2>
363 362 <p>Any element with a class <code>tooltip</code> and a <code>title</code> attribute will replaced with the custom tooltip via Javascript. <br />Tooltips should be used with care as touch devices won't activate them.
364 363 </p>
365 364 <div class="bs-example">
366 365 <p class="tooltip" title="I am a tooltip in a `p`">Hover me, please!</p>
367 366 </div>
368 367
369 368 <!-- Lists -->
370 369 <h2 id="type-lists">Lists</h2>
371 370
372 371 <h3>Unordered</h3>
373 372 <p>A list of items in which the order does <em>not</em> explicitly matter.</p>
374 373 <div class="bs-example" data-example-id="simple-ul">
375 374 <ul>
376 375 <li>Lorem ipsum dolor sit amet</li>
377 376 <li>Consectetur adipiscing elit</li>
378 377 <li>Integer molestie lorem at massa</li>
379 378 <li>Facilisis in pretium nisl aliquet</li>
380 379 <li>Nulla volutpat aliquam velit
381 380 <ul>
382 381 <li>Phasellus iaculis neque</li>
383 382 <li>Purus sodales ultricies</li>
384 383 <li>Vestibulum laoreet porttitor sem</li>
385 384 <li>Ac tristique libero volutpat at</li>
386 385 </ul>
387 386 </li>
388 387 <li>Faucibus porta lacus fringilla vel</li>
389 388 <li>Aenean sit amet erat nunc</li>
390 389 <li>Eget porttitor lorem</li>
391 390 </ul>
392 391 </div>
393 392 <div class="highlight-html"><xmp>
394 393 <ul>
395 394 <li>...</li>
396 395 </ul>
397 396 </xmp></div> <!-- end highlight -->
398 397
399 398 <h3>Ordered</h3>
400 399 <p>A list of items in which the order <em>does</em> explicitly matter.</p>
401 400 <div class="bs-example" data-example-id="simple-ol">
402 401 <ol>
403 402 <li>Lorem ipsum dolor sit amet</li>
404 403 <li>Consectetur adipiscing elit</li>
405 404 <li>Integer molestie lorem at massa</li>
406 405 <li>Facilisis in pretium nisl aliquet</li>
407 406 <li>Nulla volutpat aliquam velit</li>
408 407 <li>Faucibus porta lacus fringilla vel</li>
409 408 <li>Aenean sit amet erat nunc</li>
410 409 <li>Eget porttitor lorem</li>
411 410 </ol>
412 411 </div>
413 412 <div class="highlight-html"><xmp>
414 413 <ol>
415 414 <li>...</li>
416 415 </ol>
417 416 </xmp></div> <!-- end highlight -->
418 417
419 418 <h3>Unstyled</h3>
420 419 <p>Remove the default <code>list-style</code> and left margin on list items (immediate children only). <strong>This only applies to immediate children list items</strong>, meaning you will need to add the class for any nested lists as well.< /p>
421 420 <div class="bs-example" data-example-id="unstyled-list">
422 421 <ul class="list-unstyled">
423 422 <li>Lorem ipsum dolor sit amet</li>
424 423 <li>Consectetur adipiscing elit</li>
425 424 <li>Integer molestie lorem at massa</li>
426 425 <li>Facilisis in pretium nisl aliquet</li>
427 426 <li>Nulla volutpat aliquam velit
428 427 <ul>
429 428 <li>Phasellus iaculis neque</li>
430 429 <li>Purus sodales ultricies</li>
431 430 <li>Vestibulum laoreet porttitor sem</li>
432 431 <li>Ac tristique libero volutpat at</li>
433 432 </ul>
434 433 </li>
435 434 <li>Faucibus porta lacus fringilla vel</li>
436 435 <li>Aenean sit amet erat nunc</li>
437 436 <li>Eget porttitor lorem</li>
438 437 </ul>
439 438 </div>
440 439 <div class="highlight-html"><xmp>
441 440 <ul class="list-unstyled">
442 441 <li>...</li>
443 442 </ul>
444 443 </xmp></div> <!-- end highlight -->
445 444
446 445 <h3>Inline</h3>
447 446 <p>Place all list items on a single line with <code>display: inline-block;</code> and some light padding.</p>
448 447 <div class="bs-example" data-example-id="list-inline">
449 448 <ul class="list-inline">
450 449 <li>Lorem ipsum</li>
451 450 <li>Phasellus iaculis</li>
452 451 <li>Nulla volutpat</li>
453 452 </ul>
454 453 </div>
455 454 <div class="highlight-html"><xmp>
456 455 <ul class="list-inline">
457 456 <li>...</li>
458 457 </ul>
459 458 </xmp></div> <!-- end highlight -->
460 459
461 460 <h3>Description</h3>
462 461 <p>A list of terms with their associated descriptions.</p>
463 462 <div class="bs-example" data-example-id="simple-dl">
464 463 <dl>
465 464 <dt>Description lists</dt>
466 465 <dd>A description list is perfect for defining terms.</dd>
467 466 <dt>Euismod</dt>
468 467 <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
469 468 <dd>Donec id elit non mi porta gravida at eget metus.</dd>
470 469 <dt>Malesuada porta</dt>
471 470 <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
472 471 </dl>
473 472 </div>
474 473 <div class="highlight-html"><xmp>
475 474 <dl>
476 475 <dt>...</dt>
477 476 <dd>...</dd>
478 477 </dl>
479 478 </xmp></div> <!-- end highlight -->
480 479
481 480 <h4>Horizontal description</h4>
482 481 <p>Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side. Starts off stacked like default <code>&lt;dl&gt;</code>s, but when the navbar expands, so do these. This really only looks good if there is one line for the definition and one for the term.</p>
483 482 <div class="bs-example" data-example-id="horizontal-dl">
484 483 <dl class="dl-horizontal">
485 484 <dt>Description lists</dt>
486 485 <dd>A description list is perfect for defining terms.</dd>
487 486 <dt>Donec id elit non mi porta gravida at eget metus.</dt>
488 487 <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
489 488 <dd>Donec id elit non mi porta gravida at eget metus.</dd>
490 489 <dt>Malesuada porta</dt>
491 490 <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
492 491 <dt>Felis euismod semper eget lacinia</dt>
493 492 <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
494 493 </dl>
495 494 </div>
496 495 <div class="highlight-html"><xmp>
497 496 <dl class="dl-horizontal">
498 497 <dt>...</dt>
499 498 <dd>...</dd>
500 499 </dl>
501 500 </xmp></div> <!-- end highlight -->
502 501
503 502 </div>
504 503
505 504 </div>
506 505 </div>
507 506 </%def>
General Comments 0
You need to be logged in to leave comments. Login now