annotate rhodecode/templates/pullrequests/pullrequest_show_all.html @ 3259:99cb0cf75a4c beta

some formatting on list of pull-requests
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 29 Jan 2013 22:49:04 +0100
parents d5e42c00f3c1
children 1095b67f8054
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2440
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 <%inherit file="/base/base.html"/>
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <%def name="title()">
2608
58c529332e7e Added option to close pull requests, in future that will be close & merge
Marcin Kuzminski <marcin@python-works.com>
parents: 2586
diff changeset
4 ${c.repo_name} ${_('all pull requests')}
2440
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 </%def>
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 <%def name="breadcrumbs_links()">
2492
79818f546538 i18n 'Home' in breadcrumbs
Takumi IINO <trot.thunder@gmail.com>
parents: 2478
diff changeset
8 ${h.link_to(_(u'Home'),h.url('/'))}
2440
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 &raquo;
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 &raquo;
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 ${_('All pull requests')}
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 </%def>
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 <%def name="main()">
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 <div class="box">
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18 <!-- box / title -->
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <div class="title">
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 ${self.breadcrumbs()}
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 </div>
2478
8eab81115660 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2440
diff changeset
22
2440
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 %for pr in c.pull_requests:
2586
a5e32ed7f790 little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
24 <div>
3259
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
25 <h4 style="border:0px;padding:0px">
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
26 %if pr.is_closed():
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
27 <img src="${h.url('/images/icons/tick.png')}" alt="${_('Closed')}" />
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
28 %endif
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
29 <a href="${h.url('pullrequest_show',repo_name=c.repo_name,pull_request_id=pr.pull_request_id)}">
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
30 ${_('Pull request #%s opened by %s on %s') % (pr.pull_request_id, pr.author.full_name, h.fmt_date(pr.created_on))}
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
31 </a>
2586
a5e32ed7f790 little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
32 </h4>
a5e32ed7f790 little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
33 <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5>
a5e32ed7f790 little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
34 <div style="padding:0px 24px">${pr.description}</div>
3259
99cb0cf75a4c some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
35 <div style="border-bottom: 1px solid #DDD;margin:10px 20px;padding-bottom:10px"></div>
2586
a5e32ed7f790 little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents: 2492
diff changeset
36 </div>
2440
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
37 %endfor
2478
8eab81115660 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2440
diff changeset
38
2440
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39 </div>
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
40
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
41 <script type="text/javascript"></script>
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
42
1bc579bcd67a - pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
43 </%def>