##// END OF EJS Templates
feat(archives): archive download links uses rel="nofollow" attribute to stop bots from indexing it.
feat(archives): archive download links uses rel="nofollow" attribute to stop bots from indexing it.

File last commit:

r5137:f3cd5ebe default
r5248:e139aad4 default
Show More
repo_groups.mako
116 lines | 3.6 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="/base/base.mako"/>
<%def name="title()">
${_('Repository groups administration')}
%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='admin')}
</%def>
ui: navigation, fixed wrapping of new admin navigation items
r3566 <%def name="menu_bar_subnav()">
${self.admin_menu(active='repository_groups')}
</%def>
templating: use .mako as extensions for template files.
r1282 <%def name="main()">
<div class="box">
nav: bring back quick filter and cleanup titles
r3589
templating: use .mako as extensions for template files.
r1282 <div class="title">
nav: bring back quick filter and cleanup titles
r3589 <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" placeholder="${_('quick filter...')}" value=""/>
admin: made all grids use same partial loading logic...
r4146 <span id="repo_group_count"></span>
ui: navigation, fixed wrapping of new admin navigation items
r3566
templating: use .mako as extensions for template files.
r1282 <ul class="links">
nav: bring back quick filter and cleanup titles
r3589 %if c.can_create_repo_group:
<li>
core: revamp of automation/scheduler/artifacts EE functionality
r5137 <a href="${h.route_path('repo_group_new')}" class="btn btn-small btn-success">${_('Add Repository Group')}</a>
nav: bring back quick filter and cleanup titles
r3589 </li>
%endif
templating: use .mako as extensions for template files.
r1282 </ul>
</div>
<div id="repos_list_wrap">
<table id="group_list_table" class="display"></table>
</div>
</div>
<script>
$(document).ready(function() {
repository-groups: use lazy loaded admin dashboard
r3623 var $repoGroupsListTable = $('#group_list_table');
templating: use .mako as extensions for template files.
r1282
// repo group list
repository-groups: use lazy loaded admin dashboard
r3623 $repoGroupsListTable.DataTable({
processing: true,
serverSide: true,
ajax: {
"url": "${h.route_path('repo_groups_data')}",
"dataSrc": function (json) {
var filteredCount = json.recordsFiltered;
var filteredInactiveCount = json.recordsFilteredInactive;
var totalInactive = json.recordsTotalInactive;
var total = json.recordsTotal;
var _text = _gettext(
"{0} of {1} repository groups").format(
filteredCount, total);
if (total === filteredCount) {
_text = _gettext("{0} repository groups").format(total);
}
$('#repo_group_count').text(_text);
return json.data;
},
},
templating: use .mako as extensions for template files.
r1282 dom: 'rtp',
pageLength: ${c.visual.admin_grid_items},
order: [[ 0, "asc" ]],
columns: [
{ data: {"_": "name",
grids: columns and sorting fixes
r4150 "sort": "name"}, title: "${_('Name')}", className: "td-componentname" },
templating: use .mako as extensions for template files.
r1282 { data: 'menu', "bSortable": false, className: "quick_repo_menu" },
{ data: {"_": "desc",
"sort": "desc"}, title: "${_('Description')}", className: "td-description" },
repository-groups: introduce last change for repository groups.
r1940 { data: {"_": "last_change",
grids: columns and sorting fixes
r4150 "sort": "last_change",
repository-groups: introduce last change for repository groups.
r1940 "type": Number}, title: "${_('Last Change')}", className: "td-time" },
templating: use .mako as extensions for template files.
r1282 { data: {"_": "top_level_repos",
"sort": "top_level_repos"}, title: "${_('Number of top level repositories')}" },
{ data: {"_": "owner",
"sort": "owner"}, title: "${_('Owner')}", className: "td-user" },
{ data: {"_": "action",
repository-groups: use lazy loaded admin dashboard
r3623 "sort": "action"}, title: "${_('Action')}", className: "td-action", orderable: false }
templating: use .mako as extensions for template files.
r1282 ],
language: {
paginate: DEFAULT_GRID_PAGINATION,
repository-groups: use lazy loaded admin dashboard
r3623 sProcessing: _gettext('loading...'),
templating: use .mako as extensions for template files.
r1282 emptyTable: _gettext("No repository groups available yet.")
},
});
repository-groups: use lazy loaded admin dashboard
r3623 $repoGroupsListTable.on('xhr.dt', function(e, settings, json, xhr){
$repoGroupsListTable.css('opacity', 1);
});
$repoGroupsListTable.on('preXhr.dt', function(e, settings, data){
$repoGroupsListTable.css('opacity', 0.3);
templating: use .mako as extensions for template files.
r1282 });
repository-groups: use lazy loaded admin dashboard
r3623 // filter
$('#q_filter').on('keyup',
$.debounce(250, function() {
$repoGroupsListTable.DataTable().search(
$('#q_filter').val()
).draw();
})
);
admin: made all grids use same partial loading logic...
r4146
repository-groups: use lazy loaded admin dashboard
r3623 });
templating: use .mako as extensions for template files.
r1282
repository-groups: use lazy loaded admin dashboard
r3623 </script>
templating: use .mako as extensions for template files.
r1282
</%def>