comparison rhodecode/templates/pullrequests/pullrequest_show.html @ 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 fe2bb88bf7ac
children d79f3505549e
comparison
equal deleted inserted replaced
3401:5c310b7b01ce 3402:58737dee17f1
5 </%def> 5 </%def>
6 6
7 <%def name="breadcrumbs_links()"> 7 <%def name="breadcrumbs_links()">
8 ${h.link_to(_(u'Home'),h.url('/'))} 8 ${h.link_to(_(u'Home'),h.url('/'))}
9 &raquo; 9 &raquo;
10 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))} 10 ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
11 &raquo; 11 &raquo;
12 ${_('Pull request #%s') % c.pull_request.pull_request_id} 12 ${_('Pull request #%s') % c.pull_request.pull_request_id}
13 </%def> 13 </%def>
14 14
15 <%def name="main()"> 15 <%def name="main()">
20 ${self.breadcrumbs()} 20 ${self.breadcrumbs()}
21 </div> 21 </div>
22 %if c.pull_request.is_closed(): 22 %if c.pull_request.is_closed():
23 <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> 23 <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>
24 %endif 24 %endif
25 <h3>${_('Title')}: ${c.pull_request.title}</h3> 25 <h3>
26 %if c.pull_request.is_closed():
27 <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/>
28 %endif
29 <img src="${h.url('/images/icons/flag_status_%s.png' % str(c.pull_request.last_review_status))}" />
30 ${_('Title')}: ${c.pull_request.title}</h3>
26 31
27 <div class="form"> 32 <div class="form">
28 <div id="summary" class="fields"> 33 <div id="summary" class="fields">
29 <div class="field"> 34 <div class="field">
30 <div class="label-summary"> 35 <div class="label-summary">