diff rhodecode/templates/pullrequests/pullrequest_show_all.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 8a8a559eaf95
children 072a37c44f58
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest_show_all.html	Thu Apr 04 20:39:26 2013 +0200
+++ b/rhodecode/templates/pullrequests/pullrequest_show_all.html	Thu Apr 04 22:33:41 2013 +0200
@@ -14,29 +14,13 @@
 
 <%def name="main()">
 ${self.context_bar('showpullrequest')}
+
 <div class="box">
     <!-- box / title -->
     <div class="title">
         ${self.breadcrumbs()}
     </div>
-
-    %for pr in c.pull_requests:
-        <div class="${'closed' if pr.is_closed() else ''}">
-          <h4 style="border:0px;padding:0px">
-            <img src="${h.url('/images/icons/flag_status_%s.png' % str(pr.last_review_status))}" />
-            <a href="${h.url('pullrequest_show',repo_name=c.repo_name,pull_request_id=pr.pull_request_id)}">
-            ${_('Pull request #%s opened by %s on %s') % (pr.pull_request_id, pr.author.full_name, h.fmt_date(pr.created_on))}
-            </a>
-            %if pr.is_closed():
-              (${_('Closed')})
-            %endif
-          </h4>
-          <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5>
-          <div style="padding:0px 24px">${pr.description}</div>
-          <div style="border-bottom: 1px solid #DDD;margin:10px 20px;padding-bottom:10px"></div>
-        </div>
-    %endfor
-
+    ${c.pullrequest_data}
 </div>
 
 </%def>