Mercurial > kallithea
annotate rhodecode/templates/base/root.html @ 3206:d4bb8de7382f beta
top menu: show user menu when hovering instead of using js - like other menus
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 23 Jan 2013 20:26:34 +0100 |
parents | c20adbaf16af |
children | b9ba0d4d3abf |
rev | line source |
---|---|
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
2 <!DOCTYPE html> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <head> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <title>${self.title()}</title> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 <meta name="robots" content="index, nofollow"/> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
8 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" /> |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
9 |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
10 ## CSS ### |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
11 <%def name="css()"> |
2850
867820342329
fix for #569 add version to static files for rhodecode to overcome cache problems
Marcin Kuzminski <marcin@python-works.com>
parents:
2812
diff
changeset
|
12 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css', ver=c.rhodecode_version)}" media="screen"/> |
867820342329
fix for #569 add version to static files for rhodecode to overcome cache problems
Marcin Kuzminski <marcin@python-works.com>
parents:
2812
diff
changeset
|
13 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.rhodecode_version)}"/> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
14 ## EXTRA FOR CSS |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
15 ${self.css_extra()} |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
16 </%def> |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
17 <%def name="css_extra()"> |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
18 </%def> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
19 |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 ${self.css()} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
21 |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 %if c.ga_code: |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 <!-- Analytics --> |
3198
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
24 <script type="text/javascript"> |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
25 var _gaq = _gaq || []; |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
26 _gaq.push(['_setAccount', '${c.ga_code}']); |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
27 _gaq.push(['_trackPageview']); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
28 |
3198
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
29 (function() { |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
30 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
31 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
32 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
33 })(); |
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
34 </script> |
3197 | 35 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
36 |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
37 ## JAVASCRIPT ## |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
38 <%def name="js()"> |
2369
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
39 <script type="text/javascript"> |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
40 //JS translations map |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
41 var TRANSLATION_MAP = { |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
42 'add another comment':'${_("add another comment")}', |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
43 'Stop following this repository':"${_('Stop following this repository')}", |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
44 'Start following this repository':"${_('Start following this repository')}", |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
45 'Group':"${_('Group')}", |
2428
530bd12fc18a
removed JSON array envelope from filter files function
Marcin Kuzminski <marcin@python-works.com>
parents:
2413
diff
changeset
|
46 'members':"${_('members')}", |
2979
95f03f8f5f9a
- add loading message on lazy loaded toolips for journals
Marcin Kuzminski <marcin@python-works.com>
parents:
2971
diff
changeset
|
47 'loading...':"${_('loading...')}", |
2428
530bd12fc18a
removed JSON array envelope from filter files function
Marcin Kuzminski <marcin@python-works.com>
parents:
2413
diff
changeset
|
48 'search truncated': "${_('search truncated')}", |
2927
58bb350bfef8
Don't allow cherry picking changesets from the changelog using checkboxes.
Marcin Kuzminski <marcin@python-works.com>
parents:
2850
diff
changeset
|
49 'no matching files': "${_('no matching files')}", |
58bb350bfef8
Don't allow cherry picking changesets from the changelog using checkboxes.
Marcin Kuzminski <marcin@python-works.com>
parents:
2850
diff
changeset
|
50 'Open new pull request': "${_('Open new pull request')}", |
58bb350bfef8
Don't allow cherry picking changesets from the changelog using checkboxes.
Marcin Kuzminski <marcin@python-works.com>
parents:
2850
diff
changeset
|
51 'Open new pull request for selected changesets': "${_('Open new pull request for selected changesets')}", |
58bb350bfef8
Don't allow cherry picking changesets from the changelog using checkboxes.
Marcin Kuzminski <marcin@python-works.com>
parents:
2850
diff
changeset
|
52 'Show selected changes __S -> __E': "${_('Show selected changes __S -> __E')}", |
3001
37c7abd34d44
implements #636, lazy loading of history and authors to speed up page responsiveness.
Marcin Kuzminski <marcin@python-works.com>
parents:
2979
diff
changeset
|
53 'Selection link': "${_('Selection link')}", |
2369
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
54 }; |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
55 var _TM = TRANSLATION_MAP; |
3066 | 56 var TOGGLE_FOLLOW_URL = "${h.url('toggle_following')}"; |
3160
5d7f6b22d6b4
fixed issue #719 Journal revision ID tooltip AJAX query path is incorrect when running in a subdir
Marcin Kuzminski <marcin@python-works.com>
parents:
3149
diff
changeset
|
57 var LAZY_CS_URL = "${h.url('changeset_info', repo_name='__NAME__', revision='__REV__')}" |
2369
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
58 </script> |
2850
867820342329
fix for #569 add version to static files for rhodecode to overcome cache problems
Marcin Kuzminski <marcin@python-works.com>
parents:
2812
diff
changeset
|
59 <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script> |
2141
9d54d6516e2e
disabled ext canvas for >ie9
Marcin Kuzminski <marcin@python-works.com>
parents:
2001
diff
changeset
|
60 <!--[if lt IE 9]> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
61 <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script> |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
62 <![endif]--> |
2850
867820342329
fix for #569 add version to static files for rhodecode to overcome cache problems
Marcin Kuzminski <marcin@python-works.com>
parents:
2812
diff
changeset
|
63 <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.rhodecode_version)}"></script> |
867820342329
fix for #569 add version to static files for rhodecode to overcome cache problems
Marcin Kuzminski <marcin@python-works.com>
parents:
2812
diff
changeset
|
64 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.rhodecode_version)}"></script> |
867820342329
fix for #569 add version to static files for rhodecode to overcome cache problems
Marcin Kuzminski <marcin@python-works.com>
parents:
2812
diff
changeset
|
65 <script type="text/javascript" src="${h.url('/js/rhodecode.js', ver=c.rhodecode_version)}"></script> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
66 ## EXTRA FOR JS |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
67 ${self.js_extra()} |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
68 <script type="text/javascript"> |
2686
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
69 (function(window,undefined){ |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
70 // Prepare |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
71 var History = window.History; // Note: We are using a capital H instead of a lower h |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
72 if ( !History.enabled ) { |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
73 // History.js is disabled for this browser. |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
74 // This is because we can optionally choose to support HTML4 browsers or not. |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
75 return false; |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
76 } |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
77 })(window); |
3149
68f9c216377d
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3066
diff
changeset
|
78 |
3066 | 79 YUE.onDOMReady(function(){ |
80 tooltip_activate(); | |
81 show_more_event(); | |
82 show_changeset_tooltip(); | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
83 }) |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
84 </script> |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
85 </%def> |
1700 | 86 <%def name="js_extra()"></%def> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
87 ${self.js()} |
2413
6bef2a9f73e2
added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents:
2369
diff
changeset
|
88 <%def name="head_extra()"></%def> |
6bef2a9f73e2
added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents:
2369
diff
changeset
|
89 ${self.head_extra()} |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
90 </head> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
91 <body id="body"> |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
92 ## IE hacks |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
93 <!--[if IE 7]> |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
94 <script>YUD.addClass(document.body,'ie7')</script> |
2174
85a64b981c07
ws cleanup, +changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
2163
diff
changeset
|
95 <![endif]--> |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
96 <!--[if IE 8]> |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
97 <script>YUD.addClass(document.body,'ie8')</script> |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
98 <![endif]--> |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
99 <!--[if IE 9]> |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
100 <script>YUD.addClass(document.body,'ie9')</script> |
2174
85a64b981c07
ws cleanup, +changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
2163
diff
changeset
|
101 <![endif]--> |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
102 |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
103 ${next.body()} |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
104 </body> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
105 </html> |