##// END OF EJS Templates
killed some alien JS code that got into pullrequest_data template
marcink -
r3732:8f3f4b2e beta
parent child Browse files
Show More
@@ -1,38 +1,24 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2
2
3 % for pr in c.pullrequests_pager:
3 % for pr in c.pullrequests_pager:
4 <div class="pr ${'pr-closed' if pr.is_closed() else ''}">
4 <div class="pr ${'pr-closed' if pr.is_closed() else ''}">
5 <div class="pr-title">
5 <div class="pr-title">
6 %if pr.is_closed():
6 %if pr.is_closed():
7 <div style="float:left;margin: -4px 0px;"><span class="pr-closed-tag">${_('Closed')}</span></div>
7 <div style="float:left;margin: -4px 0px;"><span class="pr-closed-tag">${_('Closed')}</span></div>
8 %endif
8 %endif
9 <img src="${h.url('/images/icons/flag_status_%s.png' % str(pr.last_review_status))}" />
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)}">
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))}
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>
12 </a>
13 </div>
13 </div>
14 <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5>
14 <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5>
15 <div>${pr.description}</div>
15 <div>${pr.description}</div>
16 </div>
16 </div>
17 % endfor
17 % endfor
18
18
19 <div class="pagination-wh pagination-left">
19
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 <div class="notification-paginator">
20 <div class="notification-paginator">
33 <div class="pagination-wh pagination-left">
21 <div class="pagination-wh pagination-left">
34 ${c.pullrequests_pager.pager('$link_previous ~2~ $link_next')}
22 ${c.pullrequests_pager.pager('$link_previous ~2~ $link_next')}
35 </div>
23 </div>
36 </div>
24 </div> No newline at end of file
37
38 </div>
General Comments 0
You need to be logged in to leave comments. Login now