annotate kallithea/templates/base/root.html @ 6128:b4db7ff78343

js: remove mousetrap - the current keyboard bindings are quite unknown and irrelevant
author Mads Kiilerich <madski@unity3d.com>
date Fri, 12 Aug 2016 03:04:48 +0200
parents 24d5af811027
children 4fa8b2ca0508
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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>
4845
3a3ec35466e7 templates: move site branding in page title to base template
Thomas De Schampheleire <thomas.de_schampheleire@alcatel-lucent.com>
parents: 4811
diff changeset
5 <title><%block name="title"/><%block name="branding_title"/></title>
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
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 ###
5937
4e78a8ed3f07 datatables: introduce jQuery DataTables to replace YAHOO.widget.DataTable
Daniel Hobley <danielh@unity3d.com>
parents: 5936
diff changeset
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/jquery.dataTables.css', ver=c.kallithea_version)}"/>
4734
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('/js/select2/select2.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/pygments.css', ver=c.kallithea_version)}"/>
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/style.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('/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
16 <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
17 <%block name="css_extra"/>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
18
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
19 ## JAVASCRIPT ##
4734
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
20 <script type="text/javascript">
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
21 ## JS translations map
2369
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
22 var TRANSLATION_MAP = {
4527
dacdea9fda2a Correct capitalization and improved English text in the UI
Na'Tosha Bard <natosha@unity3d.com>
parents: 4516
diff changeset
23 'Add Another Comment':'${_("Add Another Comment")}',
2369
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
24 'Stop following this repository':"${_('Stop following this repository')}",
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
25 'Start following this repository':"${_('Start following this repository')}",
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
26 'Group':"${_('Group')}",
2428
530bd12fc18a removed JSON array envelope from filter files function
Marcin Kuzminski <marcin@python-works.com>
parents: 2413
diff changeset
27 'members':"${_('members')}",
3516
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
28 'Loading ...':"${_('Loading ...')}",
3966
636ff0369986 fixed hover loading ... info on lazy-cs
Marcin Kuzminski <marcin@python-works.com>
parents: 3954
diff changeset
29 'loading ...':"${_('loading ...')}",
3516
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
30 'Search truncated': "${_('Search truncated')}",
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
31 'No matching files': "${_('No matching files')}",
5445
322e17eb356a changelog: rework changeset selection and button behaviour
Mads Kiilerich <madski@unity3d.com>
parents: 5329
diff changeset
32 'Open New Pull Request from {0}': "${_('Open New Pull Request from {0}')}",
322e17eb356a changelog: rework changeset selection and button behaviour
Mads Kiilerich <madski@unity3d.com>
parents: 5329
diff changeset
33 'Open New Pull Request for {0} &rarr; {1}': "${h.literal(_('Open New Pull Request for {0} &rarr; {1}'))}",
322e17eb356a changelog: rework changeset selection and button behaviour
Mads Kiilerich <madski@unity3d.com>
parents: 5329
diff changeset
34 'Show Selected Changesets {0} &rarr; {1}': "${h.literal(_('Show Selected Changesets {0} &rarr; {1}'))}",
4527
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} ?')}",
5952
24d5af811027 spelling: fix title casing on translated template strings
Andrew Shadura <andrew@shadura.me>
parents: 5937
diff changeset
40 'Enabled': "${_('Enabled')}",
24d5af811027 spelling: fix title casing on translated template strings
Andrew Shadura <andrew@shadura.me>
parents: 5937
diff changeset
41 'Disabled': "${_('Disabled')}",
4116
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
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
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
4992
569199be3475 javascript: provide secure_form compatible_authentication_token in all AJAX POSTs
Mads Kiilerich <madski@unity3d.com>
parents: 4845
diff changeset
58
569199be3475 javascript: provide secure_form compatible_authentication_token in all AJAX POSTs
Mads Kiilerich <madski@unity3d.com>
parents: 4845
diff changeset
59 var _authentication_token = "${h.authentication_token()}";
4734
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
60 </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/yui.2.9.js', ver=c.kallithea_version)}"></script>
5936
7a4dec17e837 js: update jQuery to 1.12.3
Mads Kiilerich <madski@unity3d.com>
parents: 5664
diff changeset
62 <script type="text/javascript" src="${h.url('/js/jquery.min.js', ver=c.kallithea_version)}"></script>
5937
4e78a8ed3f07 datatables: introduce jQuery DataTables to replace YAHOO.widget.DataTable
Daniel Hobley <danielh@unity3d.com>
parents: 5936
diff changeset
63 <script type="text/javascript" src="${h.url('/js/jquery.dataTables.min.js', ver=c.kallithea_version)}"></script>
4734
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
64 <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
65 <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
66 <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
67 <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
68 <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
69 ## EXTRA FOR JS
4810
6a825018a498 template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents: 4809
diff changeset
70 <%block name="js_extra"/>
4734
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
71 <script type="text/javascript">
2686
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
72 (function(window,undefined){
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
73 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
74 if ( !History.enabled ) {
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
75 // History.js is disabled for this browser.
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
76 // 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
77 return false;
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
78 }
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
79 })(window);
3149
68f9c216377d white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3066
diff changeset
80
4387
e271a8766951 javascript: replace YUE.onDOMReady with $(document).ready
Mads Kiilerich <madski@unity3d.com>
parents: 4267
diff changeset
81 $(document).ready(function(){
3066
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
82 tooltip_activate();
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
83 show_more_event();
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
84 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
85 // 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
86 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
87 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
88 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
89 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
90
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('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
92 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
93 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
94 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
95 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
96 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
97
3388
cb40b3f6428c review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents: 3246
diff changeset
98 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
99 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
100 pyroutes.register('repo_size', "${h.url('repo_size', 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
101 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
102 });
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
103 </script>
1c27ffa45832 html: minor cleanup of root.html
Mads Kiilerich <madski@unity3d.com>
parents: 4570
diff changeset
104
4810
6a825018a498 template: use mako block for root.html extra sections
Mads Kiilerich <madski@unity3d.com>
parents: 4809
diff changeset
105 <%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
106 </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
107 <body id="body">
4809
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
108 <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
109 <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
110 <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
111 <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
112 <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
113 <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
114 </div>
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
115 %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
116 <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
117 %endif
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
118 </a>
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
119 </div>
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
120 <%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
121 </div>
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
122 </div>
ec39e73be935 template: move header to root.html, use mako block for header menu
Mads Kiilerich <madski@unity3d.com>
parents: 4734
diff changeset
123
2163
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
124 ${next.body()}
4462
fb5760e8ba43 support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents: 4390
diff changeset
125
fb5760e8ba43 support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents: 4390
diff changeset
126 %if c.ga_code:
fb5760e8ba43 support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents: 4390
diff changeset
127 ${h.literal(c.ga_code)}
fb5760e8ba43 support other analytic systems then just Google Analytics
domruf <dominikruf@gmail.com>
parents: 4390
diff changeset
128 %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
129 </body>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
130 </html>