##// END OF EJS Templates
removed obsolete _static flag from url, and fixed urls in webhelpers
marcink -
r1050:cabe887a beta
parent child Browse files
Show More
@@ -412,10 +412,12 b' def bool2icon(value):'
412 412 """
413 413
414 414 if value is True:
415 return HTML.tag('img', src="/images/icons/accept.png", alt=_('True'))
415 return HTML.tag('img', src=url("/images/icons/accept.png"),
416 alt=_('True'))
416 417
417 418 if value is False:
418 return HTML.tag('img', src="/images/icons/cancel.png", alt=_('False'))
419 return HTML.tag('img', src=url("/images/icons/cancel.png"),
420 alt=_('False'))
419 421
420 422 return value
421 423
@@ -518,7 +520,7 b' def action_parser_icon(user_log):'
518 520 if len(x) > 1:
519 521 action, action_params = x
520 522
521 tmpl = """<img src="/images/icons/%s" alt="%s"/>"""
523 tmpl = """<img src="%s/%s" alt="%s"/>"""
522 524 map = {'user_deleted_repo':'database_delete.png',
523 525 'user_created_repo':'database_add.png',
524 526 'user_forked_repo':'arrow_divide.png',
@@ -532,7 +534,8 b' def action_parser_icon(user_log):'
532 534 'started_following_repo':'heart_add.png',
533 535 'stopped_following_repo':'heart_delete.png',
534 536 }
535 return literal(tmpl % (map.get(action, action), action))
537 return literal(tmpl % ((url('/images/icons/')),
538 map.get(action, action), action))
536 539
537 540
538 541 #==============================================================================
@@ -311,7 +311,7 b' overflow:hidden;'
311 311 color:#FFF;
312 312 font-weight:700;
313 313 text-decoration:none;
314 background:#369 url("../../images/quick_l.png") no-repeat top left;
314 background:#369 url("../images/quick_l.png") no-repeat top left;
315 315 padding:0;
316 316 }
317 317
@@ -325,7 +325,7 b' right:0;'
325 325 height:1%;
326 326 display:block;
327 327 float:left;
328 background:url("../../images/quick_r.png") no-repeat top right;
328 background:url("../images/quick_r.png") no-repeat top right;
329 329 border-left:1px solid #3f6f9f;
330 330 margin:0;
331 331 padding:10px 12px 8px 10px;
@@ -340,7 +340,7 b' padding:10px 12px 8px;'
340 340 top:0;
341 341 left:0;
342 342 border-left:none;
343 background:url("../../images/quick_l.png") no-repeat top left;
343 background:url("../images/quick_l.png") no-repeat top left;
344 344 border-right:1px solid #2e5c89;
345 345 padding:8px 8px 4px;
346 346 }
@@ -349,24 +349,24 b' padding:8px 8px 4px;'
349 349 top:0;
350 350 left:0;
351 351 border-left:none;
352 background:url("../../images/quick_l.png") no-repeat top left;
352 background:url("../images/quick_l.png") no-repeat top left;
353 353 border-right:1px solid #2e5c89;
354 354 padding:9px 4px 4px;
355 355 }
356 356
357 357 #header #header-inner #quick li a:hover {
358 background:#4e4e4e url("../../images/quick_l_selected.png") no-repeat top left;
358 background:#4e4e4e url("../images/quick_l_selected.png") no-repeat top left;
359 359 }
360 360
361 361 #header #header-inner #quick li a:hover span {
362 362 border-left:1px solid #545454;
363 background:url("../../images/quick_r_selected.png") no-repeat top right;
363 background:url("../images/quick_r_selected.png") no-repeat top right;
364 364 }
365 365
366 366 #header #header-inner #quick li a:hover span.icon,#header #header-inner #quick li a:hover span.icon_short {
367 367 border-left:none;
368 368 border-right:1px solid #464646;
369 background:url("../../images/quick_l_selected.png") no-repeat top left;
369 background:url("../images/quick_l_selected.png") no-repeat top left;
370 370 }
371 371
372 372
@@ -1004,7 +1004,7 b' padding:6px 12px;'
1004 1004 }
1005 1005
1006 1006 #content div.box div.form div.fields div.buttons div.highlight input.ui-button {
1007 background:#4e85bb url("../../images/button_highlight.png") repeat-x;
1007 background:#4e85bb url("../images/button_highlight.png") repeat-x;
1008 1008 border-top:1px solid #5c91a4;
1009 1009 border-left:1px solid #2a6f89;
1010 1010 border-right:1px solid #2b7089;
@@ -1015,7 +1015,7 b' padding:6px 12px;'
1015 1015 }
1016 1016
1017 1017 #content div.box div.form div.fields div.buttons div.highlight input.ui-state-hover {
1018 background:#46a0c1 url("../../images/button_highlight_selected.png") repeat-x;
1018 background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x;
1019 1019 border-top:1px solid #78acbf;
1020 1020 border-left:1px solid #34819e;
1021 1021 border-right:1px solid #35829f;
@@ -1292,7 +1292,7 b' width:420px;'
1292 1292 clear:both;
1293 1293 overflow:hidden;
1294 1294 position:relative;
1295 background:#003367 url("../../images/header_inner.png") repeat-x;
1295 background:#003367 url("../images/header_inner.png") repeat-x;
1296 1296 margin:0 auto;
1297 1297 padding:0;
1298 1298 }
@@ -1778,7 +1778,7 b' padding-left:4px;'
1778 1778 }
1779 1779
1780 1780 .info_box * {
1781 background:url("../../images/pager.png") repeat-x scroll 0 0 #EBEBEB;
1781 background:url("../images/pager.png") repeat-x scroll 0 0 #EBEBEB;
1782 1782 color:#4A4A4A;
1783 1783 font-weight:700;
1784 1784 height:1%;
@@ -2020,28 +2020,28 b' padding:0 0 10px;'
2020 2020
2021 2021 .error_msg {
2022 2022 background-color:#FFCFCF;
2023 background-image:url("../../images/icons/error_msg.png");
2023 background-image:url("../images/icons/error_msg.png");
2024 2024 border:1px solid #FF9595;
2025 2025 color:#C30;
2026 2026 }
2027 2027
2028 2028 .warning_msg {
2029 2029 background-color:#FFFBCC;
2030 background-image:url("../../images/icons/warning_msg.png");
2030 background-image:url("../images/icons/warning_msg.png");
2031 2031 border:1px solid #FFF35E;
2032 2032 color:#C69E00;
2033 2033 }
2034 2034
2035 2035 .success_msg {
2036 2036 background-color:#D5FFCF;
2037 background-image:url("../../images/icons/success_msg.png");
2037 background-image:url("../images/icons/success_msg.png");
2038 2038 border:1px solid #97FF88;
2039 2039 color:#090;
2040 2040 }
2041 2041
2042 2042 .notice_msg {
2043 2043 background-color:#DCE3FF;
2044 background-image:url("../../images/icons/notice_msg.png");
2044 background-image:url("../images/icons/notice_msg.png");
2045 2045 border:1px solid #93A8FF;
2046 2046 color:#556CB5;
2047 2047 }
@@ -2061,7 +2061,7 b' padding:6px 10px 6px 40px;'
2061 2061 }
2062 2062
2063 2063 #msg_close {
2064 background:transparent url("../../icons/cross_grey_small.png") no-repeat scroll 0 0;
2064 background:transparent url("../icons/cross_grey_small.png") no-repeat scroll 0 0;
2065 2065 cursor:pointer;
2066 2066 height:16px;
2067 2067 position:absolute;
@@ -2111,7 +2111,7 b' padding:14px 30px;'
2111 2111 }
2112 2112
2113 2113 #content div.box div.title div.search {
2114 background:url("../../images/title_link.png") no-repeat top left;
2114 background:url("../images/title_link.png") no-repeat top left;
2115 2115 border-left:1px solid #316293;
2116 2116 }
2117 2117
@@ -2120,21 +2120,21 b' border:1px solid #316293;'
2120 2120 }
2121 2121
2122 2122 #content div.box div.title div.search div.button input.ui-button {
2123 background:#4e85bb url("../../images/button_highlight.png") repeat-x;
2123 background:#4e85bb url("../images/button_highlight.png") repeat-x;
2124 2124 border:1px solid #316293;
2125 2125 border-left:none;
2126 2126 color:#FFF;
2127 2127 }
2128 2128
2129 2129 #content div.box div.title div.search div.button input.ui-state-hover {
2130 background:#46a0c1 url("../../images/button_highlight_selected.png") repeat-x;
2130 background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x;
2131 2131 border:1px solid #316293;
2132 2132 border-left:none;
2133 2133 color:#FFF;
2134 2134 }
2135 2135
2136 2136 #content div.box div.form div.fields div.field div.highlight .ui-button {
2137 background:#4e85bb url("../../images/button_highlight.png") repeat-x;
2137 background:#4e85bb url("../images/button_highlight.png") repeat-x;
2138 2138 border-top:1px solid #5c91a4;
2139 2139 border-left:1px solid #2a6f89;
2140 2140 border-right:1px solid #2b7089;
@@ -2143,7 +2143,7 b' color:#fff;'
2143 2143 }
2144 2144
2145 2145 #content div.box div.form div.fields div.field div.highlight .ui-state-hover {
2146 background:#46a0c1 url("../../images/button_highlight_selected.png") repeat-x;
2146 background:#46a0c1 url("../images/button_highlight_selected.png") repeat-x;
2147 2147 border-top:1px solid #78acbf;
2148 2148 border-left:1px solid #34819e;
2149 2149 border-right:1px solid #35829f;
@@ -3,7 +3,7 b''
3 3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
4 4 <head>
5 5 <title>${next.title()}</title>
6 <link rel="icon" href="${h.url('/images/icons/database_gear.png',_static=True)}" type="image/png" />
6 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
7 7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8 <meta name="robots" content="index, nofollow"/>
9 9 <!-- stylesheets -->
@@ -326,21 +326,21 b''
326 326
327 327
328 328 <%def name="css()">
329 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css',_static=True)}" media="screen" />
330 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css',_static=True)}" />
331 <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css',_static=True)}" />
329 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
330 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" />
331 <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" />
332 332 </%def>
333 333
334 334 <%def name="js()">
335 ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js',_static=True)}"></script>
336 ##<script type="text/javascript" src="${h.url('/js/yui/container/container.js',_static=True)}"></script>
337 ##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js',_static=True)}"></script>
338 ##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js',_static=True)}"></script>
339 ##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js',_static=True)}"></script>
335 ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script>
336 ##<script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script>
337 ##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script>
338 ##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script>
339 ##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script>
340 340
341 <script type="text/javascript" src="${h.url('/js/yui2a.js',_static=True)}"></script>
342 <!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js',_static=True)}"></script><![endif]-->
343 <script type="text/javascript" src="${h.url('/js/yui.flot.js',_static=True)}"></script>
341 <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script>
342 <!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script><![endif]-->
343 <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
344 344
345 345 <script type="text/javascript">
346 346 var base_url = "${h.url('toggle_following')}";
@@ -101,7 +101,7 b''
101 101 </div>
102 102 </div>
103 103
104 <script type="text/javascript" src="${h.url('/js/graph.js',_static=True)}"></script>
104 <script type="text/javascript" src="${h.url('/js/graph.js')}"></script>
105 105 <script type="text/javascript">
106 106 YAHOO.util.Event.onDOMReady(function(){
107 107
@@ -11,7 +11,7 b''
11 11 <meta name="robots" content="index, nofollow"/>
12 12
13 13 <!-- stylesheets -->
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css',_static=True)}" media="screen" />
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
15 15 <style type="text/css">
16 16 #main_div{
17 17 border: 0px solid #000;
@@ -8,7 +8,7 b''
8 8 <meta name="robots" content="index, nofollow"/>
9 9
10 10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css',_static=True)}" media="screen" />
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
12 12
13 13 </head>
14 14 <body>
@@ -8,7 +8,7 b''
8 8 <meta name="robots" content="index, nofollow"/>
9 9
10 10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css',_static=True)}" media="screen" />
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
12 12
13 13 </head>
14 14 <body>
@@ -8,7 +8,7 b''
8 8 <meta name="robots" content="index, nofollow"/>
9 9
10 10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css',_static=True)}" media="screen" />
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
12 12
13 13 </head>
14 14 <body>
General Comments 0
You need to be logged in to leave comments. Login now