diff options
author | benal01 <bja4245@rit.edu> | 2025-04-05 20:18:25 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-04-05 20:18:25 -0400 |
commit | 8ee9c972b06829ccae3adccf3009279f6aeaeb4c (patch) | |
tree | 1b97171260554502d6d298ff78cfe09c15afe643 /ufund-ui/src/app/components/need-list/need-list.component.html | |
parent | 0103ffc6f84d04433943c644ab759c1d04b5e681 (diff) | |
download | JellySolutions-8ee9c972b06829ccae3adccf3009279f6aeaeb4c.tar.gz JellySolutions-8ee9c972b06829ccae3adccf3009279f6aeaeb4c.tar.bz2 JellySolutions-8ee9c972b06829ccae3adccf3009279f6aeaeb4c.zip |
need image on need list
Diffstat (limited to '')
-rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html index 406bfa0..1410ce6 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.html +++ b/ufund-ui/src/app/components/need-list/need-list.component.html @@ -2,12 +2,16 @@ <div id="needList"> <div *ngFor="let need of visibleNeeds" class="needEntry"> <div [routerLink]="'/need/' + need.id" class="clickable"> + <div class="split"> <div class="left"> + <img *ngIf="need.image" alt="Need image" class="need-image" [src]="need.image"/> + </div> + + <div class="middle"> <span class="needName">{{need.name}}</span> <span class="needType">{{need.type}}</span> </div> - <div class="right"> <span *ngIf="need.urgent" class="urgent">URGENT</span> <span *ngIf="need.location"><span class="icon">location_on</span>{{need.location}}</span> @@ -21,6 +25,7 @@ <progress [value]="need.current" [max]="need.maxGoal"></progress> </div> </div> + <div *ngIf="actionArea" class="actionArea"> <ng-container [ngTemplateOutlet]="actionArea" [ngTemplateOutletContext]="{$implicit: need}"/> </div> |