Mercurial > kallithea
annotate rhodecode/templates/pullrequests/pullrequest_show_all.html @ 3609:2ea981f9da79 beta
templates: enforce more consistency by being less flexible in templates
All pages must define page_nav.
context_bar may only be used on relevant repository pages, and the 'current'
parameter is mandatory.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 26 Mar 2013 23:21:40 +0100 |
parents | 1f334a68d057 |
children | 8a8a559eaf95 |
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()"> |
3582
1f334a68d057
improved title consistency
Marcin Kuzminski <marcin@python-works.com>
parents:
3580
diff
changeset
|
4 ${_('%s Pull Requests') % c.repo_name} · ${c.rhodecode_name} |
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()"> |
3532 | 8 ${_('Pull requests')} |
2440
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 </%def> |
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 |
3609
2ea981f9da79
templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
11 <%def name="page_nav()"> |
2ea981f9da79
templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
12 ${self.menu('repositories')} |
2ea981f9da79
templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
13 </%def> |
2ea981f9da79
templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents:
3582
diff
changeset
|
14 |
2440
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 <%def name="main()"> |
3527
87c97fcea029
Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents:
3392
diff
changeset
|
16 ${self.context_bar('showpullrequest')} |
2440
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(): |
3263
1095b67f8054
show status of pull requests and if it's closed
Marcin Kuzminski <marcin@python-works.com>
parents:
3259
diff
changeset
|
27 <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/> |
3259
99cb0cf75a4c
some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
28 %endif |
3263
1095b67f8054
show status of pull requests and if it's closed
Marcin Kuzminski <marcin@python-works.com>
parents:
3259
diff
changeset
|
29 <img src="${h.url('/images/icons/flag_status_%s.png' % str(pr.last_review_status))}" /> |
3259
99cb0cf75a4c
some formatting on list of pull-requests
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
30 <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
|
31 ${_('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
|
32 </a> |
2586
a5e32ed7f790
little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents:
2492
diff
changeset
|
33 </h4> |
a5e32ed7f790
little love for pull-requests list
Marcin Kuzminski <marcin@python-works.com>
parents:
2492
diff
changeset
|
34 <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
|
35 <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
|
36 <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
|
37 </div> |
2440
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
38 %endfor |
2478
8eab81115660
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2440
diff
changeset
|
39 |
2440
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
40 </div> |
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
41 |
1bc579bcd67a
- pull request generates overview based on it's params
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
42 </%def> |