24 lines
682 B
Plaintext
24 lines
682 B
Plaintext
|
@page
|
||
|
@model DescriptionModel
|
||
|
@{
|
||
|
ViewData["Title"] = "Description";
|
||
|
}
|
||
|
@{
|
||
|
if (string.IsNullOrWhiteSpace(Request.Query["guid"])) {
|
||
|
Response.Redirect("/");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ConferenceModel.ReadEventMetadata();
|
||
|
var talk = ConferenceModel.EventMetadata.FirstOrDefault(p => p.Guid == Request.Query["guid"]);
|
||
|
if (talk == null) {
|
||
|
Response.Redirect("/");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var title = talk.Talk.Title;
|
||
|
var speakers = talk.Talk.Persons.Aggregate((s, s1) => $"{s}, {s1}");
|
||
|
var description = talk.Talk.Description;
|
||
|
}
|
||
|
<h3>@title - <i>@speakers</i></h3>
|
||
|
<p style="text-align: justify">@Html.Raw(description.Replace("\n", "<br/>"))</p>
|