<commit_before>﻿@using NetCoreCMS.Framework.Utility
@using System.Collections
@model List<NccComment>
@{
    Layout = Constants.AdminLayoutName;
    var mainName = "Comments";
    var controllerName = "Comments";
    ViewData["PageTitle"] = mainName + " Manage";
    ViewData["PageSubtitle"] = "Manage existing " + mainName.ToLower();
}

@*<script src="~/lib/ckeditor/ckeditor.js"></script>*@
<style>
    hr {
        margin-top: 2px;
        margin-bottom: 2px;
    }
    .table th{
        text-align: center;
    }
</style>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                @ViewData["PageSubtitle"]
                <div class="pull-right"><a asp-controller="@controllerName" asp-action="CreateEdit" class="btn btn-outline btn-primary btn-xs">Add New</a></div> 
            </div>
            <div class="panel-body">
                <table id="pageListDt" class="table table-striped table-bordered" cellspacing="0" width="100%">
                    <thead>
                        <tr>
                            <th>Title</th>
                            @*<th>Slug</th>*@
                            <th>Parent</th>
                            <th>Meta Keyword</th>
                            <th>Meta Description</th>
                            <th>Author</th>
                            <th>Status</th>
                            <th>Layout</th>
                            <th>Visibility</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                   
                                </td>
                                @*<td>
                                    @if (GlobalConfig.WebSite.IsMultiLangual == true || item.PostDetails.Where(x => x.Language == GlobalConfig.WebSite.Language).Count() <= 0)
                                    {
                                        for (var i = 0; i < item.PostDetails.Count; i++)
                                        {
                                            if (i > 0)
                                            {
                                                <hr />
                                            }
                                            <span>@item.PostDetails[i].Language: </span><span>@item.PostDetails[i].Slug</span>
                                        }
                                    }
                                    else
                                    {
                                        <span>@item.PostDetails.Where(x => x.Language == GlobalConfig.WebSite.Language).FirstOrDefault().Slug </span>
                                    }
                                </td>*@
                                <td style="text-align:center;">
                                    
                                </td>
                                <td>
                                    
                                </td>
                                <td>
                                    
                                </td>
                                <td style="text-align:center;">@item.CreateBy</td>
                                <td>
                                    
                                    <br />
                                    Last Update: [@item.ModificationDate.ToString("MMM dd, yyyy hh:mm tt")]
                                </td>
                                <td style="text-align:center;"></td>
                                <td style="text-align:center;"></td>
                                <td style="text-align:center;">
                                    <a asp-controller="@controllerName" asp-action="CreateEdit" asp-route-id="@item.Id" class="btn btn-outline btn-success btn-xs">Edit</a>
                                    <a asp-controller="@controllerName" asp-action="Delete" asp-route-id="@item.Id" class="btn btn-outline btn-danger btn-xs">Delete</a>
                                    
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>

            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
</div>

@section Scripts{
    <link href="~/lib/DataTables/dataTables.bootstrap.css" rel="stylesheet" />
    <link href="~/lib/DataTables/jquery.dataTables.min.css" rel="stylesheet" />
    <script src="~/lib/DataTables/jquery.dataTables.min.js"></script>
    <script src="~/lib/DataTables/dataTables.bootstrap.min.js"></script>
}
<commit_msg>Comments manage<commit_after>﻿@using NetCoreCMS.Framework.Utility
@using System.Collections
@model List<NccComment>
@{
    Layout = Constants.AdminLayoutName;
    var mainName = "Comments";
    var controllerName = "Comments";
    ViewData["PageTitle"] = mainName + " Manage";
    ViewData["PageSubtitle"] = "Manage existing " + mainName.ToLower();
}

@*<script src="~/lib/ckeditor/ckeditor.js"></script>*@
<style>
    hr {
        margin-top: 2px;
        margin-bottom: 2px;
    }
    .table th{
        text-align: center;
    }
</style>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                @ViewData["PageSubtitle"]
                <div class="pull-right"><a asp-controller="@controllerName" asp-action="CreateEdit" class="btn btn-outline btn-primary btn-xs">Add New</a></div> 
            </div>
            <div class="panel-body">
                <table id="pageListDt" class="table table-striped table-bordered" cellspacing="0" width="100%">
                    <thead>
                        <tr>
                            <th>Post</th>
                            <th>Comments</th>
                            <th>Author</th>
                            <th>Status</th>
                            <th>CreateBy</th>
                            <th>Last Update</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td style="text-align:center;">
                                   @item.Post.Name
                                </td>
                                <td style="text-align:center;">
                                    @item.Content
                                </td>
                                <td style="text-align:center;">
                                    @item.AuthorName
                                </td>
                                <td style="text-align:center;">
                                    @item.CommentStatus
                                </td>
                                <td style="text-align:center;">@item.CreateBy</td>
                                <td>
                                    @item.ModificationDate.ToString("MMM dd, yyyy hh:mm tt")
                                </td>
                                <td style="text-align:center;">
                                    <a asp-controller="@controllerName" asp-action="CreateEdit" asp-route-id="@item.Id" class="btn btn-outline btn-success btn-xs">Edit</a>
                                    <a asp-controller="@controllerName" asp-action="Delete" asp-route-id="@item.Id" class="btn btn-outline btn-danger btn-xs">Delete</a>                                    
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>

            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
</div>

@section Scripts{
    <link href="~/lib/DataTables/dataTables.bootstrap.css" rel="stylesheet" />
    <link href="~/lib/DataTables/jquery.dataTables.min.css" rel="stylesheet" />
    <script src="~/lib/DataTables/jquery.dataTables.min.js"></script>
    <script src="~/lib/DataTables/dataTables.bootstrap.min.js"></script>
}

{'fraction_non_alphanumeric': 0.12690051478510714, 'fraction_numerical': 0.0022746318687896566, 'mean_word_length': 0.9226697353279631, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 164, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 50, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7322597', 'n_tokens_mistral': 2126, 'n_tokens_neox': 1985, 'n_words': 326}