<commit_before>@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using Jumoo.Simpily

@{
    if (!string.IsNullOrWhiteSpace(Request.QueryString["edit"]))
    {
        @Html.Partial("SimpilyForums/RenderPostEditor",
                                Model.Content,
                                new ViewDataDictionary(this.ViewData) { 
                                        { "showTitle", false },
                                        { "edit", true } 
                                })
        return;
    }

    if (Model.Content.Parent.DocumentTypeAlias == "SimpilyPost")
    {
        // if this post has a parent post, that's the page we
        // want people to see (the full thread)
        Response.Redirect(Model.Content.Parent.Url);
    }
}

@{
   
    @Html.Partial("SimpilyForums/DisplayForumInfo", Model.Content.Parent)
    
    <div class="forum-post-thread">
        <ul class="forum-thread">
            @DisplayPost(Model.Content)
            
            @foreach(var reply in Model.Content.Children()
                .Where(x => x.DocumentTypeAlias == "Simpilypost"))
            {
                @DisplayPost(reply, false);
            }
        </ul>

        @* // if the forum and post are active, show the reply box. *@
        @if( DoesForumAcceptPosts(Model.Content.Parent) && Model.Content.GetPropertyValue<bool>("allowReplies"))
        {<commit_msg>Show title on edit of root post<commit_after>@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using Jumoo.Simpily

@{
    if (!string.IsNullOrWhiteSpace(Request.QueryString["edit"]))
    {
        var showTitle = Model.Content.Parent.DocumentTypeAlias == "Simpilyforum";

        @Html.Partial("SimpilyForums/RenderPostEditor",
                                Model.Content,
                                new ViewDataDictionary(this.ViewData) { 
                                        { "showTitle", showTitle},
                                        { "edit", true } 
                                })
        return;
    }

    if (Model.Content.Parent.DocumentTypeAlias == "SimpilyPost")
    {
        // if this post has a parent post, that's the page we
        // want people to see (the full thread)
        Response.Redirect(Model.Content.Parent.Url);
    }
}

@{
   
    @Html.Partial("SimpilyForums/DisplayForumInfo", Model.Content.Parent)
    
    <div class="forum-post-thread">
        <ul class="forum-thread">
            @DisplayPost(Model.Content)
            
            @foreach(var reply in Model.Content.Children()
                .Where(x => x.DocumentTypeAlias == "Simpilypost"))
            {
                @DisplayPost(reply, false);
            }
        </ul>

        @* // if the forum and post are active, show the reply box. *@
        @if( DoesForumAcceptPosts(Model.Content.Parent) && Model.Content.GetPropertyValue<bool>("allowReplies"))
        {
{'fraction_non_alphanumeric': 0.11463414634146342, 'fraction_numerical': 0.0, 'mean_word_length': 1.6534195933456561, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2368442', 'n_tokens_mistral': 792, 'n_tokens_neox': 771, 'n_words': 146}