File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -221,11 +221,13 @@ class PlaceRead(PlaceBase):
221221 category : CategoryRead
222222 image : str | None
223223 image_id : int | None
224+ user : str
224225
225226 @classmethod
226227 def serialize (cls , obj : Place , exclude_gpx = True ) -> "PlaceRead" :
227228 return cls (
228229 id = obj .id ,
230+ user = obj .user ,
229231 name = obj .name ,
230232 lat = obj .lat ,
231233 lng = obj .lng ,
Original file line number Diff line number Diff line change @@ -387,8 +387,8 @@ <h1 class="tracking-tight truncate dark:text-surface-300">{{ p.name }}</h1>
387387
388388 < div class ="flex gap-0.5 ">
389389 < span [style.color] ="p.category.color " [style.background-color] ="p.category.color + '1A' "
390- class ="text-xs font-medium me-2 px-2.5 py-0.5 rounded flex gap-2 items-center truncate "> < i
391- class ="pi pi-box text-xs "> </ i > {{ p.category.name }}</ span >
390+ class ="text-xs font-medium me-2 px-2.5 py-0.5 rounded flex gap-2 items-center max-w-28 "> < i
391+ class ="pi pi-box text-xs "> </ i > < span class =" truncate " > {{ p.category.name }}</ span > </ span >
392392
393393 @if (isPlaceUsed(p.id)) {
394394 < span class ="bg-green-100 text-green-800 text-sm me-2 px-2.5 py-0.5 rounded dark:bg-green-100/85 "> < i
@@ -403,6 +403,10 @@ <h1 class="tracking-tight truncate dark:text-surface-300">{{ p.name }}</h1>
403403 p.price || '-'
404404 }} {{ currency$ | async }}</ span >
405405
406+ @if (trip?.collaborators?.length) {
407+ < span class ="bg-gray-100 text-gray-800 text-sm me-2 px-2.5 py-0.5 rounded dark:bg-gray-100/85 "> {{ p.user
408+ }}</ span >
409+ }
406410 </ div >
407411 </ div >
408412 </ div >
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface Place {
1515 category : Category ;
1616 category_id ?: number ;
1717
18+ user ?: string ;
1819 gpx ?: string ;
1920 image ?: string ;
2021 price ?: number ;
You can’t perform that action at this time.
0 commit comments