##// END OF EJS Templates
packaging: Backport bower support utilities...
packaging: Backport bower support utilities To support nixos-16.03 the utilities to build bower components are backported inside of this PR. Once we switch to the new stable branch, we should be able to drop these pieces again.

File last commit:

r671:f630dd05 default
r725:57489056 default
Show More
my_account_pullrequests.html
155 lines | 6.5 KiB | text/html | HtmlLexer
/ rhodecode / templates / admin / my_account / my_account_pullrequests.html
ux: bringing my account pull request list into the great future #4038
r245 <%namespace name="base" file="/base/base.html"/>
project: added all source files and assets
r1
<div class="panel panel-default">
<div class="panel-body">
%if c.show_closed:
${h.checkbox('show_closed',checked="checked", label=_('Show Closed Pull Requests'))}
%else:
${h.checkbox('show_closed',label=_('Show Closed Pull Requests'))}
%endif
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
pr: adding pr count to user pull request tables fixes #4160
r671 <h3 class="panel-title">${_('Pull Requests You Opened')}: ${len(c.my_pull_requests)}</h3>
project: added all source files and assets
r1 </div>
<div class="panel-body">
<div class="pullrequestlist">
%if c.my_pull_requests:
ux: bringing my account pull request list into the great future #4038
r245 <table class="rctable">
<thead>
<th class="td-status"></th>
<th>${_('Target Repo')}</th>
<th>${_('Author')}</th>
<th></th>
<th>${_('Title')}</th>
pr: adding last updated column to user pull request list, fixes #4162
r668 <th class="td-time">${_('Last Update')}</th>
ux: bringing my account pull request list into the great future #4038
r245 <th></th>
</thead>
project: added all source files and assets
r1 %for pull_request in c.my_pull_requests:
ux: bringing my account pull request list into the great future #4038
r245 <tr class="${'closed' if pull_request.is_closed() else ''} prwrapper">
<td class="td-status">
project: added all source files and assets
r1 <div class="${'flag_status %s' % pull_request.calculated_review_status()} pull-left"></div>
ux: bringing my account pull request list into the great future #4038
r245 </td>
styling: tigtening up my account pull request tables
r467 <td class="truncate-wrap td-componentname">
<div class="truncate">
${h.link_to(pull_request.target_repo.repo_name,h.url('summary_home',repo_name=pull_request.target_repo.repo_name))}
</div>
ux: bringing my account pull request list into the great future #4038
r245 </td>
<td class="user">
${base.gravatar_with_user(pull_request.author.email, 16)}
</td>
<td class="td-message expand_commit" data-pr-id="m${pull_request.pull_request_id}" title="${_('Expand commit message')}">
<div class="show_more_col">
<i class="show_more"></i>&nbsp;
project: added all source files and assets
r1 </div>
ux: bringing my account pull request list into the great future #4038
r245 </td>
<td class="mid td-description">
<div class="log-container truncate-wrap">
<div class="message truncate" id="c-m${pull_request.pull_request_id}"><a href="${h.url('pullrequest_show',repo_name=pull_request.target_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">#${pull_request.pull_request_id}: ${pull_request.title}</a>\
%if pull_request.is_closed():
&nbsp;(${_('Closed')})\
%endif
<br/>${pull_request.description}</div>
</div>
</td>
<td class="td-time">
pr: adding last updated column to user pull request list, fixes #4162
r668 ${h.age_component(pull_request.updated_on)}
ux: bringing my account pull request list into the great future #4038
r245 </td>
<td class="td-action repolist_actions">
${h.secure_form(url('pullrequest_delete', repo_name=pull_request.target_repo.repo_name, pull_request_id=pull_request.pull_request_id),method='delete')}
${h.submit('remove_%s' % pull_request.pull_request_id, _('Delete'),
class_="btn btn-link btn-danger",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")}
${h.end_form()}
</td>
</tr>
project: added all source files and assets
r1 %endfor
ux: bringing my account pull request list into the great future #4038
r245 </table>
project: added all source files and assets
r1 %else:
<h2><span class="empty_data">${_('You currently have no open pull requests.')}</span></h2>
%endif
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
pr: adding pr count to user pull request tables fixes #4160
r671 <h3 class="panel-title">${_('Pull Requests You Participate In')}: ${len(c.participate_in_pull_requests)}</h3>
project: added all source files and assets
r1 </div>
<div class="panel-body">
<div class="pullrequestlist">
%if c.participate_in_pull_requests:
ux: bringing my account pull request list into the great future #4038
r245 <table class="rctable">
<thead>
<th class="td-status"></th>
<th>${_('Target Repo')}</th>
<th>${_('Author')}</th>
<th></th>
<th>${_('Title')}</th>
pr: adding last updated column to user pull request list, fixes #4162
r668 <th class="td-time">${_('Last Update')}</th>
ux: bringing my account pull request list into the great future #4038
r245 </thead>
project: added all source files and assets
r1 %for pull_request in c.participate_in_pull_requests:
ux: bringing my account pull request list into the great future #4038
r245 <tr class="${'closed' if pull_request.is_closed() else ''} prwrapper">
<td class="td-status">
<div class="${'flag_status %s' % pull_request.calculated_review_status()} pull-left"></div>
</td>
styling: tigtening up my account pull request tables
r467 <td class="truncate-wrap td-componentname">
<div class="truncate">
${h.link_to(pull_request.target_repo.repo_name,h.url('summary_home',repo_name=pull_request.target_repo.repo_name))}
</div>
ux: bringing my account pull request list into the great future #4038
r245 </td>
<td class="user">
${base.gravatar_with_user(pull_request.author.email, 16)}
</td>
<td class="td-message expand_commit" data-pr-id="p${pull_request.pull_request_id}" title="${_('Expand commit message')}">
<div class="show_more_col">
<i class="show_more"></i>&nbsp;
</div>
</td>
<td class="mid td-description">
<div class="log-container truncate-wrap">
<div class="message truncate" id="c-p${pull_request.pull_request_id}"><a href="${h.url('pullrequest_show',repo_name=pull_request.target_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">#${pull_request.pull_request_id}: ${pull_request.title}</a>\
%if pull_request.is_closed():
&nbsp;(${_('Closed')})\
%endif
<br/>${pull_request.description}</div>
</div>
</td>
<td class="td-time">
pr: adding last updated column to user pull request list, fixes #4162
r668 ${h.age_component(pull_request.updated_on)}
ux: bringing my account pull request list into the great future #4038
r245 </td>
</tr>
project: added all source files and assets
r1 %endfor
ux: bringing my account pull request list into the great future #4038
r245 </table>
project: added all source files and assets
r1 %else:
ux: bringing my account pull request list into the great future #4038
r245 <h2 class="empty_data">${_('There are currently no open pull requests requiring your participation.')}</h2>
project: added all source files and assets
r1 %endif
</div>
</div>
</div>
<script>
$('#show_closed').on('click', function(e){
if($(this).is(":checked")){
window.location = "${h.url('my_account_pullrequests', pr_show_closed=1)}";
}
else{
window.location = "${h.url('my_account_pullrequests')}";
}
ux: bringing my account pull request list into the great future #4038
r245 });
$('.expand_commit').on('click',function(e){
var target_expand = $(this);
var cid = target_expand.data('prId');
if (target_expand.hasClass('open')){
$('#c-'+cid).css({'height': '2.75em', 'text-overflow': 'ellipsis', 'overflow':'hidden'});
target_expand.removeClass('open');
}
else {
$('#c-'+cid).css({'height': 'auto', 'text-overflow': 'initial', 'overflow':'visible'});
target_expand.addClass('open');
}
});
project: added all source files and assets
r1 </script>