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