31 lines
1 KiB
Plaintext
31 lines
1 KiB
Plaintext
@using Wave.Data
|
|
|
|
@if (!DisableProfileLink) {
|
|
<a href="/profile/@Profile.Id">
|
|
<div class="rounded bg-base-200 text-base-content flex content-center w-full sm:w-56">
|
|
<div class="w-16 h-16"><ProfilePictureComponent Size="200" ProfileId="@Profile.Id" /></div>
|
|
<div class="flex flex-col p-2">
|
|
<span class="truncate">@Profile.Name</span>
|
|
@if (RoleTag is not null) { <span class="badge badge-sm badge-primary">@RoleTag</span> }
|
|
</div>
|
|
</div>
|
|
</a>
|
|
} else {
|
|
<div class="rounded bg-base-200 text-base-content flex content-center w-full sm:w-56">
|
|
<div class="w-16 h-16"><ProfilePictureComponent Size="200" ProfileId="@Profile.Id" /></div>
|
|
<div class="flex flex-col p-2">
|
|
<span class="truncate">@Profile.Name</span>
|
|
@if (RoleTag is not null) { <span class="badge badge-sm badge-primary">@RoleTag</span> }
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@code {
|
|
[Parameter]
|
|
public required ApplicationUser Profile { get; set; }
|
|
[Parameter]
|
|
public string? RoleTag { get; set; }
|
|
[Parameter]
|
|
public bool DisableProfileLink { get; set; }
|
|
}
|