annotate rhodecode/templates/index.html @ 633:fcf599cd3404 beta

Move changes for git implementation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 24 Oct 2010 22:27:28 +0200
parents a1ec653f5f95
children fd63782c4426
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
55
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
1 ## -*- coding: utf-8 -*-
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
2 <%inherit file="base/base.html"/>
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
3 <%def name="title()">
619
a1ec653f5f95 #38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents: 579
diff changeset
4 ${_('Dashboard')} - ${c.rhodecode_name}
55
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
5 </%def>
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
6 <%def name="breadcrumbs()">
548
b75b77ef649d renamed hg_app to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
7 ${c.rhodecode_name}
55
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
8 </%def>
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
9 <%def name="page_nav()">
186
556473ba0399 fixed menu in home page, and added login html with forms that validates username and password.
Marcin Kuzminski <marcin@python-works.com>
parents: 157
diff changeset
10 ${self.menu('home')}
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
11 </%def>
55
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
12 <%def name="main()">
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
13 <%def name="get_sort(name)">
57
e96bc5a01490 Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents: 56
diff changeset
14 <%name_slug = name.lower().replace(' ','_') %>
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
15
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
16 %if name_slug == c.sort_slug:
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
17 %if c.sort_by.startswith('-'):
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
18 <a href="?sort=${name_slug}">${name}&uarr;</a>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
19 %else:
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
20 <a href="?sort=-${name_slug}">${name}&darr;</a>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
21 %endif:
57
e96bc5a01490 Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents: 56
diff changeset
22 %else:
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
23 <a href="?sort=${name_slug}">${name}</a>
56
bf1b64046c79 Added last change translation to 'time ago', added generation of enabled zip archives
Marcin Kuzminski <marcin@python-blog.com>
parents: 55
diff changeset
24 %endif
55
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
25 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
26
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
27 <div class="box">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
28 <!-- box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
29 <div class="title">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
30 <h5>${_('Dashboard')}</h5>
417
3ed2d46a2ca7 permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
31 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
32 <ul class="links">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
33 <li>
579
6d0474c7e645 more templates updates
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
34 <span>${h.link_to(_('ADD NEW REPOSITORY'),h.url('admin_settings_create_repository'))}</span>
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
35 </li>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
36 </ul>
380
ca54622e39a1 Added separate create repository views for non administrative users.
Marcin Kuzminski <marcin@python-works.com>
parents: 375
diff changeset
37 %endif
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
38 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
39 <!-- end box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
40 <div class="table">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
41 <table>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
42 <thead>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
43 <tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
44 <th class="left">${get_sort(_('Name'))}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
45 <th class="left">${get_sort(_('Description'))}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
46 <th class="left">${get_sort(_('Last change'))}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
47 <th class="left">${get_sort(_('Tip'))}</th>
633
fcf599cd3404 Move changes for git implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 619
diff changeset
48 <th class="left">${get_sort(_('Owner'))}</th>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
49 <th class="left">${_('RSS')}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
50 <th class="left">${_('Atom')}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
51 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
52 </thead>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
53 <tbody>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
54 %for cnt,repo in enumerate(c.repos_list):
374
6725742f029a reverted caching from index, it's buggy
Marcin Kuzminski <marcin@python-works.com>
parents: 373
diff changeset
55 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'):
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
56 <tr class="parity${cnt%2}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
57 <td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
58 %if repo['repo'].dbrepo.private:
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
59 <img class="icon" alt="${_('private')}" src="/images/icons/lock.png"/>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
60 %else:
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
61 <img class="icon" alt="${_('public')}" src="/images/icons/lock_open.png"/>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
62 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
63 ${h.link_to(repo['name'],
531
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
64 h.url('summary_home',repo_name=repo['name']))}
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
65 %if repo['repo'].dbrepo.fork:
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
66 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}">
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
67 <img class="icon" alt="${_('public')}"
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
68 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}"
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
69 src="/images/icons/arrow_divide.png"/></a>
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
70 %endif
6fc59ac322ca added info about forked repository in few places
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
71 </td>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
72 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
73 <td>${h.age(repo['last_change'])}</td>
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
74 <td>
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
75 %if repo['rev']>=0:
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
76 ${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
77 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
78 class_="tooltip",
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
79 tooltip_title=h.tooltip(repo['last_msg']))}
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
80 %else:
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
81 ${_('No changesets yet')}
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
82 %endif
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 447
diff changeset
83 </td>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
84 <td title="${repo['contact']}">${h.person(repo['contact'])}</td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
85 <td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
86 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
87 </td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
88 <td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
89 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
90 </td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
91 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
92 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
93 %endfor
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
94 </tbody>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
95 </table>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
96 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
97 </div>
55
e00dccb6f211 Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents: 0
diff changeset
98 </%def>