annotate rhodecode/templates/base/root.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3§14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents afe7c5e63aaf
children ec7e44bf9f31
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>
3950
1226fdf24f8a fixed typo remoke -> revoke
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
3
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
4 <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
5 <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
6 <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
7 <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
8 <meta name="robots" content="index, nofollow"/>
3954
ca30c9924023 Use separate icon as favicon
Marcin Kuzminski <marcin@python-works.com>
parents: 3950
diff changeset
9 <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
10
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 ## 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
12 <%def name="css()">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
13 <link rel="stylesheet" type="text/css" href="${h.url('/css/fontawesome_extension.css')}" media="screen"/>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/fontawesome.css')}" media="screen"/>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
15 <link rel="stylesheet" type="text/css" href="${h.url('/js/select2/select2.css', ver=c.rhodecode_version)}"/>
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
16 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.rhodecode_version)}"/>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
17 <link rel="stylesheet" type="text/css" href="${h.url('/css/newstyle.css', ver=c.rhodecode_version)}" media="screen"/>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
18 <link rel="stylesheet" type="text/css" href="${h.url('/css/bootstrap.css', ver=c.rhodecode_version)}" media="screen"/>
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 ## 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
20 ${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
21 </%def>
3950
1226fdf24f8a fixed typo remoke -> revoke
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
22
1226fdf24f8a fixed typo remoke -> revoke
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
23 <%def name="css_extra()"></%def>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
24
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
25 ${self.css()}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
26
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
27 %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
28 <!-- Analytics -->
3198
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
29 <script type="text/javascript">
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
30 var _gaq = _gaq || [];
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
31 _gaq.push(['_setAccount', '${c.ga_code}']);
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
32 _gaq.push(['_trackPageview']);
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
33
3198
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
34 (function() {
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
35 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
36 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
37 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
38 })();
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
39 </script>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3160
diff changeset
40 %endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
41
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
42 ## 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
43 <%def name="js()">
2369
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
44 <script type="text/javascript">
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
45 //JS translations map
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
46 var TRANSLATION_MAP = {
3516
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
47 'Add another comment':'${_("Add another comment")}',
2369
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
48 'Stop following this repository':"${_('Stop following this repository')}",
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
49 'Start following this repository':"${_('Start following this repository')}",
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
50 'Group':"${_('Group')}",
2428
530bd12fc18a removed JSON array envelope from filter files function
Marcin Kuzminski <marcin@python-works.com>
parents: 2413
diff changeset
51 'members':"${_('members')}",
3516
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
52 'Loading ...':"${_('Loading ...')}",
3966
636ff0369986 fixed hover loading ... info on lazy-cs
Marcin Kuzminski <marcin@python-works.com>
parents: 3954
diff changeset
53 'loading ...':"${_('loading ...')}",
3516
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
54 'Search truncated': "${_('Search truncated')}",
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
55 'No matching files': "${_('No matching files')}",
2927
58bb350bfef8 Don't allow cherry picking changesets from the changelog using checkboxes.
Marcin Kuzminski <marcin@python-works.com>
parents: 2850
diff changeset
56 '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
57 'Open new pull request for selected changesets': "${_('Open new pull request for selected changesets')}",
3592
549c73bfc206 changelog / compare: adjust titles
Mads Kiilerich <madski@unity3d.com>
parents: 3552
diff changeset
58 'Show selected changesets __S -> __E': "${_('Show selected changesets __S -> __E')}",
549c73bfc206 changelog / compare: adjust titles
Mads Kiilerich <madski@unity3d.com>
parents: 3552
diff changeset
59 'Show selected changeset __S': "${_('Show selected changeset __S')}",
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
60 'Selection link': "${_('Selection link')}",
3516
c44645e5a836 fix casings
Mads Kiilerich <madski@unity3d.com>
parents: 3503
diff changeset
61 'Collapse diff': "${_('Collapse diff')}",
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3695
diff changeset
62 'Expand diff': "${_('Expand diff')}",
4064
afe7c5e63aaf UX: require confirmation of revoking permissions on
Marcin Kuzminski <marcin@python-works.com>
parents: 3966
diff changeset
63 'Failed to revoke permission': "${_('Failed to revoke permission')}",
afe7c5e63aaf UX: require confirmation of revoking permissions on
Marcin Kuzminski <marcin@python-works.com>
parents: 3966
diff changeset
64 '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
65 '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
66 '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
67 'Select changeset': "${_('Select changeset')}",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
68 'specify changeset': "${_('specify changeset')}",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
69 '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
70 '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
71 '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
72 'MSG_ERROR': "${_('Data error.')}",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
73 'MSG_LOADING': "${_('Loading...')}",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
74
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
75
2369
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
76 };
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
77 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
78
3066
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
79 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
80
3695
45df84d36b44 Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents: 3592
diff changeset
81 var REPO_NAME = "";
45df84d36b44 Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents: 3592
diff changeset
82 %if hasattr(c, 'repo_name'):
45df84d36b44 Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents: 3592
diff changeset
83 var REPO_NAME = "${c.repo_name}";
45df84d36b44 Implemented preview for comments
Marcin Kuzminski <marcin@python-works.com>
parents: 3592
diff changeset
84 %endif
2369
c2f131502037 Autocomplete fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 2188
diff changeset
85 </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
86 <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
87 <script type="text/javascript" src="${h.url('/js/jquery-1.10.2.min.js', ver=c.rhodecode_version)}"></script>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
88 <script type="text/javascript" src="${h.url('/js/bootstrap.js', ver=c.rhodecode_version)}"></script>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
89 <script type="text/javascript" src="${h.url('/js/select2/select2.js', ver=c.rhodecode_version)}"></script>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
90 <script type="text/javascript" src="${h.url('/js/mousetrap.js', ver=c.rhodecode_version)}"></script>
2141
9d54d6516e2e disabled ext canvas for >ie9
Marcin Kuzminski <marcin@python-works.com>
parents: 2001
diff changeset
91 <!--[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
92 <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
93 <![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
94 <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
95 <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.rhodecode_version)}"></script>
3388
cb40b3f6428c review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents: 3246
diff changeset
96 <script type="text/javascript" src="${h.url('/js/pyroutes_map.js', ver=c.rhodecode_version)}"></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
97 <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
98 ## 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
99 ${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
100 <script type="text/javascript">
2686
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
101 (function(window,undefined){
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
102 // Prepare
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
103 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
104 if ( !History.enabled ) {
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
105 // History.js is disabled for this browser.
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
106 // 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
107 return false;
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
108 }
269c6e0b54cc Reimplemented file-browser using partial-ajax
Marcin Kuzminski <marcin@python-works.com>
parents: 2453
diff changeset
109 })(window);
3149
68f9c216377d white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3066
diff changeset
110
3066
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
111 YUE.onDOMReady(function(){
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
112 tooltip_activate();
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
113 show_more_event();
5d580e9bc730 JS cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3001
diff changeset
114 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
115 // 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
116 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
117 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
118 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
119 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
120
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4064
diff changeset
121 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
122 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
123 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
124 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
125 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
126 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
127
3388
cb40b3f6428c review members are dynamically changed based on selected other_repo owner
Marcin Kuzminski <marcin@python-works.com>
parents: 3246
diff changeset
128 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
129 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
130 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
131 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
132 pyroutes.register('repo_refs_data', "${h.url('repo_refs_data', repo_name='%(repo_name)s')}", ['repo_name']);
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
133 })
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
134 </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
135 </%def>
1700
bc16d1d0869a js cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1610
diff changeset
136 <%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
137 ${self.js()}
2413
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2369
diff changeset
138 <%def name="head_extra()"></%def>
6bef2a9f73e2 added discoverable rss/atom links in pages
Marcin Kuzminski <marcin@python-works.com>
parents: 2369
diff changeset
139 ${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
140 </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
141 <body id="body">
2163
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
142 ## IE hacks
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
143 <!--[if IE 7]>
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
144 <script>YUD.addClass(document.body,'ie7')</script>
2174
85a64b981c07 ws cleanup, +changelog
Marcin Kuzminski <marcin@python-works.com>
parents: 2163
diff changeset
145 <![endif]-->
2163
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
146 <!--[if IE 8]>
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
147 <script>YUD.addClass(document.body,'ie8')</script>
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
148 <![endif]-->
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
149 <!--[if IE 9]>
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
150 <script>YUD.addClass(document.body,'ie9')</script>
2174
85a64b981c07 ws cleanup, +changelog
Marcin Kuzminski <marcin@python-works.com>
parents: 2163
diff changeset
151 <![endif]-->
2163
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
152
e77fbd3b069c IE ui fixes ref #349
Marcin Kuzminski <marcin@python-works.com>
parents: 2141
diff changeset
153 ${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
154 </body>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1778
diff changeset
155 </html>