Skip to content

Commit

Permalink
Merge pull request #419 from UoA-eResearch/feature/RSM-3036-update-re…
Browse files Browse the repository at this point in the history
…search-stage-url

RSM-3036: stage: replace search with url
  • Loading branch information
cakr322 authored Nov 7, 2023
2 parents b535408 + 327c174 commit 5b4ec30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,17 @@ <h1>{{ title }}</h1>
<div fxLayout="column" fxLayoutGap="8px" class="research-activity-content">
<div *ngFor="let item of allStages">
<!-- Panel Container -->
<a
[attr.aria-label]="'Search in ' + item.name"
routerLink="/search"
[queryParams]="
searchService.generateQueryParams('', {
category: [],
stage: [item.sys.id],
relatedOrgs: []
})
"
>
<a [attr.aria-label]="item.name"
[routerLink]="'/subhub/' + item?.linkedToRef?.slug"
>
<div class="outer-panel" fxLayout="row">
<div class="inner-panel">
<div>
<h2>{{ item.name }}</h2>
<p>{{ item.description }}</p>
</div>
</div>

<!-- Panel Image -->
<div fxHide.lt-md class="research-category-img">
<picture *ngIf="item.image?.url">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ query AllStages {
sys {
id
}
linkedToRef {
slug
}
}
}
}
}

0 comments on commit 5b4ec30

Please sign in to comment.