diff --git a/src/EventHub.Web/Pages/Events/EventDateHelper.cs b/src/EventHub.Web/Pages/Events/EventDateHelper.cs index 5c4cb9b..891d780 100644 --- a/src/EventHub.Web/Pages/Events/EventDateHelper.cs +++ b/src/EventHub.Web/Pages/Events/EventDateHelper.cs @@ -1,5 +1,6 @@ using System; using System.Text; +using EventHub.Events; namespace EventHub.Web.Pages.Events { @@ -22,5 +23,17 @@ namespace EventHub.Web.Pages.Events return sb.ToString(); } + + public static string GetLocationInfo(EventInListDto eventItem) + { + if (eventItem.IsOnline) + { + return "online"; + } + else + { + return "???"; + } + } } } diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index 028edc8..8799230 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -81,262 +81,44 @@
- Some quick example text to build on the card title and make up the bulk of the card's content.
-
- Some quick example text to build on th content.
-
- Some quick example text to build on the card title and make up the bud title and make up e card's content.
-
- Some quick example text to build on the card title and make up the bulk of the card's content.
-
- Some quick example text to build on th content.
-
- Some quick example text to build on the card title and make up the bud title and make up e card's content.
-
- Some quick example text to build on the card title and make up the bulk of the card's content.
-
- Some quick example text to build on th content.
-
- Some quick example text to build on the card title and make up the bud title and make up e card's content.
+ @foreach (var eventItem in Model.Events) + { +
+ }
+ else
+ {
+ @eventItem.Description.TruncateWithPostfix(100)
+