Mercurial > kallithea
annotate rhodecode/templates/pullrequests/pullrequest_data.html @ 3676:9d2db665ef31 beta
pagination in pull-requests page + UI
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 04 Apr 2013 22:33:41 +0200 |
parents | |
children | 3c79c197e95d |
rev | line source |
---|---|
3676
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 % for pr in c.pullrequests_pager: |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <div class="pr ${'pr-closed' if pr.is_closed() else ''}"> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <div class="pr-title"> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 %if pr.is_closed(): |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 <div style="float:left;margin: -4px 0px;"><span class="pr-closed-tag">${_('Closed')}</span></div> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 %endif |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 <img src="${h.url('/images/icons/flag_status_%s.png' % str(pr.last_review_status))}" /> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 <a href="${h.url('pullrequest_show',repo_name=c.repo_name,pull_request_id=pr.pull_request_id)}"> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 ${_('Pull request #%s opened by %s on %s') % (pr.pull_request_id, pr.author.full_name, h.fmt_date(pr.created_on))} |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 </a> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
13 </div> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 <div>${pr.description}</div> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 </div> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 % endfor |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <div class="pagination-wh pagination-left"> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 <script type="text/javascript"> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 YUE.onDOMReady(function(){ |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 YUE.delegate("pullrequests","click",function(e, matchedEl, container){ |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 ypjax(e.target.href,"pullrequests",function(){ |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 show_more_event(); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 tooltip_activate(); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 show_changeset_tooltip(); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 }); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 YUE.preventDefault(e); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
29 },'.pager_link'); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
30 }); |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
31 </script> |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 ${c.pullrequests_pager.pager('$link_previous ~2~ $link_next')} |
9d2db665ef31
pagination in pull-requests page + UI
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 </div> |