##// END OF EJS Templates
celery: Reorder celery imports to fix case where celery tasks were being...
celery: Reorder celery imports to fix case where celery tasks were being registered before celery config was setup. Added comments to make this clear so we don't chase this problem in the future until it is refactored

File last commit:

r467:30475ba8 default
r628:4d980275 default
Show More
my_account_pullrequests.html
157 lines | 6.4 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">
<h3 class="panel-title">${_('Pull Requests You Opened')}</h3>
</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>
<th class="td-time">${_('Opened On')}</th>
<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">
${h.age_component(pull_request.created_on)}
</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">
<h3 class="panel-title">${_('Pull Requests You Participate In')}</h3>
</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>
<th class="td-time">${_('Opened On')}</th>
</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">
${h.age_component(pull_request.created_on)}
</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>