@if (eventDto.CoverImageContent is null)
{
-

+
+ @CoverImageHelper.GetTitle(eventDto.Title).TruncateWithPostfix(40)
+
}
else
{
diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml
index 20e744e..a2a6c63 100644
--- a/src/EventHub.Web/Pages/Index.cshtml
+++ b/src/EventHub.Web/Pages/Index.cshtml
@@ -4,6 +4,7 @@
@using Microsoft.AspNetCore.Mvc.Localization
@using EventHub.Localization
@using EventHub.Web
+@using EventHub.Web.Helpers
@using EventHub.Web.Pages.Events.Components.EventsArea
@using Volo.Abp.Timing
@using Volo.Abp.Users
@@ -120,7 +121,9 @@
@if (Model.OnlineEvents[i].CoverImageContent is null)
{
-
![@Model.OnlineEvents[i].Title](/assets/card-left-image.png)
+
+ @CoverImageHelper.GetTitle(Model.OnlineEvents[i].Title).TruncateWithPostfix(30)
+
}
else
{
@@ -148,7 +151,9 @@
@if (Model.OnlineEvents[i + 1].CoverImageContent is null)
{
-
![@Model.OnlineEvents[i + 1].Title](/assets/card-left-image.png)
+
+ @CoverImageHelper.GetTitle(Model.OnlineEvents[i + 1].Title).TruncateWithPostfix(30)
+
}
else
{
diff --git a/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml b/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml
index eca2ff4..e8d4bbf 100644
--- a/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml
+++ b/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml
@@ -1,3 +1,4 @@
+@using EventHub.Web.Helpers
@model List
@foreach (var organization in Model)
@@ -6,7 +7,9 @@
@if (organization.ProfilePictureContent == null)
{
-

+
+ @CoverImageHelper.GetTitle(organization.Name).TruncateWithPostfix(40)
+
}
else
{
@@ -20,7 +23,7 @@
@organization.Description
- Details
+ Details