##// END OF EJS Templates
Update css +file browsing and diffs
marcink -
r144:ea89ac73 default
parent child Browse files
Show More
@@ -0,0 +1,95 b''
1 div.diffblock {
2 overflow: auto;
3 padding: 0px;
4 border: 1px solid #ccc;
5 background: #f8f8f8;
6 font-size: 100%;
7 line-height: 100%;
8 /* new */
9 line-height: 125%;
10 }
11 div.diffblock .code-header{
12 border-bottom: 1px solid #CCCCCC;
13 background: #EEEEEE;
14 color:blue;
15 padding:10px 0 10px 0;
16 }
17 div.diffblock .code-header span{
18 margin-left:25px;
19 font-weight: bold;
20 }
21 div.diffblock .code-body{
22 background: #EEEEEE;
23 }
24
25 .code-difftable{
26 border-collapse: collapse;
27 }
28 .code-difftable .add{
29 background:none repeat scroll 0 0 #DDFFDD;
30 }
31 .code-difftable .add ins{
32 background:none repeat scroll 0 0 #AAFFAA;
33 text-decoration:none;
34 }
35
36 .code-difftable .del{
37 background:none repeat scroll 0 0 #FFDDDD;
38 }
39 .code-difftable .del del{
40 background:none repeat scroll 0 0 #FFAAAA;
41 text-decoration:none;
42 }
43
44 .code-difftable .lineno{
45 background:none repeat scroll 0 0 #EEEEEE !important;
46 border-right:1px solid #DDDDDD;
47 padding-left:2px;
48 padding-right:2px;
49 text-align:right;
50 width:20px;
51 -moz-user-select:none;
52 -webkit-user-select: none;
53 }
54 .code-difftable .lineno pre{
55 color:#747474 !important;
56 font:11px "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace !important;
57 letter-spacing:-1px;
58 text-align:right;
59 width:20px;
60 }
61 .code-difftable .lineno a{
62 color:#0000CC !important;
63 }
64 .code-difftable .code td{
65 margin:0;
66 padding: 0;
67 }
68 .code-difftable .code pre{
69 margin:0;
70 padding:0;
71 }
72
73
74 .code {
75 display: block;
76 width: 100%;
77 }
78 .code-diff {
79 padding: 0px;
80 margin-top: 5px;
81 margin-bottom: 5px;
82 border-left: 2px solid #ccc;
83 }
84 .code-diff pre, .line pre {
85 padding: 3px;
86 margin: 0;
87 }
88 .lineno a {
89 text-decoration: none;
90 }
91
92 .line{
93 padding:0;
94 margin:0;
95 } No newline at end of file
@@ -1,33 +1,22 b''
1 /*** Initial Settings ***/
1 /*** Initial Settings ***/
2 * {
2 #mainhtml{
3 margin: 0;
4 padding: 0;
5 font-weight: normal;
6 font-style: normal;
7 }
8
9 html {
10 font-size: 100%;
11 font-family: sans-serif;
12 }
13
14 body {
15 font-size: 77%;
16 margin: 15px 50px;
3 margin: 15px 50px;
17 background: #DBD4C6;
4 background: #DBD4C6;
5 font-family: sans-serif;
18 }
6 }
19
7
20 a {
8 a {
21 color:#0000cc;
9 color: #0000cc;
22 text-decoration: none;
10 text-decoration: none;
23 }
11 }
24 /*** end of Initial Settings ***/
12 a:HOVER{
25
13 text-decoration: underline;
26
14 }
27 /** common settings **/
15 /*** end of Initial Settings ***/ /** common settings **/
28 div#main{
16 div#main {
29 padding:5px;
17 padding: 5px;
30 }
18 }
19
31 div#container {
20 div#container {
32 background: #FFFFFF;
21 background: #FFFFFF;
33 position: relative;
22 position: relative;
@@ -39,6 +28,7 b' div.page-header {'
39 background: #556cb5 top left repeat-x;
28 background: #556cb5 top left repeat-x;
40 position: relative;
29 position: relative;
41 }
30 }
31
42 div.page-header h1 {
32 div.page-header h1 {
43 margin: 10px 0 30px;
33 margin: 10px 0 30px;
44 font-size: 1.8em;
34 font-size: 1.8em;
@@ -47,10 +37,12 b' div.page-header {'
47 letter-spacing: 1px;
37 letter-spacing: 1px;
48 color: #DDD;
38 color: #DDD;
49 }
39 }
40
50 div.page-header h1 a {
41 div.page-header h1 a {
51 font-weight: bold;
42 font-weight: bold;
52 color: #FFF;
43 color: #FFF;
53 }
44 }
45
54 div.page-header a {
46 div.page-header a {
55 text-decoration: none;
47 text-decoration: none;
56 }
48 }
@@ -61,21 +53,25 b' div.page-header {'
61 bottom: 0;
53 bottom: 0;
62 right: 20px;
54 right: 20px;
63 }
55 }
56
64 div.page-header form label {
57 div.page-header form label {
65 color: #DDD;
58 color: #DDD;
66 }
59 }
60
67 div.page-header form input {
61 div.page-header form input {
68 padding: 2px;
62 padding: 2px;
69 border: solid 1px #DDD;
63 border: solid 1px #DDD;
70 }
64 }
65
71 div.page-header form dl {
66 div.page-header form dl {
72 overflow: hidden;
67 overflow: hidden;
73 }
68 }
69
74 div.page-header form dl dt {
70 div.page-header form dl dt {
75 font-size: 1.2em;
71 font-size: 1.2em;
76 }
72 }
77 div.page-header form dl dt,
73
78 div.page-header form dl dd {
74 div.page-header form dl dt,div.page-header form dl dd {
79 margin: 0 0 0 5px;
75 margin: 0 0 0 5px;
80 float: left;
76 float: left;
81 height: 24px;
77 height: 24px;
@@ -87,7 +83,9 b' div.page-header {'
87 list-style-type: none;
83 list-style-type: none;
88 overflow: hidden;
84 overflow: hidden;
89 width: 800px;
85 width: 800px;
86 padding: 0;
90 }
87 }
88
91 ul.page-nav li {
89 ul.page-nav li {
92 margin: 0 2px 0 0;
90 margin: 0 2px 0 0;
93 float: left;
91 float: left;
@@ -95,21 +93,24 b' div.page-header {'
95 font-size: 1.1em;
93 font-size: 1.1em;
96 line-height: 24px;
94 line-height: 24px;
97 text-align: center;
95 text-align: center;
96 background: #DDD;
98 }
97 }
98
99 ul.page-nav li.current {
99 ul.page-nav li.current {
100 background: #FFF;
100 background: #FFF;
101 padding-right:5px;
101 padding-right: 5px;
102 padding-left:5px;
102 padding-left: 5px;
103 }
103 }
104
104 ul.page-nav li a {
105 ul.page-nav li a {
105 height: 24px;
106 height: 24px;
106 color: #666;
107 color: #666;
107 padding-right:5px;
108 padding-right: 5px;
108 padding-left:5px;
109 padding-left: 5px;
109 background: #DDD;
110 display: block;
110 display: block;
111 text-decoration: none;
111 text-decoration: none;
112 }
112 }
113
113 ul.page-nav li a:hover {
114 ul.page-nav li a:hover {
114 color:#333;
115 color: #333;
115 background: #FFF;
116 background: #FFF;
@@ -119,6 +120,7 b' ul.submenu {'
119 margin: 10px 0 -10px 20px;
120 margin: 10px 0 -10px 20px;
120 list-style-type: none;
121 list-style-type: none;
121 }
122 }
123
122 ul.submenu li {
124 ul.submenu li {
123 margin: 0 10px 0 0;
125 margin: 0 10px 0 0;
124 font-size: 1.2em;
126 font-size: 1.2em;
@@ -135,14 +137,17 b' h2 {'
135 border-top: dotted 1px #D5E1E6;
137 border-top: dotted 1px #D5E1E6;
136 font-weight: bold;
138 font-weight: bold;
137 }
139 }
140
138 h2.no-link {
141 h2.no-link {
139 color:#006699;
142 color: #006699;
140 }
143 }
144
141 h2.no-border {
145 h2.no-border {
142 color: #FFF;
146 color: #FFF;
143 background: #556CB5;
147 background: #556CB5;
144 border: 0;
148 border: 0;
145 }
149 }
150
146 h2 a {
151 h2 a {
147 font-weight:bold;
152 font-weight: bold;
148 color:#006699;
153 color: #006699;
@@ -160,6 +165,7 b' div.page-footer {'
160 margin: 50px 0 0;
165 margin: 50px 0 0;
161 position: relative;
166 position: relative;
162 }
167 }
168
163 div.page-footer p {
169 div.page-footer p {
164 position: relative;
170 position: relative;
165 left: 20px;
171 left: 20px;
@@ -174,9 +180,11 b' div.page-footer {'
174 height: 20px;
180 height: 20px;
175 list-style-type: none;
181 list-style-type: none;
176 }
182 }
183
177 ul.rss-logo li {
184 ul.rss-logo li {
178 display: inline;
185 display: inline;
179 }
186 }
187
180 ul.rss-logo li a {
188 ul.rss-logo li a {
181 padding: 3px 6px;
189 padding: 3px 6px;
182 line-height: 10px;
190 line-height: 10px;
@@ -190,6 +198,7 b' div.page-footer {'
190 text-align:center;
198 text-align: center;
191 text-decoration:none;
199 text-decoration: none;
192 }
200 }
201
193 div.rss-logo li a:hover {
202 div.rss-logo li a:hover {
194 background-color:#ee5500;
203 background-color: #ee5500;
195 }
204 }
@@ -199,18 +208,6 b' p.normal {'
199 font-size: 1.2em;
208 font-size: 1.2em;
200 }
209 }
201
210
202 table {
203 margin: 0 0 0 0;
204 border-collapse: collapse;
205 }
206 /*
207 table tr td {
208 font-size: 1.1em;
209 }
210 table tr td.nowrap {
211 white-space: nowrap;
212 }
213 */
214 table tr.parity0:hover,table tr.parity1:hover {
211 table tr.parity0:hover,table tr.parity1:hover {
215 background: #D5E1E6;
212 background: #D5E1E6;
216 }
213 }
@@ -218,15 +215,10 b' table tr.parity0:hover,table tr.parity1:'
218 table tr.parity0 {
215 table tr.parity0 {
219 background: #EAEAE9;
216 background: #EAEAE9;
220 }
217 }
218
221 table tr.parity1 {
219 table tr.parity1 {
222 background: #FFFFFF;
220 background: #FFFFFF;
223 }
221 }
224 table tr td {
225 padding: 3px 3px;
226 }
227 table.annotated tr td {
228 padding: 0px 3px;
229 }
230
222
231 span.logtags span {
223 span.logtags span {
232 background-repeat:no-repeat;
224 background-repeat: no-repeat;
@@ -236,13 +228,16 b' span.logtags span {'
236 text-align:left;
228 text-align: left;
237 font-weight: bold;
229 font-weight: bold;
238 }
230 }
231
239 span.logtags span.tagtag {
232 span.logtags span.tagtag {
240 background-image:url("/images/label_16.png");
233 background-image: url("/images/label_16.png");
241 }
234 }
235
242 span.logtags span.branchtag {
236 span.logtags span.branchtag {
243 background-image:url("/images/left_16.png");
237 background-image: url("/images/left_16.png");
244 color: #628F53;
238 color: #628F53;
245 }
239 }
240
246 span.logtags span.inbranchtag {
241 span.logtags span.inbranchtag {
247 background-image:url("/images/left_16.png");
242 background-image: url("/images/left_16.png");
248 }
243 }
@@ -250,12 +245,14 b' span.logtags span.inbranchtag {'
250 div.diff pre {
245 div.diff pre {
251 margin: 10px 0 0 0;
246 margin: 10px 0 0 0;
252 }
247 }
248
253 div.diff pre span {
249 div.diff pre span {
254 font-family: monospace;
250 font-family: monospace;
255 white-space: pre;
251 white-space: pre;
256 font-size: 1.2em;
252 font-size: 1.2em;
257 padding: 3px 0;
253 padding: 3px 0;
258 }
254 }
255
259 td.source {
256 td.source {
260 white-space: pre;
257 white-space: pre;
261 font-family: monospace;
258 font-family: monospace;
@@ -263,31 +260,37 b' td.source {'
263 font-size: 1.2em;
260 font-size: 1.2em;
264 font-family: monospace;
261 font-family: monospace;
265 }
262 }
266 div.source div.parity0,
263
267 div.source div.parity1 {
264 div.source div.parity0,div.source div.parity1 {
268 padding: 1px;
265 padding: 1px;
269 font-size: 1.2em;
266 font-size: 1.2em;
270 }
267 }
268
271 div.source div.parity0 {
269 div.source div.parity0 {
272 background: #F1F6F7;
270 background: #F1F6F7;
273 }
271 }
272
274 div.source div.parity1 {
273 div.source div.parity1 {
275 background: #FFFFFF;
274 background: #FFFFFF;
276 }
275 }
277 div.parity0:hover,
276
278 div.parity1:hover {
277 div.parity0:hover,div.parity1:hover {
279 background: #D5E1E6;
278 background: #D5E1E6;
280 }
279 }
280
281 .linenr {
281 .linenr {
282 color: #999;
282 color: #999;
283 text-align: right;
283 text-align: right;
284 }
284 }
285
285 .lineno {
286 .lineno {
286 text-align: right;
287 text-align: right;
287 }
288 }
289
288 .lineno a {
290 .lineno a {
289 color: #999;
291 color: #999;
290 }
292 }
293
291 td.linenr {
294 td.linenr {
292 width: 60px;
295 width: 60px;
293 }
296 }
@@ -299,69 +302,33 b' div#powered-by {'
299 right: 20px;
302 right: 20px;
300 font-size: 1.2em;
303 font-size: 1.2em;
301 }
304 }
305
302 div#powered-by a {
306 div#powered-by a {
303 color: #EEE;
307 color: #EEE;
304 text-decoration: none;
308 text-decoration: none;
305 }
309 }
310
306 div#powered-by a:hover {
311 div#powered-by a:hover {
307 text-decoration: underline;
312 text-decoration: underline;
308 }
313 }
309 /*
310 div#monoblue-corner-top-left {
311 position: absolute;
312 top: 0;
313 left: 0;
314 width: 10px;
315 height: 10px;
316 background: url(./monoblue-corner.png) top left no-repeat !important;
317 background: none;
318 }
319 div#monoblue-corner-top-right {
320 position: absolute;
321 top: 0;
322 right: 0;
323 width: 10px;
324 height: 10px;
325 background: url(./monoblue-corner.png) top right no-repeat !important;
326 background: none;
327 }
328 div#monoblue-corner-bottom-left {
329 position: absolute;
330 bottom: 0;
331 left: 0;
332 width: 10px;
333 height: 10px;
334 background: url(./monoblue-corner.png) bottom left no-repeat !important;
335 background: none;
336 }
337 div#monoblue-corner-bottom-right {
338 position: absolute;
339 bottom: 0;
340 right: 0;
341 width: 10px;
342 height: 10px;
343 background: url(./monoblue-corner.png) bottom right no-repeat !important;
344 background: none;
345 }
346 */
347 /** end of common settings **/
348
314
349 /** summary **/
350 dl.overview {
315 dl.overview {
351 margin: 0 0 0 30px;
316 margin: 0 0 0 30px;
352 font-size: 1.1em;
317 font-size: 1.1em;
353 overflow: hidden;
318 overflow: hidden;
354 }
319 }
355 dl.overview dt,
320
356 dl.overview dd {
321 dl.overview dt,dl.overview dd {
357 margin: 5px 0;
322 margin: 5px 0;
358 float: left;
323 float: left;
359 }
324 }
325
360 dl.overview dt {
326 dl.overview dt {
361 clear: left;
327 clear: left;
362 font-weight: bold;
328 font-weight: bold;
363 width: 150px;
329 width: 150px;
364 }
330 }
331
365 /** end of summary **/
332 /** end of summary **/
366
333
367 /** chagelog **/
334 /** chagelog **/
@@ -371,14 +338,17 b' h3.changelog {'
371 font-size: 1.4em;
338 font-size: 1.4em;
372 border-bottom: dotted 1px #D5E1E6;
339 border-bottom: dotted 1px #D5E1E6;
373 }
340 }
341
374 ul.changelog-entry {
342 ul.changelog-entry {
375 margin: 0 0 10px 30px;
343 margin: 0 0 10px 30px;
376 list-style-type: none;
344 list-style-type: none;
377 position: relative;
345 position: relative;
378 }
346 }
347
379 ul.changelog-entry li span.revdate {
348 ul.changelog-entry li span.revdate {
380 font-size: 1.1em;
349 font-size: 1.1em;
381 }
350 }
351
382 ul.changelog-entry li.age {
352 ul.changelog-entry li.age {
383 position: absolute;
353 position: absolute;
384 top: -25px;
354 top: -25px;
@@ -388,14 +358,17 b' ul.changelog-entry li.age {'
388 font-weight: bold;
358 font-weight: bold;
389 font-style: italic;
359 font-style: italic;
390 }
360 }
361
391 ul.changelog-entry li span.name {
362 ul.changelog-entry li span.name {
392 font-size: 1.2em;
363 font-size: 1.2em;
393 font-weight: bold;
364 font-weight: bold;
394 }
365 }
366
395 ul.changelog-entry li.description {
367 ul.changelog-entry li.description {
396 margin: 10px 0 0;
368 margin: 10px 0 0;
397 font-size: 1.1em;
369 font-size: 1.1em;
398 }
370 }
371
399 /** end of changelog **/
372 /** end of changelog **/
400
373
401 /** file **/
374 /** file **/
@@ -404,6 +377,7 b' p.files {'
404 font-size: 2.0em;
377 font-size: 2.0em;
405 font-weight: bold;
378 font-weight: bold;
406 }
379 }
380
407 /** end of file **/
381 /** end of file **/
408
382
409 /** changeset **/
383 /** changeset **/
@@ -413,9 +387,11 b' h3.changeset {'
413 font-size: 1.6em;
387 font-size: 1.6em;
414 border-bottom: dotted 1px #D5E1E6;
388 border-bottom: dotted 1px #D5E1E6;
415 }
389 }
390
416 p.changeset-age {
391 p.changeset-age {
417 position: relative;
392 position: relative;
418 }
393 }
394
419 p.changeset-age span {
395 p.changeset-age span {
420 position: absolute;
396 position: absolute;
421 top: -25px;
397 top: -25px;
@@ -425,12 +401,14 b' p.changeset-age span {'
425 font-weight: bold;
401 font-weight: bold;
426 font-style: italic;
402 font-style: italic;
427 }
403 }
404
428 p.description {
405 p.description {
429 margin: 10px 30px 0 30px;
406 margin: 10px 30px 0 30px;
430 padding: 10px;
407 padding: 10px;
431 border: solid 1px #CCC;
408 border: solid 1px #CCC;
432 font-size: 1.2em;
409 font-size: 1.2em;
433 }
410 }
411
434 /** end of changeset **/
412 /** end of changeset **/
435
413
436 /** canvas **/
414 /** canvas **/
@@ -472,27 +450,64 b' ul#graphnodes li .info {'
472 display: block;
450 display: block;
473 position: relative;
451 position: relative;
474 }
452 }
453
475 /** end of canvas **/
454 /** end of canvas **/
476
455
456 /* FILE BROWSER */
457 div.browserblock {
458 overflow: hidden;
459 padding: 0px;
460 border: 1px solid #ccc;
461 background: #f8f8f8;
462 font-size: 100%;
463 line-height: 100%;
464 /* new */
465 line-height: 125%;
466 }
467 div.browserblock .browser-header{
468 border-bottom: 1px solid #CCCCCC;
469 background: #EEEEEE;
470 color:blue;
471 padding:10px 0 10px 0;
472 }
473 div.browserblock .browser-header span{
474 margin-left:25px;
475 font-weight: bold;
476 }
477 div.browserblock .browser-body{
478 background: #EEEEEE;
479 }
480
477 table.code-browser{
481 table.code-browser {
482 border-collapse:collapse;
483 }
484 table.code-browser tr{
485 margin:3px;
486 }
478
487
479 }
480 table.code-browser thead th {
488 table.code-browser thead th {
481 background-color:#EEEEEE;
489 background-color: #EEEEEE;
482 border:1px solid #999999;
483 height:20px;
490 height: 20px;
484 font-size: 1.1em;
491 font-size: 1.1em;
485 font-weight: bold;
492 font-weight: bold;
493 text-align: center;
486 }
494 }
495 table.code-browser tbody tr {
496
497 }
498
487 table.code-browser tbody td {
499 table.code-browser tbody td {
488 border:1px solid #999999;
500
501 padding-left:10px;
489 height:20px;
502 height: 20px;
490 }
503 }
504
491 .info-table {
505 .info-table {
492 background:none repeat scroll 0 0 #FAFAFA;
506 background: none repeat scroll 0 0 #FAFAFA;
493 border-bottom:1px solid #DDDDDD;
507 border-bottom: 1px solid #DDDDDD;
494 width:100%;
508 width: 100%;
495 }
509 }
510
496 .rss_logo{
511 .rss_logo {
497 background-image:url("/images/feed.png");
512 background-image: url("/images/feed.png");
498 background-repeat:no-repeat;
513 background-repeat: no-repeat;
@@ -501,8 +516,8 b' table.code-browser tbody td {'
501 padding-left:20px;
516 padding-left: 20px;
502 padding-top:0px;
517 padding-top: 0px;
503 text-align:left;
518 text-align: left;
519 }
504
520
505 }
506 .atom_logo{
521 .atom_logo {
507 background-image:url("/images/atom.png");
522 background-image: url("/images/atom.png");
508 background-repeat:no-repeat;
523 background-repeat: no-repeat;
@@ -511,8 +526,8 b' table.code-browser tbody td {'
511 padding-left:20px;
526 padding-left: 20px;
512 padding-top:0px;
527 padding-top: 0px;
513 text-align:left;
528 text-align: left;
529 }
514
530
515 }
516 .browser-file {
531 .browser-file {
517 background-image:url("/images/document_16.png");
532 background-image: url("/images/document_16.png");
518 background-repeat:no-repeat;
533 background-repeat: no-repeat;
@@ -522,6 +537,7 b' table.code-browser tbody td {'
522 padding-top:0px;
537 padding-top: 0px;
523 text-align:left;
538 text-align: left;
524 }
539 }
540
525 .browser-dir {
541 .browser-dir {
526 background-image:url("/images/folder_16.png");
542 background-image: url("/images/folder_16.png");
527 background-repeat:no-repeat;
543 background-repeat: no-repeat;
@@ -534,10 +550,9 b' table.code-browser tbody td {'
534
550
535 .current_submenu{
551 .current_submenu {
536 border-bottom: 2px solid;
552 border-bottom: 2px solid;
553 }
537
554
538 }
539 #repos_list{
555 #repos_list {
540 border:1px solid #556CB5;
556 border: 1px solid #556CB5;
541 background: #FFFFFF;
557 background: #FFFFFF;
542
543 } No newline at end of file
558 }
@@ -8,6 +8,16 b' div.codeblock {'
8 /* new */
8 /* new */
9 line-height: 125%;
9 line-height: 125%;
10 }
10 }
11 div.codeblock .code-header{
12 border-bottom: 1px solid #CCCCCC;
13 background: #EEEEEE;
14 color:blue;
15 padding:10px 0 10px 0;
16 }
17 div.codeblock .code-header span{
18 margin-left:25px;
19 font-weight: bold;
20 }
11
21
12 .code-highlight {
22 .code-highlight {
13 padding: 0px;
23 padding: 0px;
@@ -22,50 +22,38 b''
22 </%def>
22 </%def>
23 <%def name="css()">
23 <%def name="css()">
24 <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
24 <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
25 <link rel="stylesheet" href="/css/pygments_diff.css" type="text/css" />
25 <link rel="stylesheet" href="/css/diff.css" type="text/css" />
26 </%def>
26 </%def>
27 <div></div>
28 <%def name="main()">
27 <%def name="main()">
29 <h2 class="no-link no-border">${'%s: %s@%s %s %s' % (_('File diff'),c.f_path,c.diff2,'&rarr;',c.diff1)|n}</h2>
28 <h2 class="no-link no-border">${'%s: %s %s %s' % (_('File diff'),c.diff2,'&rarr;',c.diff1)|n}</h2>
30 <div id="files_data">
29 <div id="body" class="diffblock">
31 <div id="body" class="codeblock">
30 <div class="code-header">
32 ${h.pygmentize(c.diff,linenos=True,anchorlinenos=True,cssclass="code-diff")}
31 <span>${h.link_to(c.f_path,h.url('files_home',repo_name=c.repo_name,revision=c.diff2.split(':')[1],f_path=c.f_path))}</span>
33 </div>
34 </div>
32 </div>
35 <div style="clear:both"></div>
33 <div class="code-body">
36 <div id="files_data">
34 %if c.no_changes:
37 <div id="body" class="codeblock">
35 ${_('No changes')}
38 <table class='highlighttable'>
36 %else:
39 %for x in c.diff_2[0]['chunks']:
37 <table class='code-difftable'>
38 %for diff in c.diff_files:
39 %for x in diff['chunks']:
40 %for y in x:
40 %for y in x:
41 <tr class="line ${y['action']}">
41 <tr class="line ${y['action']}">
42 <td class="lineno_new">
42 <td id="#${diff['filename']}_N${y['new_lineno']}"class="lineno new">
43 <div class="linenodiv">
43 <pre><a href="#${diff['filename']}_N${y['new_lineno']}">${y['new_lineno']}</a></pre>
44 <pre>
45 ${y['new_lineno']}
46 </pre>
47 </div>
48 </td>
44 </td>
49 <td class="lineno_old">
45 <td id="#${diff['filename']}_O${y['old_lineno']}" class="lineno old">
50 <div class="linenodiv">
46 <pre><a href="#${diff['filename']}_O${y['old_lineno']}">${y['old_lineno']}</a></pre>
51 <pre>
52 ${y['old_lineno']}
53 </pre>
54 </div>
55 </td>
47 </td>
56 <td class="code">
48 <td class="code">
57 <div class="code-diff">
49 <pre>${y['line']|n}</pre>
58 <pre>
59 <span>
60 ${y}
61 </span>
62 </pre>
63 </div>
64 </td>
50 </td>
65 </tr>
51 </tr>
66 %endfor$
52 %endfor$
67 %endfor
53 %endfor
54 %endfor
68 </table>
55 </table>
56 %endif
69 </div>
57 </div>
70 </div>
58 </div>
71 </%def> No newline at end of file
59 </%def>
@@ -5,29 +5,36 b''
5 <%return "browser-dir"%>
5 <%return "browser-dir"%>
6 %endif
6 %endif
7 </%def>
7 </%def>
8
8 <div id="body" class="browserblock">
9 <div class="browser-header">
10 ${h.form(h.url.current())}
11 <span>${_('view')}@rev:${h.text('at_rev',value=c.rev_nr,size='5')}</span>
12 ${h.submit('view','view')}
13 ${h.end_form()}
14 </div>
15 <div class="browser-body">
9 <table class="code-browser">
16 <table class="code-browser">
10 <thead>
17 <thead>
11 <tr>
18 <tr>
12 <th class="width-50 lefted">${_('Name')}</th>
19 <th>${_('Name')}</th>
13 <th class="width-10 righted">${_('Size')}</th>
20 <th>${_('Size')}</th>
14 <th class="width-10 righted">${_('Revision')}</th>
21 <th>${_('Revision')}</th>
15 <th class="width-15 righted">${_('Last modified')}</th>
22 <th>${_('Last modified')}</th>
16 <th class="width-15 righted">${_('Last commiter')}</th>
23 <th>${_('Last commiter')}</th>
17 </tr>
24 </tr>
18 </thead>
25 </thead>
19 <tr>
26 <tr class="parity0">
27 <td>
20 % if c.files_list.parent:
28 % if c.files_list.parent:
21 <td>
29 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")}
22 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent),class_="browser-dir")}
30 %endif
23 </td>
31 </td>
24 <td></td>
32 <td></td>
25 <td></td>
33 <td></td>
26 <td></td>
34 <td></td>
27 <td></td>
35 <td></td>
28 %endif
29 </tr>
36 </tr>
30 %for cnt,node in enumerate(c.files_list):
37 %for cnt,node in enumerate(c.files_list,1):
31 <tr class="parity${cnt%2}">
38 <tr class="parity${cnt%2}">
32 <td>
39 <td>
33 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
40 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
@@ -54,4 +61,6 b''
54 </td>
61 </td>
55 </tr>
62 </tr>
56 %endfor
63 %endfor
57 </table> No newline at end of file
64 </table>
65 </div>
66 </div> No newline at end of file
@@ -1,14 +1,14 b''
1 <dl class="overview">
1 <dl class="overview">
2 <dt>${_('Revision')}</dt>
2 <dt>${_('Revision')}</dt>
3 <dd>r${c.files_list.changeset.revision}:${c.files_list.changeset._short}</dd>
3 <dd>r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</dd>
4 <dt>${_('Size')}</dt>
4 <dt>${_('Size')}</dt>
5 <dd>${h.filesizeformat(c.files_list.size)}</dd>
5 <dd>${h.filesizeformat(c.files_list.size)}</dd>
6 <dt>${_('Options')}</dt>
6 <dt>${_('Options')}</dt>
7 <dd>history / annotate / raw </dd>
7 <dd>${h.link_to(_('annotate'),h.url('#'))} / ${h.link_to(_('raw'),h.url('#'))}</dd>
8 <dt>${_('History')}</dt>
8 <dt>${_('History')}</dt>
9 <dd>
9 <dd>
10 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
10 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
11 ${h.hidden('diff2',c.files_list.changeset._short)}
11 ${h.hidden('diff2',c.files_list.last_changeset._short)}
12 ${h.select('diff1','',c.file_history)}
12 ${h.select('diff1','',c.file_history)}
13 ${h.submit('diff','diff')}
13 ${h.submit('diff','diff')}
14 ${h.end_form()}
14 ${h.end_form()}
@@ -16,5 +16,10 b''
16
16
17 </dl>
17 </dl>
18 <div id="body" class="codeblock">
18 <div id="body" class="codeblock">
19 <div class="code-header">
20 <span>${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</span>
21 </div>
22 <div class="code-body">
19 ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}
23 ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}
24 </div>
20 </div> No newline at end of file
25 </div>
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now