Extract date rendering into per-feature Date components
This commit is contained in:
1 parent
d95bf0dcbe
commit
455b603299
16 files changed
+168
-71
No files matched your search
@@ -1,12 +1,13 @@
|
||||
@if (_upcoming.Count > 0)
|
||||
@using Elternbeirat.Web.Features.Events
|
||||
@if (_upcomingEvents.Count > 0)
|
||||
{
|
||||
<section class="embed embed-events">
|
||||
<h2>Kommende Termine</h2>
|
||||
<ul class="event-list">
|
||||
@foreach (var ev in _upcoming)
|
||||
@foreach (var ev in _upcomingEvents)
|
||||
{
|
||||
<li>
|
||||
<time datetime="@ev.Start.ToString("s")">@EventFormat.Range(ev)</time>
|
||||
<EventDate Value="ev" />
|
||||
<span class="event-title">@ev.Title</span>
|
||||
@if (!string.IsNullOrWhiteSpace(ev.Location))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user