##// END OF EJS Templates
security: fixed issues with exposing repository names using global PR redirection link...
security: fixed issues with exposing repository names using global PR redirection link logic. - Since redirect was created to repository which linked to the PR, users who didn't have permissions to those repos could still see the name in the url generated.

File last commit:

r4026:ed756817 default
r4044:573a1043 default
Show More
index_base.mako
121 lines | 4.4 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="/base/base.mako"/>
dan
search: new UI for search, and repo group context search...
r3442
<%def name="menu_bar_subnav()">
% if c.repo_group:
${self.repo_group_menu(active='home')}
% endif
</%def>
templating: use .mako as extensions for template files.
r1282 <%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
</div>
<!-- end box / title -->
<div class="table">
<div id="groups_list_wrap">
datagrids: don't expand over the site width.
r3166 <table id="group_list_table" class="display" style="width: 100%"></table>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
<div class="table">
<div id="repos_list_wrap">
datagrids: don't expand over the site width.
r3166 <table id="repo_list_table" class="display" style="width: 100%"></table>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
ui: hide empty no repos or no repo groups display. It often happens that starting...
r2447
## no repository groups and repos present, show something to the users
% if c.repo_groups_data == '[]' and c.repos_data == '[]':
<div class="table">
<h2 class="no-object-border">
${_('No repositories or repositories groups exists here.')}
</h2>
</div>
% endif
templating: use .mako as extensions for template files.
r1282 </div>
<script>
$(document).ready(function() {
ui: hide empty no repos or no repo groups display. It often happens that starting...
r2447 // repo group list
% if c.repo_groups_data != '[]':
$('#group_list_table').DataTable({
templating: use .mako as extensions for template files.
r1282 data: ${c.repo_groups_data|n},
dom: 'rtp',
pageLength: ${c.visual.dashboard_items},
order: [[ 0, "asc" ]],
columns: [
{ data: {"_": "name",
ui: normalize main grid sizes and columns
r3557 "sort": "name_raw"}, title: "${_('Name')}", className: "truncate-wrap td-grid-name" },
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",
"sort": "last_change_raw",
"type": Number}, title: "${_('Last Change')}", className: "td-time" },
ui: normalize main grid sizes and columns
r3557 { data: {"_": "last_changeset",
"sort": "last_changeset_raw",
"type": Number}, title: "", className: "td-hash" },
templating: use .mako as extensions for template files.
r1282 { data: {"_": "owner",
"sort": "owner"}, title: "${_('Owner')}", className: "td-user" }
],
language: {
paginate: DEFAULT_GRID_PAGINATION,
emptyTable: _gettext("No repository groups 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 quick_repo_menu();
datagrids: hide pagination for single pages in main grids
r3904 // hide pagination for single page
grids: hide pagination if number is also equal to pagination
r3908 if (settings._iDisplayLength >= settings.fnRecordsDisplay()) {
datagrids: hide pagination for single pages in main grids
r3904 $(settings.nTableWrapper).find('.dataTables_paginate').hide();
}
templating: use .mako as extensions for template files.
r1282 }
});
ui: hide empty no repos or no repo groups display. It often happens that starting...
r2447 % endif
templating: use .mako as extensions for template files.
r1282
// repo list
ui: hide empty no repos or no repo groups display. It often happens that starting...
r2447 % if c.repos_data != '[]':
templating: use .mako as extensions for template files.
r1282 $('#repo_list_table').DataTable({
data: ${c.repos_data|n},
dom: 'rtp',
order: [[ 0, "asc" ]],
pageLength: ${c.visual.dashboard_items},
columns: [
{ data: {"_": "name",
ui: normalize main grid sizes and columns
r3557 "sort": "name_raw"}, title: "${_('Name')}", className: "truncate-wrap td-grid-name" },
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" },
{ data: {"_": "last_change",
"sort": "last_change_raw",
"type": Number}, title: "${_('Last Change')}", className: "td-time" },
{ data: {"_": "last_changeset",
"sort": "last_changeset_raw",
"type": Number}, title: "${_('Commit')}", className: "td-hash" },
{ data: {"_": "owner",
ui: hide empty no repos or no repo groups display. It often happens that starting...
r2447 "sort": "owner"}, title: "${_('Owner')}", className: "td-user" }
templating: use .mako as extensions for template files.
r1282 ],
language: {
paginate: DEFAULT_GRID_PAGINATION,
emptyTable: _gettext("No repositories 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 quick_repo_menu();
datagrids: hide pagination for single pages in main grids
r3904 // hide pagination for single page
grids: hide pagination if number is also equal to pagination
r3908 if (settings._iDisplayLength >= settings.fnRecordsDisplay()) {
datagrids: hide pagination for single pages in main grids
r3904 $(settings.nTableWrapper).find('.dataTables_paginate').hide();
}
templating: use .mako as extensions for template files.
r1282 }
});
ui: hide empty no repos or no repo groups display. It often happens that starting...
r2447 % endif
templating: use .mako as extensions for template files.
r1282 });
</script>
</%def>