##// END OF EJS Templates
search: add support for elastic search 6...
search: add support for elastic search 6 - elasticsearch new query lang and searcher - much more advanced query lang - added context aware search in repository groups, repository, commits, files view - optimized quick search bar speed when using full text search - added option to increase hits per file number from query URL using max_lines - search results can be now marked inside a text file using ?mark=HIGHLIGHT_TEXT added to the url

File last commit:

r2726:a9ece9dd default
r3319:b8fd1d7a default
Show More
forks.mako
106 lines | 2.9 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 ## -*- coding: utf-8 -*-
<%inherit file="/base/base.mako"/>
<%def name="title()">
${_('%s Forks') % c.repo_name}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<%def name="breadcrumbs_links()">
${_('Forks')}
</%def>
<%def name="menu_bar_nav()">
${self.menu_items(active='repositories')}
</%def>
<%def name="menu_bar_subnav()">
${self.repo_menu(active='summary')}
</%def>
<%def name="main()">
<div class="box">
<div class="title">
${self.repo_page_title(c.rhodecode_db_repo)}
<ul class="links">
<li>
forks: moved pylons code into pyramid.
r1988 <a class="btn btn-small btn-success" href="${h.route_path('repo_fork_new',repo_name=c.repo_name)}">
templating: use .mako as extensions for template files.
r1282 ${_('Create new fork')}
</a>
</li>
</ul>
</div>
forks: moved pylons code into pyramid.
r1988
<div id="fork_list_wrap">
<table id="fork_list_table" class="display"></table>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
forks: moved pylons code into pyramid.
r1988
<script type="text/javascript">
$(document).ready(function() {
datatables: use new way of generating labels for count of dynamic datatables....
r2726 var $forksListTable = $('#fork_list_table');
forks: moved pylons code into pyramid.
r1988
datatables: use new way of generating labels for count of dynamic datatables....
r2726 // fork list
$forksListTable.DataTable({
forks: moved pylons code into pyramid.
r1988 processing: true,
serverSide: true,
datatables: use new way of generating labels for count of dynamic datatables....
r2726 ajax: {
"url": "${h.route_path('repo_forks_data', repo_name=c.repo_name)}",
},
forks: moved pylons code into pyramid.
r1988 dom: 'rtp',
pageLength: ${c.visual.dashboard_items},
order: [[ 0, "asc" ]],
columns: [
{ data: {"_": "username",
"sort": "username"}, title: "${_('Owner')}", className: "td-user" },
{ data: {"_": "fork_name",
"sort": "fork_name"}, title: "${_('Fork name')}", className: "td-email" },
{ data: {"_": "description",
"sort": "description"}, title: "${_('Description')}", className: "td-user" },
{ data: {"_": "fork_date",
"sort": "fork_date"}, title: "${_('Forked')}", className: "td-user" },
{ data: {"_": "last_activity",
"sort": "last_activity",
"type": Number}, title: "${_('Last activity')}", className: "td-time" },
{ data: {"_": "action",
"sort": "action"}, title: "${_('Action')}", className: "td-action", orderable: false }
],
language: {
paginate: DEFAULT_GRID_PAGINATION,
sProcessing: _gettext('loading...'),
emptyTable: _gettext("No forks available yet.")
},
"createdRow": function ( row, data, index ) {
if (!data['active_raw']){
$(row).addClass('closed')
}
}
});
datatables: use new way of generating labels for count of dynamic datatables....
r2726 $forksListTable.on('xhr.dt', function(e, settings, json, xhr){
$forksListTable.css('opacity', 1);
forks: moved pylons code into pyramid.
r1988 });
datatables: use new way of generating labels for count of dynamic datatables....
r2726 $forksListTable.on('preXhr.dt', function(e, settings, data){
$forksListTable.css('opacity', 0.3);
forks: moved pylons code into pyramid.
r1988 });
// filter
$('#q_filter').on('keyup',
$.debounce(250, function() {
datatables: use new way of generating labels for count of dynamic datatables....
r2726 $forksListTable.DataTable().search(
forks: moved pylons code into pyramid.
r1988 $('#q_filter').val()
).draw();
})
);
});
</script>
templating: use .mako as extensions for template files.
r1282 </%def>