Mercurial > kallithea
annotate rhodecode/templates/index_base.html @ 1441:b596a0e63466 beta
Fixing a small error in the repo settings screen
The 'Add another member' option didn't work in 1.2 beta, as the field
was renamed from `perm_new_user_name` to `perm_new_member_name`
author | Ankit Solanki <ankit.solanki@gmail.com> |
---|---|
date | Tue, 09 Aug 2011 12:59:33 +0530 |
parents | 7a46d67c263c |
children | 55a4cbcd464d |
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}↑</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}↓</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 <thead> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
40 <tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
41 <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
|
42 <th class="left"><a href="#">${_('Description')}</a></th> |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
43 ##<th class="left"><a href="#">${_('Number of repositories')}</a></th> |
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> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
45 </thead> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
46 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
47 ## REPO GROUPS |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
48 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
49 % 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
|
50 <tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
51 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
52 <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
|
53 <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
|
54 ${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
|
55 </div> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
56 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
57 <td>${gr.group_description}</td> |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
58 ##<td><b>${gr.repositories.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
|
59 </tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
60 % endfor |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
61 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
62 </table> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
63 <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
|
64 % endif |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
65 <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
|
66 <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
|
67 </div> |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
68 <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
|
69 <thead> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
70 <tr> |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
71 <th class="left"></th> |
1403
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(_('Name'))}</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(_('Description'))}</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">${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
|
75 <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
|
76 <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
|
77 <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
|
78 <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
|
79 </tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
80 </thead> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
81 <tbody> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
82 %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
|
83 <tr class="parity${cnt%2}"> |
1424
ac0c4e600426
removed obsolete class from quick menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1423
diff
changeset
|
84 <td class="quick_repo_menu"> |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
85 <ul class="menu_items hidden"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
86 <li> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
87 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo['name'])}"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
88 <span class="icon"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
89 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
90 </span> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
91 <span>${_('Summary')}</span> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
92 </a> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
93 </li> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
94 <li> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
95 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo['name'])}"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
96 <span class="icon"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
97 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
98 </span> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
99 <span>${_('Changelog')}</span> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
100 </a> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
101 </li> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
102 <li> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
103 <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo['name'])}"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
104 <span class="icon"> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
105 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
106 </span> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
107 <span>${_('Files')}</span> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
108 </a> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
109 </li> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
110 </ul> |
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
111 </td> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
112 <td> |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
113 ## TYPE OF REPO |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
114 <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
|
115 %if repo['dbrepo']['repo_type'] =='hg': |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
116 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
117 %elif repo['dbrepo']['repo_type'] =='git': |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
118 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
119 %endif |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
120 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
121 ##PRIVATE/PUBLIC |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
122 %if repo['dbrepo']['private']: |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
123 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
124 %else: |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
125 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
126 %endif |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
127 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
128 ##NAME |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
129 ${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
|
130 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
|
131 %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
|
132 <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
|
133 <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
|
134 title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}" |
1423
241a5167c4e0
Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
1403
diff
changeset
|
135 src="${h.url('/images/icons/arrow_divide.png')}"/></a> |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
136 %endif |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
137 </div> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
138 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
139 ##DESCRIPTION |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
140 <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
|
141 ${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
|
142 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
143 ##LAST CHANGE |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
144 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
145 <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
|
146 ${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
|
147 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
148 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
149 %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
|
150 ${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
|
151 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
|
152 class_="tooltip", |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
153 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
|
154 %else: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
155 ${_('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
|
156 %endif |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
157 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
158 <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
|
159 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
160 %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
|
161 <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
|
162 %else: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
163 <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
|
164 %endif: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
165 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
166 <td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
167 %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
|
168 <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
|
169 %else: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
170 <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
|
171 %endif: |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
172 </td> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
173 </tr> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
174 %endfor |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
175 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
176 </tbody> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
177 </table> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
178 </div> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
179 </div> |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
180 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
181 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
182 <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
|
183 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
|
184 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
|
185 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
|
186 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
187 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
|
188 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
|
189 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
190 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
|
191 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
|
192 }); |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
193 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
194 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
|
195 |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
196 function set_count(count){ |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
197 |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
198 if(count == 0){ |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
199 YUD.setStyle('repos_list','display','none'); |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
200 YUD.setStyle('welcome','display',''); |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
201 } |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
202 else{ |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
203 YUD.setStyle('repos_list','display',''); |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
204 YUD.setStyle('welcome','display','none'); |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
205 } |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
206 YUD.get('repo_count').innerHTML = count; |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
207 |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
208 } |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
209 |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
210 |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
211 //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
|
212 var nodes = S.query('div.table tr td div a.repo_name'); |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
213 |
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
214 set_count(nodes.length) |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
215 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
|
216 // Reset timeout |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
217 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
|
218 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
219 var obsolete = []; |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
220 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
|
221 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
|
222 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
|
223 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
|
224 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
225 if (req){ |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
226 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
|
227 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
|
228 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
|
229 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
230 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
231 if(obsolete){ |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
232 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
|
233 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
|
234 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
235 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
236 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
237 // set new count into dashboard |
1437
7a46d67c263c
added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents:
1426
diff
changeset
|
238 set_count(nodes.length - obsolete.length) |
1403
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
239 } |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
240 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
241 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
|
242 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
|
243 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
|
244 }); |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
245 |
fc286aed92fe
fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
246 </script> |