<commit_before>@using Microsoft.eShopOnContainers.WebMVC.ViewModels

@model IEnumerable<Microsoft.eShopOnContainers.WebMVC.ViewModels.Order>

@{
    ViewData["Title"] = "My Orders";
}

<div class="esh-orders">
    @Html.Partial("_Header", new List<Header>() {
        new Header() { Controller = "Catalog", Text = "Back to catalog" },
        new Header() { Controller = "OrderManagement", Text = "Orders Management" } })

    <div class="container">
        <article class="esh-orders-titles row">
            <section class="esh-orders-title col-xs-2">Order number</section>
            <section class="esh-orders-title col-xs-4">Date</section>
            <section class="esh-orders-title col-xs-2">Total</section>
            <section class="esh-orders-title col-xs-2">Status</section>
            <section class="esh-orders-title col-xs-2"></section>
        </article>

        @foreach (var item in Model)
        {
            <article class="esh-orders-items row">
                <section class="esh-orders-item col-xs-2">@Html.DisplayFor(modelItem => item.OrderNumber)</section>
                <section class="esh-orders-item col-xs-4">@Html.DisplayFor(modelItem => item.Date)</section>
                <section class="esh-orders-item col-xs-2">$ @Html.DisplayFor(modelItem => item.Total)</section>
                <section class="esh-orders-item col-xs-2">@Html.DisplayFor(modelItem => item.Status)</section>
                <section class="esh-orders-item col-xs-1">
                    <a class="esh-orders-link" asp-controller="Order" asp-action="Detail" asp-route-orderId="@item.OrderNumber">Detail</a>
                </section>
                <section class="esh-orders-item col-xs-1">
                    @if ((item.Status.ToLower() != "shipped") && (item.Status.ToLower() != "cancelled"))
                    {
                        <a class="esh-orders-link" asp-controller="Order" asp-action="Cancel" asp-route-orderId="@item.OrderNumber">Cancel</a>
                    }                    
                </section>
            </article>
        }
    </div>
</div>
<commit_msg>Changing status item condition in order view<commit_after>@using Microsoft.eShopOnContainers.WebMVC.ViewModels

@model IEnumerable<Microsoft.eShopOnContainers.WebMVC.ViewModels.Order>

@{
    ViewData["Title"] = "My Orders";
}

<div class="esh-orders">
    @Html.Partial("_Header", new List<Header>() {
        new Header() { Controller = "Catalog", Text = "Back to catalog" },
        new Header() { Controller = "OrderManagement", Text = "Orders Management" } })

    <div class="container">
        <article class="esh-orders-titles row">
            <section class="esh-orders-title col-xs-2">Order number</section>
            <section class="esh-orders-title col-xs-4">Date</section>
            <section class="esh-orders-title col-xs-2">Total</section>
            <section class="esh-orders-title col-xs-2">Status</section>
            <section class="esh-orders-title col-xs-2"></section>
        </article>

        @foreach (var item in Model)
        {
            <article class="esh-orders-items row">
                <section class="esh-orders-item col-xs-2">@Html.DisplayFor(modelItem => item.OrderNumber)</section>
                <section class="esh-orders-item col-xs-4">@Html.DisplayFor(modelItem => item.Date)</section>
                <section class="esh-orders-item col-xs-2">$ @Html.DisplayFor(modelItem => item.Total)</section>
                <section class="esh-orders-item col-xs-2">@Html.DisplayFor(modelItem => item.Status)</section>
                <section class="esh-orders-item col-xs-1">
                    <a class="esh-orders-link" asp-controller="Order" asp-action="Detail" asp-route-orderId="@item.OrderNumber">Detail</a>
                </section>
                <section class="esh-orders-item col-xs-1">
                    @if (item.Status.ToLower() == "submited")
                    {
                        <a class="esh-orders-link" asp-controller="Order" asp-action="cancel" asp-route-orderId="@item.OrderNumber">Cancel</a>
                    }                    
                </section>
            </article>
        }
    </div>
</div>

{'fraction_non_alphanumeric': 0.15889628924833493, 'fraction_numerical': 0.005233111322549952, 'mean_word_length': 2.2980392156862743, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2875240', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1193, 'n_words': 204}