##// END OF EJS Templates
chore(tests): fixed some broken bad tests
chore(tests): fixed some broken bad tests

File last commit:

r5170:a77dd674 default
r5225:9f604a24 default
Show More
my_account_pullrequests.mako
170 lines | 5.9 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / my_account / my_account_pullrequests.mako
templating: use .mako as extensions for template files.
r1282 <%namespace name="base" file="/base/base.mako"/>
<div class="panel panel-default">
pull-requests: added awaiting my review filter for users pull-requests....
r4690 <div class="panel-heading">
<h3 class="panel-title">${_('Pull Requests You Participate In')}</h3>
</div>
pull-requests: added filters to my account pull requests page.
r4318
pull-requests: added awaiting my review filter for users pull-requests....
r4690 <div class="panel-body panel-body-min-height">
<div class="title">
pull-requests: added filters to my account pull requests page.
r4318 <ul class="button-links">
pull-requests: added awaiting my review filter for users pull-requests....
r4690 <li><a class="btn ${h.is_active('all', c.selected_filter)}"
href="${h.route_path('my_account_pullrequests', _query={})}">
${_('Open')}
</a>
</li>
<li><a class="btn ${h.is_active('all_closed', c.selected_filter)}"
href="${h.route_path('my_account_pullrequests', _query={'closed':1})}">
${_('All + Closed')}
</a>
</li>
<li><a class="btn ${h.is_active('awaiting_my_review', c.selected_filter)}"
href="${h.route_path('my_account_pullrequests', _query={'awaiting_my_review':1})}">
${_('Awaiting my review')}
</a>
</li>
pull-requests: added filters to my account pull requests page.
r4318 </ul>
<div class="grid-quick-filter">
<ul class="grid-filter-box">
<li class="grid-filter-box-icon">
<i class="icon-search"></i>
</li>
<li class="grid-filter-box-input">
pull-requests: added awaiting my review filter for users pull-requests....
r4690 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter"
placeholder="${_('quick filter...')}" value=""/>
pull-requests: added filters to my account pull requests page.
r4318 </li>
</ul>
</div>
pull-requests: added awaiting my review filter for users pull-requests....
r4690 </div>
templating: use .mako as extensions for template files.
r1282
tables: unified tables for main pages of rhodecode repo pages.
r4511 <table id="pull_request_list_table" class="rctable table-bordered"></table>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
dan
my-account: migrated left over controller functions into pyramid views....
r1892 <script type="text/javascript">
pull-requests: added filters to my account pull requests page.
r4318 $(document).ready(function () {
dan
my-account: migrated left over controller functions into pyramid views....
r1892
pull-requests: added filters to my account pull requests page.
r4318 var $pullRequestListTable = $('#pull_request_list_table');
templating: use .mako as extensions for template files.
r1282
dan
my-account: migrated left over controller functions into pyramid views....
r1892 // participating object list
$pullRequestListTable.DataTable({
pull-requests: added filters to my account pull requests page.
r4318 processing: true,
serverSide: true,
datagrids: save permanently the state if sorting for pull-request grids.
r4558 stateSave: true,
stateDuration: -1,
pull-requests: added filters to my account pull requests page.
r4318 ajax: {
"url": "${h.route_path('my_account_pullrequests_data')}",
"data": function (d) {
d.closed = "${c.closed}";
pull-requests: added awaiting my review filter for users pull-requests....
r4690 d.awaiting_my_review = "${c.awaiting_my_review}";
pull-requests: added filters to my account pull requests page.
r4318 },
"dataSrc": function (json) {
return json.data;
}
},
dom: 'rtp',
pageLength: ${c.visual.dashboard_items},
pull-requests: added awaiting my review filter for users pull-requests....
r4690 order: [[2, "desc"]],
pull-requests: added filters to my account pull requests page.
r4318 columns: [
{
data: {
"_": "status",
"sort": "status"
pull-requests: added awaiting my review filter for users pull-requests....
r4690 }, title: "PR", className: "td-status", orderable: false
},
{
data: {
"_": "my_status",
"sort": "status"
}, title: "You", className: "td-status", orderable: false
pull-requests: added filters to my account pull requests page.
r4318 },
{
data: {
"_": "name",
"sort": "name_raw"
}, title: "${_('Id')}", className: "td-componentname", "type": "num"
},
{
data: {
"_": "title",
"sort": "title"
}, title: "${_('Title')}", className: "td-description"
},
{
data: {
pull-requests: added commit flow into pr listing tables
r5170 "_": "pr_flow",
"sort": "pr_flow"
}, title: "${_('Flow')}", className: "td-componentname"
},
{
data: {
pull-requests: added filters to my account pull requests page.
r4318 "_": "author",
"sort": "author_raw"
}, title: "${_('Author')}", className: "td-user", orderable: false
},
{
data: {
"_": "comments",
"sort": "comments_raw"
}, title: "", className: "td-comments", orderable: false
},
{
data: {
"_": "updated_on",
"sort": "updated_on_raw"
}, title: "${_('Last Update')}", className: "td-time"
pull-requests: make my account and repo pr table more consistent.
r4512 },
{
data: {
"_": "target_repo",
"sort": "target_repo"
}, title: "${_('Target Repo')}", className: "td-targetrepo", orderable: false
},
pull-requests: added filters to my account pull requests page.
r4318 ],
language: {
templating: use .mako as extensions for template files.
r1282 paginate: DEFAULT_GRID_PAGINATION,
dan
my-account: migrated left over controller functions into pyramid views....
r1892 sProcessing: _gettext('loading...'),
templating: use .mako as extensions for template files.
r1282 emptyTable: _gettext("There are currently no open pull requests requiring your participation.")
pull-requests: added filters to my account pull requests page.
r4318 },
"drawCallback": function (settings, json) {
timeagoActivate();
tooltipActivate();
},
"createdRow": function (row, data, index) {
if (data['closed']) {
$(row).addClass('closed');
}
if (data['owned']) {
$(row).addClass('owned');
}
datagrids: save permanently the state if sorting for pull-request grids.
r4558 },
"stateSaveParams": function (settings, data) {
data.search.search = ""; // Don't save search
data.start = 0; // don't save pagination
pull-requests: added filters to my account pull requests page.
r4318 }
templating: use .mako as extensions for template files.
r1282 });
pull-requests: added filters to my account pull requests page.
r4318 $pullRequestListTable.on('xhr.dt', function (e, settings, json, xhr) {
dan
my-account: migrated left over controller functions into pyramid views....
r1892 $pullRequestListTable.css('opacity', 1);
});
pull-requests: added filters to my account pull requests page.
r4318 $pullRequestListTable.on('preXhr.dt', function (e, settings, data) {
dan
my-account: migrated left over controller functions into pyramid views....
r1892 $pullRequestListTable.css('opacity', 0.3);
});
pull-requests: added filters to my account pull requests page.
r4318
datagrids: save permanently the state if sorting for pull-request grids.
r4558
pull-requests: added filters to my account pull requests page.
r4318 // filter
$('#q_filter').on('keyup',
$.debounce(250, function () {
$pullRequestListTable.DataTable().search(
$('#q_filter').val()
).draw();
})
);
templating: use .mako as extensions for template files.
r1282 });
pull-requests: added filters to my account pull requests page.
r4318
templating: use .mako as extensions for template files.
r1282 </script>