Mercurial > kallithea
comparison rhodecode/templates/base/base.html @ 1421:c6b811f11c94 beta
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 09 Jul 2011 20:07:59 +0200 |
parents | 5875955def39 |
children | 241a5167c4e0 |
comparison
equal
deleted
inserted
replaced
1420:a2fe0ac8d007 | 1421:c6b811f11c94 |
---|---|
4 <!-- HEADER --> | 4 <!-- HEADER --> |
5 <div id="header"> | 5 <div id="header"> |
6 <!-- user --> | 6 <!-- user --> |
7 <ul id="logged-user"> | 7 <ul id="logged-user"> |
8 <li class="first"> | 8 <li class="first"> |
9 | |
10 <div id="quick_login" style="display:none"> | 9 <div id="quick_login" style="display:none"> |
11 ${h.form(h.url('login_home',came_from=h.url.current()))} | 10 ${h.form(h.url('login_home',came_from=h.url.current()))} |
12 <div class="form"> | 11 <div class="form"> |
13 <div class="fields"> | 12 <div class="fields"> |
14 <div class="field"> | 13 <div class="field"> |
33 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div>${h.submit('sign_in','Sign In',class_="ui-button")} | 32 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div>${h.submit('sign_in','Sign In',class_="ui-button")} |
34 </div> | 33 </div> |
35 </div> | 34 </div> |
36 </div> | 35 </div> |
37 ${h.end_form()} | 36 ${h.end_form()} |
38 <script type="text/javascript"> | |
39 YUE.on('quick_login_link','click',function(e){ | |
40 | |
41 if(YUD.hasClass('quick_login_link','enabled')){ | |
42 YUD.setStyle('quick_login','display','none'); | |
43 YUD.removeClass('quick_login_link','enabled'); | |
44 } | |
45 else{ | |
46 YUD.setStyle('quick_login','display',''); | |
47 YUD.addClass('quick_login_link','enabled'); | |
48 YUD.get('username').focus(); | |
49 } | |
50 //make sure we don't redirect | |
51 YUE.preventDefault(e); | |
52 }); | |
53 | |
54 </script> | |
55 </div> | 37 </div> |
56 | 38 |
57 <div class="gravatar"> | 39 <div class="gravatar"> |
58 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" /> | 40 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" /> |
59 </div> | 41 </div> |
122 <a href="${h.url('rhodecode_official')}">RhodeCode</a> | 104 <a href="${h.url('rhodecode_official')}">RhodeCode</a> |
123 ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski | 105 ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski |
124 </p> | 106 </p> |
125 </div> | 107 </div> |
126 </div> | 108 </div> |
127 <script type="text/javascript"> | |
128 function tooltip_activate(){ | |
129 ${h.tooltip.activate()} | |
130 } | |
131 tooltip_activate(); | |
132 </script> | |
133 </div> | 109 </div> |
134 <!-- END FOOTER --> | 110 <!-- END FOOTER --> |
135 | 111 |
136 ### MAKO DEFS ### | 112 ### MAKO DEFS ### |
137 <%def name="page_nav()"> | 113 <%def name="page_nav()"> |
212 }); | 188 }); |
213 } | 189 } |
214 var loaded = YUD.hasClass('repo_switcher','loaded'); | 190 var loaded = YUD.hasClass('repo_switcher','loaded'); |
215 if(!loaded){ | 191 if(!loaded){ |
216 YUD.addClass('repo_switcher','loaded'); | 192 YUD.addClass('repo_switcher','loaded'); |
217 YAHOO.util.Connect.asyncRequest('GET',"${h.url('repo_switcher')}",{ | 193 ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
218 success:function(o){ | 194 function(o){qfilter();}, |
219 YUD.get('repo_switcher_list').innerHTML = o.responseText; | 195 function(o){YUD.removeClass('repo_switcher','loaded');} |
220 qfilter(); | 196 ,null); |
221 }, | |
222 failure:function(o){ | |
223 YUD.removeClass('repo_switcher','loaded'); | |
224 } | |
225 },null); | |
226 } | 197 } |
227 return false; | 198 return false; |
228 }); | 199 }); |
229 </script> | 200 </script> |
230 </li> | 201 </li> |
238 </a> | 209 </a> |
239 </li> | 210 </li> |
240 ##<li ${is_current('shortlog')}> | 211 ##<li ${is_current('shortlog')}> |
241 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> | 212 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> |
242 ## <span class="icon"> | 213 ## <span class="icon"> |
243 ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" /> | 214 ## <img src="${h.url('/images/icons/application_view_list.png')}" alt="${_('Shortlog')}" /> |
244 ## </span> | 215 ## </span> |
245 ## <span>${_('Shortlog')}</span> | 216 ## <span>${_('Shortlog')}</span> |
246 ## </a> | 217 ## </a> |
247 ##</li> | 218 ##</li> |
248 <li ${is_current('changelog')}> | 219 <li ${is_current('changelog')}> |