annotate rhodecode/templates/index_base.html @ 1770:184557472f5c beta

Implements #304 hashes in relevant places are displayed using monospaced font.
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 08 Dec 2011 04:32:42 +0200
parents db4852ed3413
children defcf245f3e9
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 <div class="box">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <!-- box / title -->
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <div class="title">
1475
aa805ee6ee09 fixes code view issue on chrome
Marcin Kuzminski <marcin@python-works.com>
parents: 1458
diff changeset
5 <h5>
1740
c12ba6573192 fixes initial state of repo counter on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1738
diff changeset
6 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> ${parent.breadcrumbs()} <span id="repo_count">0</span> ${_('repositories')}
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 </h5>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 %if c.rhodecode_user.username != 'default':
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 <ul class="links">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 <li>
1770
184557472f5c Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents: 1743
diff changeset
12 <span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 </li>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 </ul>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18 <!-- end box / title -->
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <div class="table">
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 % if c.groups:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 <table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 <thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
24 <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
25 <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
26 ##<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
27 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28 </thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
29
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 ## REPO GROUPS
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
32 % 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
33 <tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
34 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
35 <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
36 <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/>
1538
27be8f94c207 implements #226 repo groups available by path
Marcin Kuzminski <marcin@python-works.com>
parents: 1482
diff changeset
37 ${h.link_to(gr.name,url('repos_group_home',group_name=gr.group_name))}
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
40 <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
41 ##<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
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 % endfor
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 </table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
46 <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
47 % endif
1437
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
48 <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
49 <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
50 </div>
7a46d67c263c added welcome message if no repositories are present in current view
Marcin Kuzminski <marcin@python-works.com>
parents: 1426
diff changeset
51 <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
52 <thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
53 <tr>
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
54 <th class="left"></th>
1482
a39c0e5fca89 removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents: 1475
diff changeset
55 <th class="left">${_('Name')}</th>
a39c0e5fca89 removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents: 1475
diff changeset
56 <th class="left">${_('Description')}</th>
a39c0e5fca89 removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents: 1475
diff changeset
57 <th class="left">${_('Last change')}</th>
a39c0e5fca89 removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents: 1475
diff changeset
58 <th class="left">${_('Tip')}</th>
a39c0e5fca89 removed obsolete sort code
Marcin Kuzminski <marcin@python-works.com>
parents: 1475
diff changeset
59 <th class="left">${_('Owner')}</th>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
60 <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
61 <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
62 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
63 </thead>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
64 <tbody>
1743
db4852ed3413 fixed view for repos groups
Marcin Kuzminski <marcin@python-works.com>
parents: 1740
diff changeset
65 <%cnt=0%>
1740
c12ba6573192 fixes initial state of repo counter on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1738
diff changeset
66 %for cnt,repo in enumerate(c.repos_list,1):
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
67 <tr class="parity${cnt%2}">
1424
ac0c4e600426 removed obsolete class from quick menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1423
diff changeset
68 <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
69 <ul class="menu_items hidden">
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1667
diff changeset
70 <li style="border-top:1px solid #003367;margin-left:18px;padding-left:-99px"></li>
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
71 <li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
72 <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
73 <span class="icon">
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
74 <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
75 </span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
76 <span>${_('Summary')}</span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
77 </a>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
78 </li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
79 <li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
80 <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
81 <span class="icon">
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
82 <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
83 </span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
84 <span>${_('Changelog')}</span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
85 </a>
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 <li>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
88 <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
89 <span class="icon">
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
90 <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
91 </span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
92 <span>${_('Files')}</span>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
93 </a>
1738
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
94 </li>
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
95 <li>
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
96 <a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo['name'])}">
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
97 <span class="icon">
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
98 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" />
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
99 </span>
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
100 <span>${_('Fork')}</span>
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
101 </a>
1a2f10b368a9 added forking into quick menu on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
102 </li>
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
103 </ul>
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
104 </td>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
105 <td>
1423
241a5167c4e0 Added quick menu for each repo in main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 1403
diff changeset
106 ## 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
107 <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
108 %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
109 <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
110 %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
111 <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
112 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
113
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
114 ##PRIVATE/PUBLIC
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']['private']:
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="${_('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
117 %else:
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="${_('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
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 ##NAME
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
122 ${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
123 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
124 %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
125 <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
126 <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
127 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
128 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
129 %endif
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
130 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
131 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
132 ##DESCRIPTION
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
133 <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
134 ${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
135 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
136 ##LAST CHANGE
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 <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
139 ${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
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 <td>
1770
184557472f5c Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents: 1743
diff changeset
142 <div>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
143 %if repo['rev']>=0:
1770
184557472f5c Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents: 1743
diff changeset
144 <pre><a title="${h.tooltip('%s\n%s' % (repo['author'],repo['last_msg']))}" class="tooltip" href="${h.url('changeset_home',repo_name=repo['name'],revision=repo['tip'])}">${'r%s:%s' % (repo['rev'],h.short_id(repo['tip']))}</a></pre>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
145 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
146 ${_('No changesets yet')}
1770
184557472f5c Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents: 1743
diff changeset
147 %endif
184557472f5c Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents: 1743
diff changeset
148 </div>
1403
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
149 </td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
150 <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
151 <td>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
152 %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
153 <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
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 <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
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>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
159 %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
160 <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
161 %else:
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
162 <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
163 %endif:
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 </tr>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
166 %endfor
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
167 </tbody>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
168 </table>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
169 </div>
fc286aed92fe fixes #209, repos groups and index page now share same common page.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
170 </div>
1653
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
171 <script>
1740
c12ba6573192 fixes initial state of repo counter on main page
Marcin Kuzminski <marcin@python-works.com>
parents: 1738
diff changeset
172 YUD.get('repo_count').innerHTML = ${cnt};
1653
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
173 var nodes = YUQ('div.table tr td a.repo_name');
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
174 var target = 'q_filter';
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
175 var func = function(node){
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
176 return node.parentNode.parentNode.parentNode;
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
177 }
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
178 q_filter(target,nodes,func);
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1624
diff changeset
179 </script>