##// END OF EJS Templates
fix(vcs): fixed logic bug on skip-vcs detector where it didn't skip properly defined urls
fix(vcs): fixed logic bug on skip-vcs detector where it didn't skip properly defined urls

File last commit:

r5428:fc536dab default
r5533:ec540a35 default
Show More
branches.mako
128 lines | 4.0 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="/base/base.mako"/>
ui: links to tags/branches/bookmarks render that in a context of summary page for better navigation.
r4977 <%namespace name="components" file="/summary/components.mako"/>
templating: use .mako as extensions for template files.
r1282
<%def name="title()">
ui: links to tags/branches/bookmarks render that in a context of summary page for better navigation.
r4977 ${_('{} Branches').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='summary')}
</%def>
<%def name="main()">
ui: links to tags/branches/bookmarks render that in a context of summary page for better navigation.
r4977 <div id="repo-summary" class="summary">
${components.summary_detail(breadcrumbs_links=self.breadcrumbs_links(), show_downloads=False, simplified=True)}
</div>
templating: use .mako as extensions for template files.
r1282 <div class="box">
<div class="title">
ui: removed obsolete repo title objects
r3568
templating: use .mako as extensions for template files.
r1282 %if c.has_references:
<ul class="links">
<li>
<input type="submit" id="compare_action" class="btn" disabled="disabled" value="${_('Compare Selected Branches')}"/>
</li>
</ul>
%endif
%if c.has_references:
tables: unified tables for main pages of rhodecode repo pages.
r4511 <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>
<div id="obj_count">0</div>
templating: use .mako as extensions for template files.
r1282 %endif
</div>
tables: unified tables for main pages of rhodecode repo pages.
r4511 <table id="obj_list_table" class="rctable table-bordered"></table>
templating: use .mako as extensions for template files.
r1282 </div>
<script type="text/javascript">
$(document).ready(function() {
var get_datatable_count = function(){
var api = $('#obj_list_table').dataTable().api();
tables: unified tables for main pages of rhodecode repo pages.
r4511 var total = api.page.info().recordsDisplay
var _text = _ngettext('{0} branch', '{0} branches', total).format(total);
$('#obj_count').text(_text);
templating: use .mako as extensions for template files.
r1282 };
templates: use better variables names in loading ajax data
r5039 var branches_data = ${c.data|n};
feat(branch removal trough UI): Added ability to remove branches trough UI from git and hg repositories. Fixes: RCCE-75
r5428 var repo_type = "${c.rhodecode_db_repo.repo_type}";
var columns = [
templating: use .mako as extensions for template files.
r1282 { data: {"_": "name",
"sort": "name_raw"}, title: "${_('Name')}", className: "td-tags" },
{ data: {"_": "date",
"sort": "date_raw"}, title: "${_('Date')}", className: "td-time" },
{ data: {"_": "author",
"sort": "author"}, title: "${_('Author')}", className: "td-user" },
{ data: {"_": "commit",
"sort": "commit_raw",
"type": Number}, title: "${_('Commit')}", className: "td-hash" },
{ data: {"_": "compare",
"sort": "compare"}, title: "${_('Compare')}", className: "td-compare" }
feat(branch removal trough UI): Added ability to remove branches trough UI from git and hg repositories. Fixes: RCCE-75
r5428 ];
if (repo_type !== 'svn') {
columns.push({
data: { "_": "action", "sort": "action" },
title: `${_('Action')}`,
className: "td-action",
orderable: false
});
}
$('#obj_list_table').DataTable({
data: branches_data,
dom: 'rtp',
pageLength: ${c.visual.dashboard_items},
order: [[ 0, "asc" ]],
columns: columns,
templating: use .mako as extensions for template files.
r1282 language: {
paginate: DEFAULT_GRID_PAGINATION,
emptyTable: _gettext("No branches available yet.")
},
"initComplete": function( settings, json ) {
get_datatable_count();
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 compare_radio_buttons("${c.repo_name}", 'branch');
}
});
// update when things change
$('#obj_list_table').on('draw.dt', function() {
get_datatable_count();
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 });
// filter, filter both grids
$('#q_filter').on( 'keyup', function () {
var obj_api = $('#obj_list_table').dataTable().api();
obj_api
.columns(0)
.search(this.value)
.draw();
});
// refilter table if page load via back button
$("#q_filter").trigger('keyup');
});
</script>
</%def>