##// END OF EJS Templates
Added tag v1.3.3 for changeset 934906f028b5
Added tag v1.3.3 for changeset 934906f028b5

File last commit:

r2001:93d4e3eb beta
r2097:8fd6650b default
Show More
root.html
135 lines | 5.0 KiB | text/html | HtmlLexer
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ## -*- coding: utf-8 -*-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${self.title()}</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index, nofollow"/>
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
## CSS ###
<%def name="css()">
<link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen"/>
<link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}"/>
## EXTRA FOR CSS
${self.css_extra()}
</%def>
<%def name="css_extra()">
</%def>
White-space cleanup
r1888
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ${self.css()}
White-space cleanup
r1888
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 %if c.ga_code:
<!-- Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '${c.ga_code}']);
_gaq.push(['_trackPageview']);
White-space cleanup
r1888
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 (function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
%endif
White-space cleanup
r1888
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 ## JAVASCRIPT ##
<%def name="js()">
<script type="text/javascript" src="${h.url('/js/yui.2.9.js')}"></script>
<!--[if IE]>
<script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script>
<![endif]-->
<script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
<script type="text/javascript" src="${h.url('/js/rhodecode.js')}"></script>
## EXTRA FOR JS
${self.js_extra()}
White-space cleanup
r1888
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 <script type="text/javascript">
js cleanup
r1700 var follow_base_url = "${h.url('toggle_following')}";
var stop_follow_text = "${_('Stop following this repository')}";
White-space cleanup
r1888 var start_follow_text = "${_('Start following this repository')}";
js cleanup
r1700 var onSuccessFollow = function(target){
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 var f = YUD.get(target.id);
var f_cnt = YUD.get('current_followers_count');
White-space cleanup
r1888
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 if(f.getAttribute('class')=='follow'){
f.setAttribute('class','following');
js cleanup
r1700 f.setAttribute('title',stop_follow_text);
White-space cleanup
r1888
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 if(f_cnt){
var cnt = Number(f_cnt.innerHTML)+1;
f_cnt.innerHTML = cnt;
}
}
else{
f.setAttribute('class','follow');
js cleanup
r1700 f.setAttribute('title',start_follow_text);
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 if(f_cnt){
var cnt = Number(f_cnt.innerHTML)+1;
f_cnt.innerHTML = cnt;
White-space cleanup
r1888 }
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 }
}
White-space cleanup
r1888
js cleanup
r1700 var toggleFollowingUser = function(target,fallows_user_id,token,user_id){
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 args = 'follows_user_id='+fallows_user_id;
args+= '&amp;auth_token='+token;
if(user_id != undefined){
args+="&amp;user_id="+user_id;
}
js cleanup
r1700 YUC.asyncRequest('POST',follow_base_url,{
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 success:function(o){
js cleanup
r1700 onSuccessFollow(target);
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 }
},args);
return false;
}
White-space cleanup
r1888
js cleanup
r1700 var toggleFollowingRepo = function(target,fallows_repo_id,token,user_id){
White-space cleanup
r1888
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 args = 'follows_repo_id='+fallows_repo_id;
args+= '&amp;auth_token='+token;
if(user_id != undefined){
args+="&amp;user_id="+user_id;
White-space cleanup
r1888 }
js cleanup
r1700 YUC.asyncRequest('POST',follow_base_url,{
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 success:function(o){
js cleanup
r1700 onSuccessFollow(target);
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 }
White-space cleanup
r1888 },args);
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 return false;
}
YUE.onDOMReady(function(){
js cleanup
r1700 tooltip_activate();
White-space cleanup
r1888 show_more_event();
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 YUE.on('quick_login_link','click',function(e){
White-space cleanup
r1888 // make sure we don't redirect
js cleanup
r1700 YUE.preventDefault(e);
White-space cleanup
r1888
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 if(YUD.hasClass('quick_login_link','enabled')){
YUD.setStyle('quick_login','display','none');
YUD.removeClass('quick_login_link','enabled');
}
else{
YUD.setStyle('quick_login','display','');
YUD.addClass('quick_login_link','enabled');
removed upper menu to save space and did little rip off menu similar to G+
r1926 var usr = YUD.get('username');
if(usr){
usr.focus();
}
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 }
});
White-space cleanup
r1888 })
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 </script>
</%def>
js cleanup
r1700 <%def name="js_extra()"></%def>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ${self.js()}
</head>
<body id="body">
${next.body()}
</body>
White-space cleanup
r1888 </html>