Mercurial > kallithea
annotate rhodecode/templates/index_base.html @ 2095:17c9393e9645 beta
docs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 02 Mar 2012 22:14:03 +0200 |
parents | f664d3b57fa4 |
children | 47d7bcbe5503 |
rev | line source |
---|---|
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
1 <%page args="parent" /> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 <div class="box"> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <!-- box / title --> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <div class="title"> |
1475
aa805ee6ee09
fixes code view issue on chrome
Marcin Kuzminski <marcin@python-works.com>
parents:
1458
diff
changeset
|
5 <h5> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
6 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> ${parent.breadcrumbs()} <span id="repo_count">0</span> ${_('repositories')} |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 </h5> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 %if c.rhodecode_user.username != 'default': |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 %if h.HasPermissionAny('hg.admin','hg.create.repository')(): |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 <ul class="links"> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 <li> |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1743
diff
changeset
|
12 <span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
13 </li> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
14 </ul> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 %endif |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 %endif |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 </div> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 <!-- end box / title --> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <div class="table"> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 % if c.groups: |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
21 <div id='groups_list_wrap' class="yui-skin-sam"> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
22 <table id="groups_list"> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
23 <thead> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
24 <tr> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
25 <th class="left"><a href="#">${_('Group name')}</a></th> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
26 <th class="left"><a href="#">${_('Description')}</a></th> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
27 ##<th class="left"><a href="#">${_('Number of repositories')}</a></th> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
28 </tr> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
29 </thead> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
30 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
31 ## REPO GROUPS |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
32 % for gr in c.groups: |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 <tr> |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
34 <td> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
35 <div style="white-space: nowrap"> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
36 <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
37 ${h.link_to(gr.name,url('repos_group_home',group_name=gr.group_name))} |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
38 </div> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
39 </td> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
40 <td>${gr.group_description}</td> |
1982
87f0800abc7b
#227 Initial version of repository groups permissions system
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
41 ## this is commented out since for multi nested repos can be HEAVY! |
87f0800abc7b
#227 Initial version of repository groups permissions system
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
42 ## in number of executed queries during traversing uncomment at will |
87f0800abc7b
#227 Initial version of repository groups permissions system
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
43 ##<td><b>${gr.repositories_recursive_count}</b></td> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
44 </tr> |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
45 % endfor |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
46 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
47 </table> |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
48 </div> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
49 <div style="height: 20px"></div> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
50 % endif |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
51 <div id="welcome" style="display:none;text-align:center"> |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
52 <h1><a href="${h.url('home')}">${c.rhodecode_name} ${c.rhodecode_version}</a></h1> |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
53 </div> |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
54 <div id='repos_list_wrap' class="yui-skin-sam"> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
55 <%cnt=0%> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
56 <%namespace name="dt" file="/_data_table/_dt_elements.html"/> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
57 |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
58 <table id="repos_list"> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
59 <thead> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
60 <tr> |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
61 <th class="left"></th> |
1482
a39c0e5fca89
removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents:
1475
diff
changeset
|
62 <th class="left">${_('Name')}</th> |
a39c0e5fca89
removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents:
1475
diff
changeset
|
63 <th class="left">${_('Description')}</th> |
a39c0e5fca89
removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents:
1475
diff
changeset
|
64 <th class="left">${_('Last change')}</th> |
a39c0e5fca89
removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents:
1475
diff
changeset
|
65 <th class="left">${_('Tip')}</th> |
a39c0e5fca89
removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents:
1475
diff
changeset
|
66 <th class="left">${_('Owner')}</th> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
67 <th class="left">${_('RSS')}</th> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
68 <th class="left">${_('Atom')}</th> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
69 </tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
70 </thead> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
71 <tbody> |
2068 | 72 %for cnt,repo in enumerate(c.repos_list): |
73 <tr class="parity${(cnt+1)%2}"> | |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
74 ##QUICK MENU |
1424
ac0c4e600426
removed obsolete class from quick menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1423
diff
changeset
|
75 <td class="quick_repo_menu"> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
76 ${dt.quick_menu(repo['name'])} |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
77 </td> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
78 ##REPO NAME AND ICONS |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
79 <td class="reponame"> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
80 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))} |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
81 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
82 ##DESCRIPTION |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
83 <td><span class="tooltip" title="${h.tooltip(repo['description'])}"> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
84 ${h.truncate(repo['description'],60)}</span> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
85 </td> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
86 ##LAST CHANGE DATE |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
87 <td> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
88 <span class="tooltip" title="${repo['last_change']}">${h.age(repo['last_change'])}</span> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
89 </td> |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
90 ##LAST REVISION |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
91 <td> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
92 ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])} |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
93 </td> |
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
94 ## |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
95 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
96 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
97 %if c.rhodecode_user.username != 'default': |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
98 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
99 %else: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
100 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
101 %endif: |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
102 </td> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
103 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
104 %if c.rhodecode_user.username != 'default': |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
105 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
106 %else: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
107 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
108 %endif: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
109 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
110 </tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
111 %endfor |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
112 </tbody> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
113 </table> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
114 </div> |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
115 </div> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
116 </div> |
1653
b1e1dffd595c
one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents:
1624
diff
changeset
|
117 <script> |
2068 | 118 YUD.get('repo_count').innerHTML = ${cnt+1}; |
1653
b1e1dffd595c
one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents:
1624
diff
changeset
|
119 var func = function(node){ |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
120 return node.parentNode.parentNode.parentNode.parentNode; |
1653
b1e1dffd595c
one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents:
1624
diff
changeset
|
121 } |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
122 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
123 |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
124 // groups table sorting |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
125 var myColumnDefs = [ |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
126 {key:"name",label:"${_('Group Name')}",sortable:true, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
127 sortOptions: { sortFunction: groupNameSort }}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
128 {key:"desc",label:"${_('Description')}",sortable:true}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
129 ]; |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
130 |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
131 var myDataSource = new YAHOO.util.DataSource(YUD.get("groups_list")); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
132 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
133 myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE; |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
134 myDataSource.responseSchema = { |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
135 fields: [ |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
136 {key:"name"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
137 {key:"desc"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
138 ] |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
139 }; |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
140 |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
141 var myDataTable = new YAHOO.widget.DataTable("groups_list_wrap", myColumnDefs, myDataSource, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
142 { |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
143 sortedBy:{key:"name",dir:"asc"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
144 MSG_SORTASC:"${_('Click to sort ascending')}", |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
145 MSG_SORTDESC:"${_('Click to sort descending')}" |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
146 } |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
147 ); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
148 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
149 // main table sorting |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
150 var myColumnDefs = [ |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
151 {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
152 {key:"name",label:"${_('Name')}",sortable:true, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
153 sortOptions: { sortFunction: nameSort }}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
154 {key:"desc",label:"${_('Description')}",sortable:true}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
155 {key:"last_change",label:"${_('Last Change')}",sortable:true, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
156 sortOptions: { sortFunction: ageSort }}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
157 {key:"tip",label:"${_('Tip')}",sortable:true, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
158 sortOptions: { sortFunction: revisionSort }}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
159 {key:"owner",label:"${_('Owner')}",sortable:true}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
160 {key:"rss",label:"",sortable:false}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
161 {key:"atom",label:"",sortable:false}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
162 ]; |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
163 |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
164 var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list")); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
165 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
166 myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE; |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
167 |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
168 myDataSource.responseSchema = { |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
169 fields: [ |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
170 {key:"menu"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
171 {key:"name"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
172 {key:"desc"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
173 {key:"last_change"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
174 {key:"tip"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
175 {key:"owner"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
176 {key:"rss"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
177 {key:"atom"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
178 ] |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
179 }; |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
180 |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
181 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
182 { |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
183 sortedBy:{key:"name",dir:"asc"}, |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
184 MSG_SORTASC:"${_('Click to sort ascending')}", |
1780
b9539c4df92f
Translations fixes for Data table
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
185 MSG_SORTDESC:"${_('Click to sort descending')}", |
b9539c4df92f
Translations fixes for Data table
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
186 MSG_EMPTY:"${_('No records found.')}", |
b9539c4df92f
Translations fixes for Data table
Marcin Kuzminski <marcin@python-works.com>
parents:
1779
diff
changeset
|
187 MSG_ERROR:"${_('Data error.')}", |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
188 MSG_LOADING:"${_('Loading...')}", |
1778
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
189 } |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
190 ); |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
191 myDataTable.subscribe('postRenderEvent',function(oArgs) { |
defcf245f3e9
fixes #229 repo sorting is not working.
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
192 tooltip_activate(); |
1779
9edd6ac132f0
Added sorting into journal and admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
1778
diff
changeset
|
193 quick_repo_menu(); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
194 q_filter('q_filter',YUQ('div.table tr td a.repo_name'),func); |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
195 }); |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
196 |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1780
diff
changeset
|
197 </script> |