Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
3675:7a5b11c23288 | 3676:9d2db665ef31 |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 | |
3 % for pr in c.pullrequests_pager: | |
4 <div class="pr ${'pr-closed' if pr.is_closed() else ''}"> | |
5 <div class="pr-title"> | |
6 %if pr.is_closed(): | |
7 <div style="float:left;margin: -4px 0px;"><span class="pr-closed-tag">${_('Closed')}</span></div> | |
8 %endif | |
9 <img src="${h.url('/images/icons/flag_status_%s.png' % str(pr.last_review_status))}" /> | |
10 <a href="${h.url('pullrequest_show',repo_name=c.repo_name,pull_request_id=pr.pull_request_id)}"> | |
11 ${_('Pull request #%s opened by %s on %s') % (pr.pull_request_id, pr.author.full_name, h.fmt_date(pr.created_on))} | |
12 </a> | |
13 </div> | |
14 <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5> | |
15 <div>${pr.description}</div> | |
16 </div> | |
17 % endfor | |
18 | |
19 <div class="pagination-wh pagination-left"> | |
20 <script type="text/javascript"> | |
21 YUE.onDOMReady(function(){ | |
22 YUE.delegate("pullrequests","click",function(e, matchedEl, container){ | |
23 ypjax(e.target.href,"pullrequests",function(){ | |
24 show_more_event(); | |
25 tooltip_activate(); | |
26 show_changeset_tooltip(); | |
27 }); | |
28 YUE.preventDefault(e); | |
29 },'.pager_link'); | |
30 }); | |
31 </script> | |
32 ${c.pullrequests_pager.pager('$link_previous ~2~ $link_next')} | |
33 </div> |