##// END OF EJS Templates
#574 Show pull request status also in shortlog (if any)
marcink -
r2884:a16f9a76 beta
parent child Browse files
Show More
@@ -53,6 +53,8 b' class ShortlogController(BaseRepoControl'
53 53
54 54 c.repo_changesets = RepoPage(c.rhodecode_repo, page=p,
55 55 items_per_page=size, url=url_generator)
56 page_revisions = [x.raw_id for x in list(c.repo_changesets)]
57 c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
56 58
57 59 if not c.repo_changesets:
58 60 return redirect(url('summary_home', repo_name=repo_name))
@@ -78,6 +78,8 b' class SummaryController(BaseRepoControll'
78 78
79 79 c.repo_changesets = RepoPage(c.rhodecode_repo, page=1,
80 80 items_per_page=10, url=url_generator)
81 page_revisions = [x.raw_id for x in list(c.repo_changesets)]
82 c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
81 83
82 84 if self.rhodecode_user.username == 'default':
83 85 # for default(anonymous) user we don't need to pass credentials
@@ -12,7 +12,22 b''
12 12 %for cnt,cs in enumerate(c.repo_changesets):
13 13 <tr class="parity${cnt%2}">
14 14 <td>
15 <div><pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}">r${cs.revision}:${h.short_id(cs.raw_id)}</a></pre></div>
15 <div>
16 <div class="changeset-status-container">
17 %if c.statuses.get(cs.raw_id):
18 <div class="changeset-status-ico">
19 %if c.statuses.get(cs.raw_id)[2]:
20 <a class="tooltip" title="${_('Click to open associated pull request')}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
21 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
22 </a>
23 %else:
24 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
25 %endif
26 </div>
27 %endif
28 </div>
29 <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}">r${cs.revision}:${h.short_id(cs.raw_id)}</a></pre>
30 </div>
16 31 </td>
17 32 <td>
18 33 ${h.link_to(h.truncate(cs.message,50) or _('No commit message'),
General Comments 0
You need to be logged in to leave comments. Login now