mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
108588: Updated CommunityPageRoutingModule to use custom sections
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<h2 class="comcol-browse-label h5">{{'browse.comcol.head' | translate}}</h2>
|
||||
<nav class="comcol-browse mb-4" aria-label="Browse Community or Collection">
|
||||
<nav *ngIf="(allOptions$ | async) as allOptions" class="comcol-browse mb-4" aria-label="Browse Community or Collection">
|
||||
<div class="d-none d-sm-block">
|
||||
|
||||
<div class="list-group list-group-horizontal">
|
||||
@@ -7,7 +7,9 @@
|
||||
class="list-group-item"
|
||||
[routerLink]="option.routerLink"
|
||||
[queryParams]="option.params"
|
||||
routerLinkActive="active">{{ option.label | translate }}</a>
|
||||
[class.active]="(currentOption$ | async)?.id === option.id">
|
||||
{{ option.label | translate }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,10 +17,12 @@
|
||||
<select name="browse-type"
|
||||
class="form-control"
|
||||
aria-label="Browse Community or Collection"
|
||||
(ngModelChange)="onSelectChange($event)" [ngModel]="currentOptionId$ | async">
|
||||
(change)="onSelectChange($event)">
|
||||
<option *ngFor="let option of allOptions"
|
||||
[ngValue]="option.id"
|
||||
[attr.selected]="(currentOptionId$ | async) === option.id ? 'selected' : null">{{ option.label | translate }}</option>
|
||||
[value]="option.id"
|
||||
[attr.selected]="(currentOption$ | async)?.id === option.id ? 'selected' : null">
|
||||
{{ option.label | translate }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</nav>
|
||||
|
Reference in New Issue
Block a user