"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();
<script id="browse-groups-div-tmpl" type="text/html">
<div id="browse-groups-div" data-bind='template:{name:"browse-groups-tmpl"}'>
-
</div>
</script>
<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">
<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>
</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>