annotate rhodecode/templates/admin/admin.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 1f334a68d057
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
43
2e1247e62c5b changed for pylons 0.1 / 1.0
marcink
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 108
diff changeset
2 <%inherit file="/base/base.html"/>
175
d69e19fc2795 removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents: 174
diff changeset
3
44
d924b931b488 Added managment pages.
marcink
parents: 43
diff changeset
4 <%def name="title()">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3582
diff changeset
5 ${_('Admin journal')}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3582
diff changeset
6 %if c.rhodecode_name:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3582
diff changeset
7 &middot; ${c.rhodecode_name}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3582
diff changeset
8 %endif
44
d924b931b488 Added managment pages.
marcink
parents: 43
diff changeset
9 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 308
diff changeset
10
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 308
diff changeset
11 <%def name="breadcrumbs_links()">
3062
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
12 <form id="filter_form">
3070
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
13 <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.search_term or _('journal filter...')}"/>
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
14 <span class="tooltip" title="${h.tooltip(h.journal_filter_help())}">?</span>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 3582
diff changeset
15 <input type='submit' value="${_('filter')}" class="btn btn-mini" style="padding:0px 2px 0px 2px;margin:0px"/>
3063
ca2b21819dfd Implemented better support for Wildcard queries
Marcin Kuzminski <marcin@python-works.com>
parents: 3062
diff changeset
16 ${_('Admin journal')} - ${ungettext('%s entry', '%s entries', c.users_log.item_count) % (c.users_log.item_count)}
3062
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
17 </form>
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
18 ${h.end_form()}
44
d924b931b488 Added managment pages.
marcink
parents: 43
diff changeset
19 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 308
diff changeset
20
44
d924b931b488 Added managment pages.
marcink
parents: 43
diff changeset
21 <%def name="page_nav()">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
22 ${self.menu('admin')}
44
d924b931b488 Added managment pages.
marcink
parents: 43
diff changeset
23 </%def>
d924b931b488 Added managment pages.
marcink
parents: 43
diff changeset
24 <%def name="main()">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 308
diff changeset
25 <div class="box">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
26 <!-- box / title -->
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
27 <div class="title">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
28 ${self.breadcrumbs()}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
29 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
30 <!-- end box / title -->
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
31 <div class="table">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
32 <div id="user_log">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
33 ${c.log_data}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
34 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
35 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
36 </div>
3062
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
37
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
38 <script>
3070
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
39 YUE.on('j_filter','click',function(){
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
40 var jfilter = YUD.get('j_filter');
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
41 if(YUD.hasClass(jfilter, 'initial')){
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
42 jfilter.value = '';
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
43 }
3069
9dca99ffd495 added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents: 3063
diff changeset
44 });
3070
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
45 var fix_j_filter_width = function(len){
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
46 YUD.setStyle(YUD.get('j_filter'),'width',Math.max(80, len*6.50)+'px');
3069
9dca99ffd495 added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents: 3063
diff changeset
47 }
3070
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
48 YUE.on('j_filter','keyup',function(){
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
49 fix_j_filter_width(YUD.get('j_filter').value.length);
3062
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
50 });
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
51 YUE.on('filter_form','submit',function(e){
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
52 YUE.preventDefault(e)
3070
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
53 var val = YUD.get('j_filter').value;
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3149
diff changeset
54 window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val);
3069
9dca99ffd495 added help on how to filter the journal
Marcin Kuzminski <marcin@python-works.com>
parents: 3063
diff changeset
55 });
3070
cc7eedb5323c final implementation of #210 journal filtering.
Marcin Kuzminski <marcin@python-works.com>
parents: 3069
diff changeset
56 fix_j_filter_width(YUD.get('j_filter').value.length);
3062
a08624dd675e Implemented filtering of admin journal based on Whoosh Query language
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
57 </script>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
58 </%def>