##// END OF EJS Templates
rewrote templates, all small pages will inherit from root for easier changes and controll
marcink -
r1157:41241617 beta
parent child Browse files
Show More
@@ -0,0 +1,126 b''
1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>${self.title()}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <meta name="robots" content="index, nofollow"/>
8 <link rel="icon" href="${h.url("/images/icons/database_gear.png")}" type="image/png" />
9
10 <!-- stylesheets -->
11 ${self.css()}
12
13 %if c.ga_code:
14 <!-- Analytics -->
15 <script type="text/javascript">
16 var _gaq = _gaq || [];
17 _gaq.push(['_setAccount', '${c.ga_code}']);
18 _gaq.push(['_trackPageview']);
19
20 (function() {
21 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24 })();
25 </script>
26 %endif
27
28 <!-- scripts -->
29 ${self.js()}
30
31 </head>
32
33 <body id="body">
34 ${next.body()}
35 </body>
36
37 </html>
38
39 <%def name="css()">
40 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
41 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" />
42 <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" />
43 </%def>
44
45 <%def name="js()">
46 <script type="text/javascript">
47 if (typeof console == "undefined" || typeof console.log == "undefined")
48 console = { log: function() {} }
49 </script>
50
51 % if False:
52 <script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script>
53 <script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script>
54 <script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script>
55 <script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script>
56 <script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script>
57 % else:
58 <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script>
59 <!--[if IE]>
60 <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script>
61 <![endif]-->
62 <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
63 % endif
64
65 <script type="text/javascript">
66 var YUC = YAHOO.util.Connect;
67 var YUD = YAHOO.util.Dom;
68 var YUE = YAHOO.util.Event;
69 </script>
70
71 <script type="text/javascript">
72 var base_url = "${h.url('toggle_following')}";
73 function onSuccess(target){
74
75 var f = YUD.get(target.id);
76 var f_cnt = YUD.get('current_followers_count');
77
78 if(f.getAttribute('class')=='follow'){
79 f.setAttribute('class','following');
80 f.setAttribute('title',"${_('Stop following this repository')}");
81
82 if(f_cnt){
83 var cnt = Number(f_cnt.innerHTML)+1;
84 f_cnt.innerHTML = cnt;
85 }
86
87 }
88 else{
89 f.setAttribute('class','follow');
90 f.setAttribute('title',"${_('Start following this repository')}");
91 if(f_cnt){
92 var cnt = Number(f_cnt.innerHTML)+1;
93 f_cnt.innerHTML = cnt;
94 }
95 }
96 }
97
98 function toggleFollowingUser(target,fallows_user_id,token,user_id){
99 args = 'follows_user_id='+fallows_user_id;
100 args+= '&amp;auth_token='+token;
101 if(user_id != undefined){
102 args+="&amp;user_id="+user_id;
103 }
104 YUC.asyncRequest('POST',base_url,{
105 success:function(o){
106 onSuccess(target);
107 }
108 },args); return false;
109 }
110
111 function toggleFollowingRepo(target,fallows_repo_id,token,user_id){
112
113 args = 'follows_repo_id='+fallows_repo_id;
114 args+= '&amp;auth_token='+token;
115 if(user_id != undefined){
116 args+="&amp;user_id="+user_id;
117 }
118 YUC.asyncRequest('POST',base_url,{
119 success:function(o){
120 onSuccess(target);
121 }
122 },args); return false;
123 }
124 </script>
125
126 </%def> No newline at end of file
@@ -1,31 +1,7 b''
1 1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>${next.title()}</title>
6 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 <meta name="robots" content="index, nofollow"/>
9 <!-- stylesheets -->
10 ${self.css()}
11 <!-- scripts -->
12 ${self.js()}
13 %if c.ga_code:
14 <script type="text/javascript">
15 var _gaq = _gaq || [];
16 _gaq.push(['_setAccount', '${c.ga_code}']);
17 _gaq.push(['_trackPageview']);
2 <%inherit file="root.html"/>
18 3
19 (function() {
20 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23 })();
24 </script>
25 %endif
26 </head>
27 <body>
28 <!-- header -->
4 <!-- HEADER -->
29 5 <div id="header">
30 6 <!-- user -->
31 7 <ul id="logged-user">
@@ -47,7 +23,7 b''
47 23 %if c.rhodecode_user.username != 'default':
48 24 <li>
49 25 <a href="${h.url('journal')}">${_('Journal')}</a>
50 ##(${c.unread_journal})</a>
26 ##(${c.unread_journal}
51 27 </li>
52 28 %endif
53 29 %if c.rhodecode_user.username == 'default':
@@ -58,17 +34,16 b''
58 34 </ul>
59 35 <!-- end user -->
60 36 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
61 <!-- logo -->
62 37 <div id="logo">
63 38 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
64 39 </div>
65 <!-- end logo -->
66 <!-- menu -->
40 <!-- MENU -->
67 41 ${self.page_nav()}
68 <!-- quick -->
42 <!-- END MENU -->
43 ${self.body()}
69 44 </div>
70 45 </div>
71 <!-- end header -->
46 <!-- END HEADER -->
72 47
73 48 <!-- CONTENT -->
74 49 <div id="content">
@@ -88,13 +63,20 b''
88 63 </div>
89 64 <!-- END CONTENT -->
90 65
91 <!-- footer -->
66 <!-- FOOTER -->
92 67 <div id="footer">
93 68 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
94 69 <div>
95 <p class="footer-link">${h.link_to(_('Submit a bug'),h.url('bugtracker'))}</p>
96 <p class="footer-link">${h.link_to(_('GPL license'),h.url('gpl_license'))}</p>
97 <p class="footer-link-right"><a href="${h.url('rhodecode_official')}">RhodeCode</a> ${c.rhodecode_version} &copy; 2010-2011 by Marcin Kuzminski</p>
70 <p class="footer-link">
71 <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a>
72 </p>
73 <p class="footer-link">
74 <a href="${h.url('gpl_license')}">${_('GPL license')}</a>
75 </p>
76 <p class="footer-link-right">
77 <a href="${h.url('rhodecode_official')}">RhodeCode</a>
78 ${c.rhodecode_version} &copy; 2010-${h.datetime.today().year} by Marcin Kuzminski
79 </p>
98 80 </div>
99 81 </div>
100 82 <script type="text/javascript">
@@ -104,16 +86,20 b''
104 86 tooltip_activate();
105 87 </script>
106 88 </div>
107 <!-- end footer -->
108 </body>
109
110 </html>
89 <!-- END FOOTER -->
111 90
112 91 ### MAKO DEFS ###
113 92 <%def name="page_nav()">
114 93 ${self.menu()}
115 94 </%def>
116 95
96 <%def name="breadcrumbs()">
97 <div class="breadcrumbs">
98 ${self.breadcrumbs_links()}
99 </div>
100 </%def>
101
102
117 103 <%def name="menu(current=None)">
118 104 <%
119 105 def is_current(selected):
@@ -314,89 +300,4 b''
314 300 %endif
315 301 </ul>
316 302 %endif
317 </%def>
318
319
320 <%def name="css()">
321 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
322 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" />
323 <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" />
324 </%def>
325
326 <%def name="js()">
327 ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script>
328 ##<script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script>
329 ##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script>
330 ##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script>
331 ##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script>
332
333 <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script>
334 <!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script><![endif]-->
335 <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
336
337 <script type="text/javascript">
338 var base_url = "${h.url('toggle_following')}";
339 var YUC = YAHOO.util.Connect;
340 var YUD = YAHOO.util.Dom;
341 var YUE = YAHOO.util.Event;
342
343 function onSuccess(target){
344
345 var f = YUD.get(target.id);
346 var f_cnt = YUD.get('current_followers_count');
347
348 if(f.getAttribute('class')=='follow'){
349 f.setAttribute('class','following');
350 f.setAttribute('title',"${_('Stop following this repository')}");
351
352 if(f_cnt){
353 var cnt = Number(f_cnt.innerHTML)+1;
354 f_cnt.innerHTML = cnt;
355 }
356
357 }
358 else{
359 f.setAttribute('class','follow');
360 f.setAttribute('title',"${_('Start following this repository')}");
361 if(f_cnt){
362 var cnt = Number(f_cnt.innerHTML)+1;
363 f_cnt.innerHTML = cnt;
364 }
365 }
366 }
367
368 function toggleFollowingUser(target,fallows_user_id,token,user_id){
369 args = 'follows_user_id='+fallows_user_id;
370 args+= '&amp;auth_token='+token;
371 if(user_id != undefined){
372 args+="&amp;user_id="+user_id;
373 }
374 YUC.asyncRequest('POST',base_url,{
375 success:function(o){
376 onSuccess(target);
377 }
378 },args); return false;
379 }
380
381 function toggleFollowingRepo(target,fallows_repo_id,token,user_id){
382
383 args = 'follows_repo_id='+fallows_repo_id;
384 args+= '&amp;auth_token='+token;
385 if(user_id != undefined){
386 args+="&amp;user_id="+user_id;
387 }
388 YUC.asyncRequest('POST',base_url,{
389 success:function(o){
390 onSuccess(target);
391 }
392 },args); return false;
393 }
394 </script>
395
396 </%def>
397
398 <%def name="breadcrumbs()">
399 <div class="breadcrumbs">
400 ${self.breadcrumbs_links()}
401 </div>
402 303 </%def> No newline at end of file
@@ -1,17 +1,10 b''
1 1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>${_('Sign In')} - ${c.rhodecode_name}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <link rel="icon" href="${h.url("/images/icons/database_gear.png")}" type="image/png" />
8 <meta name="robots" content="index, nofollow"/>
2 <%inherit file="base/root.html"/>
9 3
10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
4 <%def name="title()">
5 ${_('Sign In')} - ${c.rhodecode_name}
6 </%def>
12 7
13 </head>
14 <body>
15 8 <div id="login">
16 9 <div class="flash_msg">
17 10 <% messages = h.flash.pop_messages() %>
@@ -76,7 +69,4 b''
76 69 ${h.end_form()}
77 70 </div>
78 71 <!-- end login -->
79 </div>
80 </body>
81 </html>
82
72 </div> No newline at end of file
@@ -1,17 +1,10 b''
1 1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>${_('Reset You password')} - ${c.rhodecode_name}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
8 <meta name="robots" content="index, nofollow"/>
2 <%inherit file="base/root.html"/>
9 3
10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
4 <%def name="title()">
5 ${_('Reset You password')} - ${c.rhodecode_name}
6 </%def>
12 7
13 </head>
14 <body>
15 8 <div id="register">
16 9
17 10 <div class="title top-left-rounded-corner top-right-rounded-corner">
@@ -43,6 +36,4 b''
43 36 ${h.end_form()}
44 37 </div>
45 38 </div>
46 </body>
47 </html>
48 39
@@ -1,17 +1,10 b''
1 1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>${_('Sign Up')} - ${c.rhodecode_name}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
8 <meta name="robots" content="index, nofollow"/>
2 <%inherit file="base/root.html"/>
9 3
10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
4 <%def name="title()">
5 ${_('Sign Up')} - ${c.rhodecode_name}
6 </%def>
12 7
13 </head>
14 <body>
15 8 <div id="register">
16 9
17 10 <div class="title top-left-rounded-corner top-right-rounded-corner">
@@ -91,6 +84,4 b''
91 84 ${h.end_form()}
92 85 </div>
93 86 </div>
94 </body>
95 </html>
96 87
General Comments 0
You need to be logged in to leave comments. Login now