Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

enabling show more for facets #101

Merged
merged 2 commits into from
Jul 31, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/templates/ui/app/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ <h1>Sample MarkLogic Application</h1>
<ml-input qtext="ctrl.qtext" search="ctrl.search(qtext)" suggest="ctrl.suggest(val)" template="fa"></ml-input>
</div>

<div class="row" ng-if="ctrl.currentUser">
<ml-facets class="col-md-3" facets="ctrl.response.facets" toggle="ctrl.toggleFacet(facet, value)"></ml-facets>
<div class="search row" ng-if="ctrl.currentUser">
<ml-facets class="col-md-3" facets="ctrl.response.facets" toggle="ctrl.toggleFacet(facet, value)" show-more="ctrl.showMoreFacets(facet, facetName)"></ml-facets>
<div class="col-md-9">
<h3 ng-if="ctrl.response.total === 0">No results to show</h3>

Expand Down
4 changes: 4 additions & 0 deletions app/templates/ui/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
cursor: pointer;
}

.search {
margin-top: 2em;
}

.results {
ul.pagination {
margin: 0;
Expand Down