annotate rhodecode/templates/index_base.html @ 1403:fc286aed92fe beta

fixes #209, repos groups and index page now share same common page.
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 30 Jun 2011 21:44:31 +0200
parents
children 241a5167c4e0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 <%page args="parent" />
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <%def name="get_sort(name)">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <%name_slug = name.lower().replace(' ','_') %>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 %if name_slug == c.sort_slug:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 %if c.sort_by.startswith('-'):
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 <a href="?sort=${name_slug}">${name}&uarr;</a>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 <a href="?sort=-${name_slug}">${name}&darr;</a>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 %endif:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 <a href="?sort=${name_slug}">${name}</a>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 </%def>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 <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
17 <!-- box / title -->
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18 <div class="title">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <h5><input class="top-right-rounded-corner top-left-rounded-corner
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 bottom-left-rounded-corner bottom-right-rounded-corner"
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 id="q_filter" size="15" type="text" name="filter"
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 value="${_('quick filter...')}"/>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 ${parent.breadcrumbs()} <span id="repo_count"></span> ${_('repositories')}
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
24 </h5>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 %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
26 %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
27 <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
28 <li>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
29 <span>${h.link_to(_('ADD NEW REPOSITORY'),h.url('admin_settings_create_repository'))}</span>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 </li>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 </ul>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
32 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
33 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
34 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
35 <!-- 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
36 <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
37 % if c.groups:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 <table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
40 <thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
41 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
42 <th class="left"><a href="#">${_('Group name')}</a></th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
43 <th class="left"><a href="#">${_('Description')}</a></th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
44 <th class="left"><a href="#">${_('Number of repositories')}</a></th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
45 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
46 </thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
47
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
48 ## REPO GROUPS
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
49
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
50 % for gr in c.groups:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
51 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
52 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
53 <div style="white-space: nowrap">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
54 <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
55 ${h.link_to(gr.group_name,url('repos_group',id=gr.group_id))}
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
56 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
57 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
58 <td>${gr.group_description}</td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
59 <td><b>${gr.repositories.count()}</b></td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
60 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
61 % endfor
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
62
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
63 </table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
64 <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
65 % endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
66 <table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
67 <thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
68 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
69 <th class="left">${get_sort(_('Name'))}</th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
70 <th class="left">${get_sort(_('Description'))}</th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
71 <th class="left">${get_sort(_('Last change'))}</th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
72 <th class="left">${get_sort(_('Tip'))}</th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
73 <th class="left">${get_sort(_('Owner'))}</th>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
74 <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
75 <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
76 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
77 </thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
78 <tbody>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
79 %for cnt,repo in enumerate(c.repos_list):
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
80 <tr class="parity${cnt%2}">
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 <div style="white-space: nowrap">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
83 ## TYPE OF REPO
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
84 %if repo['dbrepo']['repo_type'] =='hg':
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
85 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url("/images/icons/hgicon.png")}"/>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
86 %elif repo['dbrepo']['repo_type'] =='git':
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
87 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url("/images/icons/giticon.png")}"/>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
88 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
89
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
90 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
91
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
92 ##PRIVATE/PUBLIC
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
93 %if repo['dbrepo']['private']:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
94 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url("/images/icons/lock.png")}"/>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
95 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
96 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url("/images/icons/lock_open.png")}"/>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
97 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
98
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
99 ##NAME
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
100 ${h.link_to(repo['name'],
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
101 h.url('summary_home',repo_name=repo['name']),class_="repo_name")}
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
102 %if repo['dbrepo_fork']:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
103 <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
104 <img class="icon" alt="${_('fork')}"
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
105 title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}"
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
106 src="${h.url("/images/icons/arrow_divide.png")}"/></a>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
107 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
108 </div>
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 ##DESCRIPTION
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
111 <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
112 ${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
113 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
114 ##LAST CHANGE
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
115 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
116 <span class="tooltip" title="${repo['last_change']}">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
117 ${h.age(repo['last_change'])}</span>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
118 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
119 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
120 %if repo['rev']>=0:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
121 ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])),
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
122 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']),
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
123 class_="tooltip",
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
124 title=h.tooltip(repo['last_msg']))}
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
125 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
126 ${_('No changesets yet')}
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
127 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
128 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
129 <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
130 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
131 %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
132 <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
133 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
134 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_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
135 %endif:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
136 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
137 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
138 %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
139 <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
140 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
141 <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
142 %endif:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
143 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
144 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
145 %endfor
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
146
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
147 </tbody>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
148 </table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
149 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
150 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
151
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
152
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
153 <script type="text/javascript">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
154 var D = YAHOO.util.Dom;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
155 var E = YAHOO.util.Event;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
156 var S = YAHOO.util.Selector;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
157
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
158 var q_filter = D.get('q_filter');
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
159 var F = YAHOO.namespace('q_filter');
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
160
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
161 E.on(q_filter,'click',function(){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
162 q_filter.value = '';
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
163 });
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
164
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
165 F.filterTimeout = null;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
166
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
167 //set initial count for repos
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
168 var nodes = S.query('div.table tr td div a.repo_name');
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
169 YUD.get('repo_count').innerHTML = nodes.length;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
170 F.updateFilter = function() {
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
171 // Reset timeout
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
172 F.filterTimeout = null;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
173
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
174 var obsolete = [];
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
175 nodes = S.query('div.table tr td div a.repo_name');
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
176 var req = q_filter.value.toLowerCase();
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
177 for (n in nodes){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
178 D.setStyle(nodes[n].parentNode.parentNode.parentNode,'display','')
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
179 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
180 if (req){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
181 for (n in nodes){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
182 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
183 obsolete.push(nodes[n]);
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
184 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
185 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
186 if(obsolete){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
187 for (n in obsolete){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
188 D.setStyle(obsolete[n].parentNode.parentNode.parentNode,'display','none');
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
189 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
190 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
191 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
192 // set new count into dashboard
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
193 YUD.get('repo_count').innerHTML = nodes.length - obsolete.length;
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
194 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
195
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
196 E.on(q_filter,'keyup',function(e){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
197 clearTimeout(F.filterTimeout);
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
198 setTimeout(F.updateFilter,600);
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
199 });
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
200
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
201 </script>