Mercurial > kallithea
annotate kallithea/templates/base/root.html @ 4810:6a825018a498
template: use mako block for root.html extra sections
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 11 Feb 2015 02:40:28 +0100 |
parents | ec39e73be935 |
children | 37354e1ab283 |
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"/> |
3954
ca30c9924023
Use separate icon as favicon
Marcin Kuzminski <marcin@python-works.com>
parents:
3950
diff
changeset
|
8 <link rel="icon" href="${h.url('/images/favicon.ico')}" type="image/png" /> |
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
|
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 ### |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
11 <link rel="stylesheet" type="text/css" href="${h.url('/js/select2/select2.css', ver=c.kallithea_version)}"/> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
12 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.kallithea_version)}"/> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
13 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css', ver=c.kallithea_version)}" media="screen"/> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/contextbar.css', ver=c.kallithea_version)}" media="screen"/> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
15 <link rel="stylesheet" type="text/css" href="${h.url('/fontello/css/kallithea.css', ver=c.kallithea_version)}"> |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
16 <%block name="css_extra"/> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
17 |
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
|
18 ## JAVASCRIPT ## |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
19 <script type="text/javascript"> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
20 ## JS translations map |
2369
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
21 var TRANSLATION_MAP = { |
4527
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
22 'Add Another Comment':'${_("Add Another Comment")}', |
2369
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
23 'Stop following this repository':"${_('Stop following this repository')}", |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
24 'Start following this repository':"${_('Start following this repository')}", |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
25 'Group':"${_('Group')}", |
2428
530bd12fc18a
removed JSON array envelope from filter files function
Marcin Kuzminski <marcin@python-works.com>
parents:
2413
diff
changeset
|
26 'members':"${_('members')}", |
3516 | 27 'Loading ...':"${_('Loading ...')}", |
3966
636ff0369986
fixed hover loading ... info on lazy-cs
Marcin Kuzminski <marcin@python-works.com>
parents:
3954
diff
changeset
|
28 'loading ...':"${_('loading ...')}", |
3516 | 29 'Search truncated': "${_('Search truncated')}", |
30 'No matching files': "${_('No matching files')}", | |
4527
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
31 'Open New Pull Request': "${_('Open New Pull Request')}", |
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
32 'Open New Pull Request for Selected Changesets': "${_('Open New Pull Request for Selected Changesets')}", |
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
33 'Show Selected Changesets __S → __E': "${h.literal(_('Show Selected Changesets __S → __E'))}", |
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
34 'Show Selected Changeset __S': "${_('Show Selected Changeset __S')}", |
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
35 'Selection Link': "${_('Selection Link')}", |
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
36 'Collapse Diff': "${_('Collapse Diff')}", |
dacdea9fda2a
Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents:
4516
diff
changeset
|
37 'Expand Diff': "${_('Expand Diff')}", |
4064
afe7c5e63aaf
UX: require confirmation of revoking permissions on
Marcin Kuzminski <marcin@python-works.com>
parents:
3966
diff
changeset
|
38 'Failed to revoke permission': "${_('Failed to revoke permission')}", |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
39 'Confirm to revoke permission for {0}: {1} ?': "${_('Confirm to revoke permission for {0}: {1} ?')}", |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
40 'enabled': "${_('enabled')}", |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
41 'disabled': "${_('disabled')}", |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
42 'Select changeset': "${_('Select changeset')}", |
4267
bf011c9f7f58
minor fixes - mainly wording
Mads Kiilerich <madski@unity3d.com>
parents:
4200
diff
changeset
|
43 'Specify changeset': "${_('Specify changeset')}", |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
44 'MSG_SORTASC': "${_('Click to sort ascending')}", |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
45 'MSG_SORTDESC': "${_('Click to sort descending')}", |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
46 'MSG_EMPTY': "${_('No records found.')}", |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
47 'MSG_ERROR': "${_('Data error.')}", |
4516
b3f12c354e87
javascript: remove nice trailing comma to please IE8 (Issue #39)
Mads Kiilerich <madski@unity3d.com>
parents:
4462
diff
changeset
|
48 'MSG_LOADING': "${_('Loading...')}" |
2369
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
49 }; |
c2f131502037
Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
2188
diff
changeset
|
50 var _TM = TRANSLATION_MAP; |
3388
cb40b3f6428c
review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents:
3246
diff
changeset
|
51 |
3066 | 52 var TOGGLE_FOLLOW_URL = "${h.url('toggle_following')}"; |
3246
b9ba0d4d3abf
implemented #83 show repo size on summary page
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
53 |
3695
45df84d36b44
Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents:
3592
diff
changeset
|
54 var REPO_NAME = ""; |
45df84d36b44
Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents:
3592
diff
changeset
|
55 %if hasattr(c, 'repo_name'): |
45df84d36b44
Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents:
3592
diff
changeset
|
56 var REPO_NAME = "${c.repo_name}"; |
45df84d36b44
Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents:
3592
diff
changeset
|
57 %endif |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
58 </script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
59 <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
60 <script type="text/javascript" src="${h.url('/js/jquery-1.11.1.min.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
61 <script type="text/javascript" src="${h.url('/js/bootstrap.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
62 <script type="text/javascript" src="${h.url('/js/select2/select2.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
63 <script type="text/javascript" src="${h.url('/js/mousetrap.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
64 <!--[if lt IE 9]> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
65 <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
66 <![endif]--> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
67 <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
68 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
69 <script type="text/javascript" src="${h.url('/js/pyroutes_map.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
70 <script type="text/javascript" src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
71 ## EXTRA FOR JS |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
72 <%block name="js_extra"/> |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
73 <script type="text/javascript"> |
2686
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
74 (function(window,undefined){ |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
75 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
|
76 if ( !History.enabled ) { |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
77 // History.js is disabled for this browser. |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
78 // 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
|
79 return false; |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
80 } |
269c6e0b54cc
Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents:
2453
diff
changeset
|
81 })(window); |
3149
68f9c216377d
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3066
diff
changeset
|
82 |
4387
e271a8766951
javascript: replace YUE.onDOMReady with $(document).ready
Mads Kiilerich <madski@unity3d.com>
parents:
4267
diff
changeset
|
83 $(document).ready(function(){ |
3066 | 84 tooltip_activate(); |
85 show_more_event(); | |
86 show_changeset_tooltip(); | |
3388
cb40b3f6428c
review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents:
3246
diff
changeset
|
87 // routes registration |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
88 pyroutes.register('home', "${h.url('home')}", []); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
89 pyroutes.register('new_gist', "${h.url('new_gist')}", []); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
90 pyroutes.register('gists', "${h.url('gists')}", []); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
91 pyroutes.register('new_repo', "${h.url('new_repo')}", []); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
92 |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
93 pyroutes.register('summary_home', "${h.url('summary_home', repo_name='%(repo_name)s')}", ['repo_name']); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
94 pyroutes.register('changelog_home', "${h.url('changelog_home', repo_name='%(repo_name)s')}", ['repo_name']); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
95 pyroutes.register('files_home', "${h.url('files_home', repo_name='%(repo_name)s',revision='%(revision)s',f_path='%(f_path)s')}", ['repo_name', 'revision', 'f_path']); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
96 pyroutes.register('edit_repo', "${h.url('edit_repo', repo_name='%(repo_name)s')}", ['repo_name']); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
97 pyroutes.register('edit_repo_perms', "${h.url('edit_repo_perms', repo_name='%(repo_name)s')}", ['repo_name']); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
98 pyroutes.register('pullrequest_home', "${h.url('pullrequest_home', repo_name='%(repo_name)s')}", ['repo_name']); |
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
99 |
3388
cb40b3f6428c
review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents:
3246
diff
changeset
|
100 pyroutes.register('toggle_following', "${h.url('toggle_following')}"); |
cb40b3f6428c
review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents:
3246
diff
changeset
|
101 pyroutes.register('changeset_info', "${h.url('changeset_info', repo_name='%(repo_name)s', revision='%(revision)s')}", ['repo_name', 'revision']); |
3394
fe2bb88bf7ac
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3388
diff
changeset
|
102 pyroutes.register('repo_size', "${h.url('repo_size', repo_name='%(repo_name)s')}", ['repo_name']); |
3695
45df84d36b44
Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents:
3592
diff
changeset
|
103 pyroutes.register('changeset_comment_preview', "${h.url('changeset_comment_preview', repo_name='%(repo_name)s')}", ['repo_name']); |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4064
diff
changeset
|
104 pyroutes.register('repo_refs_data', "${h.url('repo_refs_data', repo_name='%(repo_name)s')}", ['repo_name']); |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
105 }); |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
106 </script> |
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
107 |
4810
6a825018a498
template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents:
4809
diff
changeset
|
108 <%block name="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
|
109 </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
|
110 <body id="body"> |
4734
1c27ffa45832
html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents:
4570
diff
changeset
|
111 ## IE hacks |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
112 <!--[if IE 7]> |
4390
e8f0df0d6dd5
replace YUI with jquery in templates/base/root.html
Takumi IINO <trot.thunder@gmail.com>
parents:
4387
diff
changeset
|
113 <script>$(document.body).addClass('ie7')</script> |
2174
85a64b981c07
ws cleanup, +changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
2163
diff
changeset
|
114 <![endif]--> |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
115 <!--[if IE 8]> |
4390
e8f0df0d6dd5
replace YUI with jquery in templates/base/root.html
Takumi IINO <trot.thunder@gmail.com>
parents:
4387
diff
changeset
|
116 <script>$(document.body).addClass('ie8')</script> |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
117 <![endif]--> |
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
118 <!--[if IE 9]> |
4390
e8f0df0d6dd5
replace YUI with jquery in templates/base/root.html
Takumi IINO <trot.thunder@gmail.com>
parents:
4387
diff
changeset
|
119 <script>$(document.body).addClass('ie9')</script> |
2174
85a64b981c07
ws cleanup, +changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
2163
diff
changeset
|
120 <![endif]--> |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
121 |
4809
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
122 <div id="header"> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
123 <div id="header-inner" class="title"> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
124 <div id="logo"> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
125 <a href="${h.url('home')}" style="display: block;"> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
126 <div class="header"> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
127 <img src="${h.url('/images/kallithea-logo.svg')}" onerror="this.onerror='';this.src='${h.url('/images/kallithea-logo.png')}'" alt="Kallithea"/> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
128 </div> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
129 %if c.site_name: |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
130 <div class="branding">${c.site_name}</div> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
131 %endif |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
132 </a> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
133 </div> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
134 <%block name="header_menu"/> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
135 </div> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
136 </div> |
ec39e73be935
template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents:
4734
diff
changeset
|
137 |
2163
e77fbd3b069c
IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents:
2141
diff
changeset
|
138 ${next.body()} |
4462
fb5760e8ba43
support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents:
4390
diff
changeset
|
139 |
fb5760e8ba43
support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents:
4390
diff
changeset
|
140 %if c.ga_code: |
fb5760e8ba43
support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents:
4390
diff
changeset
|
141 ${h.literal(c.ga_code)} |
fb5760e8ba43
support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents:
4390
diff
changeset
|
142 %endif |
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
|
143 </body> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
144 </html> |