This commit is contained in:
mmrbnjd
2025-07-11 20:37:28 +03:30
parent 1924c88e7a
commit ff342a53c0
156 changed files with 13746 additions and 35 deletions

View File

@@ -0,0 +1,41 @@
@using Hushian.Application.Dtos
<small>پیام های اخیر شما ...</small>
<div class="row">
@foreach (var item in Conversations)
{
<div class="col-sm-3">
<Card>
<CardBody>
<CardText>@GetTitleCon(item.Title)</CardText>
<Button Color="ButtonColor.Primary" @onclick="async()=>await OnMultipleOfThree.InvokeAsync(item.ID)" Type="ButtonType.Link">Go somewhere</Button>
</CardBody>
<ul class="list-group list-group-flush">
<li class="list-group-item">@item.ExperFullName (@item.Cdate item.Ctime)</li>
</ul>
@if (item.status == Hushian.Enums.ConversationStatus.InProgress && item.NoReadCount > 0)
{
<Badge Color="BadgeColor.Danger"
Position="Position.Absolute"
Placement="BadgePlacement.TopLeft"
IndicatorType="BadgeIndicatorType.RoundedPill"
VisuallyHiddenText="unread messages">@item.NoReadCount </Badge>
}
}
</Card>
</div>
}
</div>
@code {
[Parameter] public EventCallback<int> OnMultipleOfThree { get; set; }
[Parameter] public List<ConversationDto> Conversations { get; set; }
string GetTitleCon(string str)
{
if (str.Length > 15) return str.Substring(0, 15) + "...";
return str;
}
}