mirror of https://github.com/apache/archiva.git
display artifacts number found in the search result
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d87ffeb9a
commit
378c3365aa
|
@ -94,8 +94,9 @@ public class DefaultRemoteRepositoryAdmin
|
|||
{
|
||||
try
|
||||
{
|
||||
List<RemoteRepository> remoteRepositories = getRemoteRepositories();
|
||||
// close index on shutdown
|
||||
for ( RemoteRepository remoteRepository : getRemoteRepositories() )
|
||||
for ( RemoteRepository remoteRepository : remoteRepositories )
|
||||
{
|
||||
IndexingContext context = indexer.getIndexingContexts().get( remoteRepository.getId() );
|
||||
if ( context != null )
|
||||
|
|
|
@ -766,6 +766,9 @@ $(function() {
|
|||
"simpleGrid: gridViewModel,simpleGridTemplate:'search-results-view-grid-tmpl',pageLinksId:'search-results-view-grid-pagination'");
|
||||
ko.applyBindings(self.resultViewModel,searchResultsGrid.get(0));
|
||||
ko.applyBindings(self,mainContent.find("#remove-filter-id" ).get(0));
|
||||
mainContent.find("#search-result-number-div").attr("data-bind",
|
||||
"template:{name:'search-result-number-div-tmpl'}");
|
||||
ko.applyBindings(self,mainContent.find("#search-result-number-div" ).get(0));
|
||||
}
|
||||
|
||||
activateSearchResultsTab();
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
<script id="browse-groups-div-tmpl" type="text/html">
|
||||
<div id="browse-groups-div" data-bind='template:{name:"browse-groups-tmpl"}'>
|
||||
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
@ -158,6 +157,7 @@
|
|||
<div id="search-artifacts-div" data-bind='template:{name:"search-artifacts-form-tmpl"}'>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script id="search-artifacts-form-tmpl" type="text/html">
|
||||
|
||||
<div class="page-header">
|
||||
|
@ -267,8 +267,14 @@
|
|||
|
||||
|
||||
<div id="search-results" class="tab-pane">
|
||||
<a href="#" class="btn btn-warning" data-bind="click: removeFilter" id="remove-filter-id">remove filter</a>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<a href="#" class="btn btn-warning" data-bind="click: removeFilter" id="remove-filter-id">remove filter</a>
|
||||
</div>
|
||||
<div class="span4" id="search-result-number-div">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped table-bordered" id="search-results-grid">
|
||||
</table>
|
||||
<div id="search-results-view-grid-pagination"></div>
|
||||
|
@ -280,6 +286,13 @@
|
|||
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="search-result-number-div-tmpl">
|
||||
<blockquote>
|
||||
${$.i18n.prop('search.artifact.result.size')}: ${resultViewModel.artifacts().length}
|
||||
</blockquote>
|
||||
|
||||
</script>
|
||||
|
||||
<script id="search-results-view-grid-tmpl" type="text/html">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue