changeset 3402:58737dee17f1 beta

show pull request status, together with review status
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 25 Feb 2013 22:11:04 +0100
parents 5c310b7b01ce
children 07f4193083fd
files rhodecode/templates/pullrequests/pullrequest_show.html
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Mon Feb 25 21:27:52 2013 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Mon Feb 25 22:11:04 2013 +0100
@@ -7,7 +7,7 @@
 <%def name="breadcrumbs_links()">
     ${h.link_to(_(u'Home'),h.url('/'))}
     &raquo;
-    ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
+    ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
     &raquo;
     ${_('Pull request #%s') % c.pull_request.pull_request_id}
 </%def>
@@ -22,7 +22,12 @@
         %if c.pull_request.is_closed():
         <div style="padding:10px; font-size:22px;width:100%;text-align: center; color:#88D882">${_('Closed %s') % (h.age(c.pull_request.updated_on))} ${_('with status %s') % h.changeset_status_lbl(c.current_changeset_status)}</div>
         %endif
-    <h3>${_('Title')}: ${c.pull_request.title}</h3>
+    <h3>
+    %if c.pull_request.is_closed():
+        <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/>
+    %endif
+    <img src="${h.url('/images/icons/flag_status_%s.png' % str(c.pull_request.last_review_status))}" />    
+    ${_('Title')}: ${c.pull_request.title}</h3>
 
     <div class="form">
       <div id="summary" class="fields">