##// END OF EJS Templates
Use separate icon as favicon
marcink -
r3954:ca30c992 beta
parent child Browse files
Show More
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
@@ -1,122 +1,122 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <!DOCTYPE html>
2 <!DOCTYPE html>
3
3
4 <html xmlns="http://www.w3.org/1999/xhtml">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
5 <head>
6 <title>${self.title()}</title>
6 <title>${self.title()}</title>
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 <meta name="robots" content="index, nofollow"/>
8 <meta name="robots" content="index, nofollow"/>
9 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
9 <link rel="icon" href="${h.url('/images/favicon.ico')}" type="image/png" />
10
10
11 ## CSS ###
11 ## CSS ###
12 <%def name="css()">
12 <%def name="css()">
13 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css', ver=c.rhodecode_version)}" media="screen"/>
13 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css', ver=c.rhodecode_version)}" media="screen"/>
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.rhodecode_version)}"/>
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.rhodecode_version)}"/>
15 <link rel="stylesheet" type="text/css" href="${h.url('/css/contextbar.css', ver=c.rhodecode_version)}"/>
15 <link rel="stylesheet" type="text/css" href="${h.url('/css/contextbar.css', ver=c.rhodecode_version)}"/>
16 ## EXTRA FOR CSS
16 ## EXTRA FOR CSS
17 ${self.css_extra()}
17 ${self.css_extra()}
18 </%def>
18 </%def>
19
19
20 <%def name="css_extra()"></%def>
20 <%def name="css_extra()"></%def>
21
21
22 ${self.css()}
22 ${self.css()}
23
23
24 %if c.ga_code:
24 %if c.ga_code:
25 <!-- Analytics -->
25 <!-- Analytics -->
26 <script type="text/javascript">
26 <script type="text/javascript">
27 var _gaq = _gaq || [];
27 var _gaq = _gaq || [];
28 _gaq.push(['_setAccount', '${c.ga_code}']);
28 _gaq.push(['_setAccount', '${c.ga_code}']);
29 _gaq.push(['_trackPageview']);
29 _gaq.push(['_trackPageview']);
30
30
31 (function() {
31 (function() {
32 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
32 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
33 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
33 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
34 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
34 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
35 })();
35 })();
36 </script>
36 </script>
37 %endif
37 %endif
38
38
39 ## JAVASCRIPT ##
39 ## JAVASCRIPT ##
40 <%def name="js()">
40 <%def name="js()">
41 <script type="text/javascript">
41 <script type="text/javascript">
42 //JS translations map
42 //JS translations map
43 var TRANSLATION_MAP = {
43 var TRANSLATION_MAP = {
44 'Add another comment':'${_("Add another comment")}',
44 'Add another comment':'${_("Add another comment")}',
45 'Stop following this repository':"${_('Stop following this repository')}",
45 'Stop following this repository':"${_('Stop following this repository')}",
46 'Start following this repository':"${_('Start following this repository')}",
46 'Start following this repository':"${_('Start following this repository')}",
47 'Group':"${_('Group')}",
47 'Group':"${_('Group')}",
48 'members':"${_('members')}",
48 'members':"${_('members')}",
49 'Loading ...':"${_('Loading ...')}",
49 'Loading ...':"${_('Loading ...')}",
50 'Search truncated': "${_('Search truncated')}",
50 'Search truncated': "${_('Search truncated')}",
51 'No matching files': "${_('No matching files')}",
51 'No matching files': "${_('No matching files')}",
52 'Open new pull request': "${_('Open new pull request')}",
52 'Open new pull request': "${_('Open new pull request')}",
53 'Open new pull request for selected changesets': "${_('Open new pull request for selected changesets')}",
53 'Open new pull request for selected changesets': "${_('Open new pull request for selected changesets')}",
54 'Show selected changesets __S -> __E': "${_('Show selected changesets __S -> __E')}",
54 'Show selected changesets __S -> __E': "${_('Show selected changesets __S -> __E')}",
55 'Show selected changeset __S': "${_('Show selected changeset __S')}",
55 'Show selected changeset __S': "${_('Show selected changeset __S')}",
56 'Selection link': "${_('Selection link')}",
56 'Selection link': "${_('Selection link')}",
57 'Collapse diff': "${_('Collapse diff')}",
57 'Collapse diff': "${_('Collapse diff')}",
58 'Expand diff': "${_('Expand diff')}",
58 'Expand diff': "${_('Expand diff')}",
59 'Failed to revoke permission': "${_('Failed to revoke permission')}"
59 'Failed to revoke permission': "${_('Failed to revoke permission')}"
60 };
60 };
61 var _TM = TRANSLATION_MAP;
61 var _TM = TRANSLATION_MAP;
62
62
63 var TOGGLE_FOLLOW_URL = "${h.url('toggle_following')}";
63 var TOGGLE_FOLLOW_URL = "${h.url('toggle_following')}";
64
64
65 var REPO_NAME = "";
65 var REPO_NAME = "";
66 %if hasattr(c, 'repo_name'):
66 %if hasattr(c, 'repo_name'):
67 var REPO_NAME = "${c.repo_name}";
67 var REPO_NAME = "${c.repo_name}";
68 %endif
68 %endif
69 </script>
69 </script>
70 <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script>
70 <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script>
71 <!--[if lt IE 9]>
71 <!--[if lt IE 9]>
72 <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script>
72 <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script>
73 <![endif]-->
73 <![endif]-->
74 <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.rhodecode_version)}"></script>
74 <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.rhodecode_version)}"></script>
75 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.rhodecode_version)}"></script>
75 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.rhodecode_version)}"></script>
76 <script type="text/javascript" src="${h.url('/js/pyroutes_map.js', ver=c.rhodecode_version)}"></script>
76 <script type="text/javascript" src="${h.url('/js/pyroutes_map.js', ver=c.rhodecode_version)}"></script>
77 <script type="text/javascript" src="${h.url('/js/rhodecode.js', ver=c.rhodecode_version)}"></script>
77 <script type="text/javascript" src="${h.url('/js/rhodecode.js', ver=c.rhodecode_version)}"></script>
78 ## EXTRA FOR JS
78 ## EXTRA FOR JS
79 ${self.js_extra()}
79 ${self.js_extra()}
80 <script type="text/javascript">
80 <script type="text/javascript">
81 (function(window,undefined){
81 (function(window,undefined){
82 // Prepare
82 // Prepare
83 var History = window.History; // Note: We are using a capital H instead of a lower h
83 var History = window.History; // Note: We are using a capital H instead of a lower h
84 if ( !History.enabled ) {
84 if ( !History.enabled ) {
85 // History.js is disabled for this browser.
85 // History.js is disabled for this browser.
86 // This is because we can optionally choose to support HTML4 browsers or not.
86 // This is because we can optionally choose to support HTML4 browsers or not.
87 return false;
87 return false;
88 }
88 }
89 })(window);
89 })(window);
90
90
91 YUE.onDOMReady(function(){
91 YUE.onDOMReady(function(){
92 tooltip_activate();
92 tooltip_activate();
93 show_more_event();
93 show_more_event();
94 show_changeset_tooltip();
94 show_changeset_tooltip();
95 // routes registration
95 // routes registration
96 pyroutes.register('toggle_following', "${h.url('toggle_following')}");
96 pyroutes.register('toggle_following', "${h.url('toggle_following')}");
97 pyroutes.register('changeset_info', "${h.url('changeset_info', repo_name='%(repo_name)s', revision='%(revision)s')}", ['repo_name', 'revision']);
97 pyroutes.register('changeset_info', "${h.url('changeset_info', repo_name='%(repo_name)s', revision='%(revision)s')}", ['repo_name', 'revision']);
98 pyroutes.register('repo_size', "${h.url('repo_size', repo_name='%(repo_name)s')}", ['repo_name']);
98 pyroutes.register('repo_size', "${h.url('repo_size', repo_name='%(repo_name)s')}", ['repo_name']);
99 pyroutes.register('changeset_comment_preview', "${h.url('changeset_comment_preview', repo_name='%(repo_name)s')}", ['repo_name']);
99 pyroutes.register('changeset_comment_preview', "${h.url('changeset_comment_preview', repo_name='%(repo_name)s')}", ['repo_name']);
100 })
100 })
101 </script>
101 </script>
102 </%def>
102 </%def>
103 <%def name="js_extra()"></%def>
103 <%def name="js_extra()"></%def>
104 ${self.js()}
104 ${self.js()}
105 <%def name="head_extra()"></%def>
105 <%def name="head_extra()"></%def>
106 ${self.head_extra()}
106 ${self.head_extra()}
107 </head>
107 </head>
108 <body id="body">
108 <body id="body">
109 ## IE hacks
109 ## IE hacks
110 <!--[if IE 7]>
110 <!--[if IE 7]>
111 <script>YUD.addClass(document.body,'ie7')</script>
111 <script>YUD.addClass(document.body,'ie7')</script>
112 <![endif]-->
112 <![endif]-->
113 <!--[if IE 8]>
113 <!--[if IE 8]>
114 <script>YUD.addClass(document.body,'ie8')</script>
114 <script>YUD.addClass(document.body,'ie8')</script>
115 <![endif]-->
115 <![endif]-->
116 <!--[if IE 9]>
116 <!--[if IE 9]>
117 <script>YUD.addClass(document.body,'ie9')</script>
117 <script>YUD.addClass(document.body,'ie9')</script>
118 <![endif]-->
118 <![endif]-->
119
119
120 ${next.body()}
120 ${next.body()}
121 </body>
121 </body>
122 </html>
122 </html>
General Comments 0
You need to be logged in to leave comments. Login now