annotate rhodecode/templates/index_base.html @ 1478:236090bf758f beta

Fixed user avatar display when gravatar use is disabled
author Liad Shani <liadff@gmail.com>
date Wed, 21 Sep 2011 20:47:16 +0300
parents aa805ee6ee09
children a39c0e5fca89
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">
1475
aa805ee6ee09 fixes code view issue on chrome
Marcin Kuzminski <marcin@python-works.com>
parents: 1458
diff changeset
19 <h5>
aa805ee6ee09 fixes code view issue on chrome
Marcin Kuzminski <marcin@python-works.com>
parents: 1458
diff changeset
20 <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 ${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
22 </h5>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 %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
24 %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
25 <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
26 <li>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
27 <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
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 </ul>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
32 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
33 <!-- 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
34 <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
35 % 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
36 <table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
37 <thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39 <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
40 <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
41 ##<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
42 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
43 </thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
44
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
45 ## REPO GROUPS
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 % 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
48 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
49 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
50 <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
51 <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
52 ${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
53 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
54 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
55 <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
56 ##<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
57 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
58 % endfor
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
59
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
60 </table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
61 <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
62 % endif
1437
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
63 <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
64 <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
65 </div>
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
66 <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
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>
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
69 <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
70 <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
71 <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
72 <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
73 <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
74 <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
75 <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
76 <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
77 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
78 </thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
79 <tbody>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
80 %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
81 <tr class="parity${cnt%2}">
1424
ac0c4e600426 removed obsolete class from quick menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1423
diff changeset
82 <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
83 <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
84 <li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
85 <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
86 <span class="icon">
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
87 <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
88 </span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
89 <span>${_('Summary')}</span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
90 </a>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
91 </li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
92 <li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
93 <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
94 <span class="icon">
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
95 <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
96 </span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
97 <span>${_('Changelog')}</span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
98 </a>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
99 </li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
100 <li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
101 <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
102 <span class="icon">
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
103 <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
104 </span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
105 <span>${_('Files')}</span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
106 </a>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
107 </li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
108 </ul>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
109 </td>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
110 <td>
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
111 ## 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
112 <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
113 %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
114 <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
115 %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
116 <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
117 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
118
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
119 ##PRIVATE/PUBLIC
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['dbrepo']['private']:
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
121 <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
122 %else:
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="${_('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
124 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
125
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
126 ##NAME
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
127 ${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
128 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
129 %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
130 <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
131 <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
132 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
133 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
134 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
135 </div>
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 ##DESCRIPTION
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
138 <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
139 ${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
140 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
141 ##LAST CHANGE
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 <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
144 ${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
145 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
146 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
147 %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
148 ${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
149 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
150 class_="tooltip",
1458
9d9e491e2a21 added author to main page tooltip
Marcin Kuzminski <marcin@python-works.com>
parents: 1453
diff changeset
151 title=h.tooltip('%s\n%s' % (repo['author'],repo['last_msg'])))}
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
152 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
153 ${_('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
154 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
155 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
156 <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
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 %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
159 <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
160 %else:
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'])}"></a>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
162 %endif:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
163 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
164 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
165 %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
166 <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
167 %else:
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'])}"></a>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
169 %endif:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
170 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
171 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
172 %endfor
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 </tbody>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
175 </table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
176 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
177 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
178
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 <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
181 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
182 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
183 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
184
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
185 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
186 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
187
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
188 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
189 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
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 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
193
1437
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
194 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
195
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
196 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
197 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
198 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
199 }
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
200 else{
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
201 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
202 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
203 }
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
204 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
205
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
206 }
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
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
209 //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
210 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
211
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
212 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
213 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
214 // Reset timeout
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
215 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
216
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
217 var obsolete = [];
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
218 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
219 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
220 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
221 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
222 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
223 if (req){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
224 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
225 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
226 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
227 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
228 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
229 if(obsolete){
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
230 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
231 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
232 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
233 }
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 // 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
236 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
237 }
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
238
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
239 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
240 clearTimeout(F.filterTimeout);
1453
55a4cbcd464d fixed timeout reset on active filters searches, should work faster now !
Marcin Kuzminski <marcin@python-works.com>
parents: 1437
diff changeset
241 F.filterTimeout = setTimeout(F.updateFilter,600);
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
242 });
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
243
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
244 </script>