##// END OF EJS Templates
chore(mercurial): Fixed usage of str in generation of mercurial configs, and fixed largefiles call
chore(mercurial): Fixed usage of str in generation of mercurial configs, and fixed largefiles call

File last commit:

r5170:a77dd674 default
r5188:643e5e48 default
Show More
pullrequests.mako
183 lines | 6.1 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="/base/base.mako"/>
<%def name="title()">
templates: use a single helper to select activated menu entries in templates.
r4062 ${_('{} Pull Requests').format(c.repo_name)}
templating: use .mako as extensions for template files.
r1282 %if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
nav: bring back quick filter and cleanup titles
r3589 <%def name="breadcrumbs_links()"></%def>
templating: use .mako as extensions for template files.
r1282
<%def name="menu_bar_nav()">
${self.menu_items(active='repositories')}
</%def>
<%def name="menu_bar_subnav()">
${self.repo_menu(active='showpullrequest')}
</%def>
<%def name="main()">
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757
templating: use .mako as extensions for template files.
r1282 <div class="box">
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757 <div class="title">
pull-requests: added awaiting my review filter for users pull-requests....
r4690
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757 <ul class="button-links">
pull-requests: added awaiting my review filter for users pull-requests....
r4690 <li><a class="btn ${h.is_active('open', c.active)}" href="${h.route_path('pullrequest_show_all',repo_name=c.repo_name, _query={'source':0,'open':1})}">${_('Open')}</a></li>
<li><a class="btn ${h.is_active('my', c.active)}" href="${h.route_path('pullrequest_show_all',repo_name=c.repo_name, _query={'source':0,'my':1})}">${_('Created by me')}</a></li>
<li><a class="btn ${h.is_active('awaiting', c.active)}" href="${h.route_path('pullrequest_show_all',repo_name=c.repo_name, _query={'source':0,'awaiting_review':1})}">${_('Awaiting review')}</a></li>
<li><a class="btn ${h.is_active('awaiting_my', c.active)}" href="${h.route_path('pullrequest_show_all',repo_name=c.repo_name, _query={'source':0,'awaiting_my_review':1})}">${_('Awaiting my review')}</a></li>
<li><a class="btn ${h.is_active('closed', c.active)}" href="${h.route_path('pullrequest_show_all',repo_name=c.repo_name, _query={'source':0,'closed':1})}">${_('Closed')}</a></li>
<li><a class="btn ${h.is_active('source', c.active)}" href="${h.route_path('pullrequest_show_all',repo_name=c.repo_name, _query={'source':1})}">${_('From this repo')}</a></li>
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757 </ul>
<ul class="links">
% if c.rhodecode_user.username != h.DEFAULT_USER:
templating: use .mako as extensions for template files.
r1282 <li>
<span>
pull-requests: migrated code from pylons to pyramid
r1974 <a id="open_new_pull_request" class="btn btn-small btn-success" href="${h.route_path('pullrequest_new',repo_name=c.repo_name)}">
templating: use .mako as extensions for template files.
r1282 ${_('Open new Pull Request')}
</a>
</span>
</li>
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757 % endif
pull-requests: added quick filter to grid view.
r4055
<li>
<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">
<input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/>
</li>
</ul>
</div>
</li>
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757 </ul>
templating: use .mako as extensions for template files.
r1282
</div>
<div class="main-content-full-width">
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>
dan
pull-requests: fixed layout to be more similar to the designed one.
r3757
templating: use .mako as extensions for template files.
r1282 </div>
<script type="text/javascript">
$(document).ready(function() {
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766 var $pullRequestListTable = $('#pull_request_list_table');
templating: use .mako as extensions for template files.
r1282 // object list
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766 $pullRequestListTable.DataTable({
processing: true,
templating: use .mako as extensions for template files.
r1282 serverSide: true,
datagrids: save permanently the state if sorting for pull-request grids.
r4558 stateSave: true,
stateDuration: -1,
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766 ajax: {
"url": "${h.route_path('pullrequest_show_all_data', repo_name=c.repo_name)}",
"data": function (d) {
d.source = "${c.source}";
d.closed = "${c.closed}";
d.my = "${c.my}";
d.awaiting_review = "${c.awaiting_review}";
d.awaiting_my_review = "${c.awaiting_my_review}";
}
},
dom: 'rtp',
templating: use .mako as extensions for template files.
r1282 pageLength: ${c.visual.dashboard_items},
pull-requests: added awaiting my review filter for users pull-requests....
r4690 order: [[ 2, "desc" ]],
templating: use .mako as extensions for template files.
r1282 columns: [
pull-requests: added commit flow into pr listing tables
r5170 {
data: {
"_": "status",
"sort": "status"
}, title: "PR", className: "td-status", orderable: false
},
{
data: {
"_": "my_status",
"sort": "status"
}, title: "You", className: "td-status", orderable: false
},
{
data: {
"_": "name",
"sort": "name_raw"
}, title: "${_('Id')}", className: "td-componentname", "type": "num"
},
{
data: {
"_": "title",
"sort": "title"
}, title: "${_('Title')}", className: "td-description"
},
{
data: {
"_": "pr_flow",
"sort": "pr_flow"
}, title: "${_('Flow')}", className: "td-componentname"
},
{
data: {
"_": "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"
}
templating: use .mako as extensions for template files.
r1282 ],
language: {
paginate: DEFAULT_GRID_PAGINATION,
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766 sProcessing: _gettext('loading...'),
templating: use .mako as extensions for template files.
r1282 emptyTable: _gettext("No pull requests available yet.")
},
"drawCallback": function( settings, json ) {
timeagoActivate();
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 tooltipActivate();
templating: use .mako as extensions for template files.
r1282 },
"createdRow": function ( row, data, index ) {
if (data['closed']) {
dan
pull-requests: add indication of state change in list of pull-requests and actually show them in the list.
r3816 $(row).addClass('closed');
}
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
templating: use .mako as extensions for template files.
r1282 }
});
pull-requests: moved the listing of pull requests for repo into pyramid....
r1766
$pullRequestListTable.on('xhr.dt', function(e, settings, json, xhr){
$pullRequestListTable.css('opacity', 1);
});
$pullRequestListTable.on('preXhr.dt', function(e, settings, data){
$pullRequestListTable.css('opacity', 0.3);
});
pull-requests: added quick filter to grid view.
r4055 // filter
$('#q_filter').on('keyup',
$.debounce(250, function() {
$pullRequestListTable.DataTable().search(
$('#q_filter').val()
).draw();
})
);
templating: use .mako as extensions for template files.
r1282 });
</script>
</%def>