Files
@ 9f37281195a2
Branch filter:
Location: kallithea/rhodecode/templates/base/root.html - annotation
9f37281195a2
5.9 KiB
text/html
merge with beta
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | 41241617a7a3 e77fbd3b069c 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 f91d3f9b7230 41241617a7a3 f91d3f9b7230 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 f91d3f9b7230 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 f91d3f9b7230 c6b811f11c94 c6b811f11c94 c2f131502037 c2f131502037 c2f131502037 c2f131502037 c2f131502037 c2f131502037 c2f131502037 530bd12fc18a 530bd12fc18a 530bd12fc18a c2f131502037 c2f131502037 c2f131502037 c2f131502037 c6b811f11c94 9d54d6516e2e c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 f91d3f9b7230 c6b811f11c94 bc16d1d0869a 56e96d4e9f6e bc16d1d0869a c6b811f11c94 c6b811f11c94 f91d3f9b7230 c6b811f11c94 c6b811f11c94 c2f131502037 f91d3f9b7230 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c2f131502037 c6b811f11c94 c6b811f11c94 c6b811f11c94 f91d3f9b7230 c6b811f11c94 c6b811f11c94 f91d3f9b7230 bc16d1d0869a c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 bc16d1d0869a c6b811f11c94 bc16d1d0869a c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 f91d3f9b7230 bc16d1d0869a f91d3f9b7230 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 f91d3f9b7230 bc16d1d0869a c6b811f11c94 bc16d1d0869a c6b811f11c94 f91d3f9b7230 c6b811f11c94 c6b811f11c94 c6b811f11c94 bc16d1d0869a f91d3f9b7230 f91d3f9b7230 c6b811f11c94 f91d3f9b7230 bc16d1d0869a f91d3f9b7230 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 c6b811f11c94 049bc911b04f 049bc911b04f 049bc911b04f 049bc911b04f c6b811f11c94 c6b811f11c94 f91d3f9b7230 c6b811f11c94 c6b811f11c94 bc16d1d0869a 41241617a7a3 6bef2a9f73e2 6bef2a9f73e2 41241617a7a3 41241617a7a3 e77fbd3b069c e77fbd3b069c e77fbd3b069c 85a64b981c07 e77fbd3b069c e77fbd3b069c e77fbd3b069c e77fbd3b069c e77fbd3b069c 85a64b981c07 e77fbd3b069c e77fbd3b069c 41241617a7a3 f91d3f9b7230 | ## -*- coding: utf-8 -*-
<!DOCTYPE html>
<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"/>
<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>
${self.css()}
%if c.ga_code:
<!-- Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '${c.ga_code}']);
_gaq.push(['_trackPageview']);
(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
## JAVASCRIPT ##
<%def name="js()">
<script type="text/javascript">
//JS translations map
var TRANSLATION_MAP = {
'add another comment':'${_("add another comment")}',
'Stop following this repository':"${_('Stop following this repository')}",
'Start following this repository':"${_('Start following this repository')}",
'Group':"${_('Group')}",
'members':"${_('members')}",
'search truncated': "${_('search truncated')}",
'no matching files': "${_('no matching files')}"
};
var _TM = TRANSLATION_MAP;
</script>
<script type="text/javascript" src="${h.url('/js/yui.2.9.js')}"></script>
<!--[if lt IE 9]>
<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()}
<script type="text/javascript">
var follow_base_url = "${h.url('toggle_following')}";
var onSuccessFollow = function(target){
var f = YUD.get(target.id);
var f_cnt = YUD.get('current_followers_count');
if(f.getAttribute('class')=='follow'){
f.setAttribute('class','following');
f.setAttribute('title',_TM['Stop following this repository']);
if(f_cnt){
var cnt = Number(f_cnt.innerHTML)+1;
f_cnt.innerHTML = cnt;
}
}
else{
f.setAttribute('class','follow');
f.setAttribute('title',_TM['Start following this repository']);
if(f_cnt){
var cnt = Number(f_cnt.innerHTML)+1;
f_cnt.innerHTML = cnt;
}
}
}
var toggleFollowingUser = function(target,fallows_user_id,token,user_id){
args = 'follows_user_id='+fallows_user_id;
args+= '&auth_token='+token;
if(user_id != undefined){
args+="&user_id="+user_id;
}
YUC.asyncRequest('POST',follow_base_url,{
success:function(o){
onSuccessFollow(target);
}
},args);
return false;
}
var toggleFollowingRepo = function(target,fallows_repo_id,token,user_id){
args = 'follows_repo_id='+fallows_repo_id;
args+= '&auth_token='+token;
if(user_id != undefined){
args+="&user_id="+user_id;
}
YUC.asyncRequest('POST',follow_base_url,{
success:function(o){
onSuccessFollow(target);
}
},args);
return false;
}
YUE.onDOMReady(function(){
tooltip_activate();
show_more_event();
YUE.on('quick_login_link','click',function(e){
// make sure we don't redirect
YUE.preventDefault(e);
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');
var usr = YUD.get('username');
if(usr){
usr.focus();
}
}
});
})
</script>
</%def>
<%def name="js_extra()"></%def>
${self.js()}
<%def name="head_extra()"></%def>
${self.head_extra()}
</head>
<body id="body">
## IE hacks
<!--[if IE 7]>
<script>YUD.addClass(document.body,'ie7')</script>
<![endif]-->
<!--[if IE 8]>
<script>YUD.addClass(document.body,'ie8')</script>
<![endif]-->
<!--[if IE 9]>
<script>YUD.addClass(document.body,'ie9')</script>
<![endif]-->
${next.body()}
</body>
</html>
|