##// END OF EJS Templates
system-info: added UUID placeholder for generating platform unique identifiers.
system-info: added UUID placeholder for generating platform unique identifiers.

File last commit:

r1084:84545e70 default
r1115:6e32b207 default
Show More
my_account_pullrequests.html
78 lines | 3.0 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">
pull-requests: redo my account pull request page with datagrid. Fixes #4297...
r1084 <div class="panel-heading">
<h3 class="panel-title">${_('Pull Requests You Participate In')}: ${c.records_total_participate}</h3>
project: added all source files and assets
r1 </div>
pull-requests: redo my account pull request page with datagrid. Fixes #4297...
r1084 <div class="panel-body">
<table id="pull_request_list_table_participate" class="display"></table>
project: added all source files and assets
r1 </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 });
pull-requests: redo my account pull request page with datagrid. Fixes #4297...
r1084 $(document).ready(function() {
var columnsDefs = [
{ data: {"_": "status",
"sort": "status"}, title: "", className: "td-status", orderable: false},
{ data: {"_": "target_repo",
"sort": "target_repo"}, title: "${_('Target Repo')}", className: "td-targetrepo", orderable: false},
{ data: {"_": "name",
"sort": "name_raw"}, title: "${_('Name')}", className: "td-componentname", "type": "num" },
{ data: {"_": "author",
"sort": "author_raw"}, title: "${_('Author')}", className: "td-user", orderable: false },
{ data: {"_": "title",
"sort": "title"}, title: "${_('Title')}", className: "td-description" },
{ data: {"_": "comments",
"sort": "comments_raw"}, title: "", className: "td-comments", orderable: false},
{ data: {"_": "updated_on",
"sort": "updated_on_raw"}, title: "${_('Last Update')}", className: "td-time" }
];
ux: bringing my account pull request list into the great future #4038
r245
pull-requests: redo my account pull request page with datagrid. Fixes #4297...
r1084 // participating object list
$('#pull_request_list_table_participate').DataTable({
data: ${c.data_participate|n},
processing: true,
serverSide: true,
deferLoading: ${c.records_total_participate},
ajax: "",
dom: 'tp',
pageLength: ${c.visual.dashboard_items},
order: [[ 2, "desc" ]],
columns: columnsDefs,
language: {
paginate: DEFAULT_GRID_PAGINATION,
emptyTable: _gettext("There are currently no open pull requests requiring your participation.")
},
"drawCallback": function( settings, json ) {
timeagoActivate();
},
"createdRow": function ( row, data, index ) {
if (data['closed']) {
$(row).addClass('closed');
}
if (data['owned']) {
$(row).addClass('owned');
}
}
});
ux: bringing my account pull request list into the great future #4038
r245 });
project: added all source files and assets
r1 </script>