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

Commit

Permalink
Merge pull request #101 from paxtonhare/99-show-more-facets
Browse files Browse the repository at this point in the history
enabling show more for facets
  • Loading branch information
ryanjdew committed Jul 31, 2015
2 parents 92aa9f2 + 3d6cace commit c20ca3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit c20ca3a

Please sign in to comment.