Skip to content

Commit

Permalink
Restructure the 'composed of' block on the detail page.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelGabriel authored and juanluisrp committed Nov 27, 2023
1 parent 3679505 commit 34260ae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
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) || '&nbsp;'}} ({{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) || '&nbsp;'}} ({{b.doc_count}})
</button>
</div>
</div>
</div>
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/en-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,5 +432,6 @@
"lastCreatedRecords": "Last created records",
"associationType": "Association type",
"initiativeType": "Initiative type",
"associatedTo": "Associated "
"associatedTo": "Associated ",
"filterHelp": "Please click on one of the buttons below to activate the filter"
}

0 comments on commit 34260ae

Please sign in to comment.