Mercurial > kallithea
annotate rhodecode/templates/pullrequests/pullrequest_show_all.html @ 3652:8a8a559eaf95 beta
pullrequests: state "closed" explicitly
A closed-as-in-locked icon did not communicate the closed-as-in-inactive state
clearly.
Instead we say "Closed" and make the text greyed out. Not pretty but more
efficient.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 03 Apr 2013 15:56:12 +0200 |
parents | 2ea981f9da79 |
children | 9d2db665ef31 |
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: |
3652
8a8a559eaf95
pullrequests: state "closed" explicitly
Mads Kiilerich <madski@unity3d.com>
parents:
3609
diff
changeset
|
24 <div class="${'closed' if pr.is_closed() else ''}"> |
8a8a559eaf95
pullrequests: state "closed" explicitly
Mads Kiilerich <madski@unity3d.com>
parents:
3609
diff
changeset
|
25 <h4 style="border:0px;padding:0px"> |
3263
1095b67f8054
show status of pull requests and if it's closed
Marcin Kuzminski <marcin@python-works.com>
parents:
3259
diff
changeset
|
26 <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
|
27 <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
|
28 ${_('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
|
29 </a> |
3652
8a8a559eaf95
pullrequests: state "closed" explicitly
Mads Kiilerich <madski@unity3d.com>
parents:
3609
diff
changeset
|
30 %if pr.is_closed(): |
8a8a559eaf95
pullrequests: state "closed" explicitly
Mads Kiilerich <madski@unity3d.com>
parents:
3609
diff
changeset
|
31 (${_('Closed')}) |
8a8a559eaf95
pullrequests: state "closed" explicitly
Mads Kiilerich <madski@unity3d.com>
parents:
3609
diff
changeset
|
32 %endif |
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> |