<commit_before>﻿@model IEnumerable<SvNaum.Models.Sermon>

@{
    ViewBag.Title = "Проповеди";
}

<h2>Проповеди!</h2>
<br />
@if (this.User.Identity.IsAuthenticated)
{
    @Html.ActionLink("Create Sermon", "SermonAdd", "Admin")
    <br />
    <br />
}

@if (Model != null && Model.Count() > 0)
{

    foreach (var item in Model)
    {
        <div>
            @Html.LabelFor(m => item.Theme)
            @Html.DisplayFor(m => item.Theme)
            <br />
            @Html.LabelFor(m => item.Title)
            @Html.DisplayFor(m => item.Title)
            <br />
            @Html.LabelFor(m => item.Author)
            @Html.DisplayFor(m => item.Author)
            <br />
            @Html.LabelFor(m => item.Text)
            <p>
                @Html.DisplayFor(m => item.Text)
            </p>
            <br />
            @Html.LabelFor(m => item.Date)
            @Html.DisplayFor(m => item.Date.ToLocalTime().GetDateTimeFormats()[1])
            <br />

            @if (this.User.Identity.IsAuthenticated)
            {
                @Html.ActionLink("Delete", "SermonDelete", "Admin", new { id = item.Id }, null)
                <br />
                @Html.ActionLink("Edit", "SermonEdit", "Admin", new { id = item.Id }, null)
            }
        </div>
        <p>-----------------------------------------</p>
    }
}
else
{
    <h3>There is no sermons!</h3>
}
<commit_msg>Remove html escaping for sermons.<commit_after>﻿@model IEnumerable<SvNaum.Models.Sermon>

@{
    ViewBag.Title = "Проповеди";
}

<h2>Проповеди!</h2>
<br />
@if (this.User.Identity.IsAuthenticated)
{
    @Html.ActionLink("Create Sermon", "SermonAdd", "Admin")
    <br />
    <br />
}

@if (Model != null && Model.Count() > 0)
{

    foreach (var item in Model)
    {
        <div>
            @Html.LabelFor(m => item.Theme)
            @Html.DisplayFor(m => item.Theme)
            <br />
            @Html.LabelFor(m => item.Title)
            @Html.DisplayFor(m => item.Title)
            <br />
            @Html.LabelFor(m => item.Author)
            @Html.DisplayFor(m => item.Author)
            <br />
            @Html.LabelFor(m => item.Text)
            <p>
                @Html.Raw(item.Text)
            </p>
            <br />
            @Html.LabelFor(m => item.Date)
            @Html.DisplayFor(m => item.Date.ToLocalTime().GetDateTimeFormats()[1])
            <br />

            @if (this.User.Identity.IsAuthenticated)
            {
                @Html.ActionLink("Delete", "SermonDelete", "Admin", new { id = item.Id }, null)
                <br />
                @Html.ActionLink("Edit", "SermonEdit", "Admin", new { id = item.Id }, null)
            }
        </div>
        <p>-----------------------------------------</p>
    }
}
else
{
    <h3>There is no sermons!</h3>
}

{'fraction_non_alphanumeric': 0.19492131616595135, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 1.4796099290780143, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5314325', 'n_tokens_mistral': 945, 'n_tokens_neox': 930, 'n_words': 155}