-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure the 'composed of' block on the detail page.
- Loading branch information
1 parent
3679505
commit 34260ae
Showing
2 changed files
with
17 additions
and
25 deletions.
There are no files selected for viewing
39 changes: 15 additions & 24 deletions
39
web-ui/src/main/resources/catalog/components/metadataactions/partials/recordsFilters.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
<div data-ng-if="agg"> | ||
<div class="row"> | ||
<div class="col-md-2"> | ||
<h2>{{title}}</h2> | ||
</div> | ||
<div class="col-md-10"> | ||
<div data-ng-repeat="filter in filtersToProcess" class="row"> | ||
<div class="col-md-3"> | ||
<div class="pull-right">{{('facet-' + filter) | facetKeyTranslator}}</div> | ||
</div> | ||
<div class="col-md-9"> | ||
<div class="btn-group btn-group-sm" role="group" aria-label="filter"> | ||
<button | ||
data-ng-repeat="(key, b) in agg[filter].buckets" | ||
data-ng-click="filterRecordsBy(filter, b.key)" | ||
data-ng-disabled="b.doc_count === children.length" | ||
type="button" | ||
class="btn btn-default" | ||
data-ng-class="{'btn-primary': current === (filter + '-' + b.key)}" | ||
> | ||
{{(b.key | translate) || ' '}} ({{b.doc_count}}) | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<h2>{{title}}</h2> | ||
<p class="text-muted" translate="">filterHelp</p> | ||
<div data-ng-repeat="filter in filtersToProcess"> | ||
<label>{{('facet-' + filter) | facetKeyTranslator}}</label> | ||
<div> | ||
<button | ||
data-ng-repeat="(key, b) in agg[filter].buckets" | ||
data-ng-click="filterRecordsBy(filter, b.key)" | ||
data-ng-disabled="b.doc_count === children.length" | ||
type="button" | ||
class="btn btn-default btn-sm gn-margin-bottom-sm gn-margin-right-sm" | ||
data-ng-class="{'btn-primary': current === (filter + '-' + b.key)}" | ||
> | ||
{{(b.key | translate) || ' '}} ({{b.doc_count}}) | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters