@switch (StateOf(announcement))
{
case "shown":
@Localizer["Shown now"]
break;
case "ended":
@Localizer["Ended"]
break;
default:
@Localizer["Draft"]
break;
}
@if (announcement.AllDay)
{
@Localizer["All day"]
}
@Localizer["Written {0} ago", announcement.CreatedAt.GetPassedTime(Localizer)]
@Localizer["Edit"]
@Localizer["Delete"]
@if (announcement.StartsAt is not null || announcement.EndsAt is not null)
{
@When(announcement)
}@((MarkupString)announcement.Html)
@Localizer["Dismissed by {0}", announcement.Reads]
@foreach (var reaction in announcement.Reactions)
{
@reaction.Name @reaction.Count
}