<commit_before>﻿@model IEnumerable<Derby.Models.Scout>

@{
    ViewBag.Title = "Scouts";
}

<h3>Scouts</h3>

<p>
    @Html.ActionLink("Create New", "Create", "Scout", new { }, new { @class = "btn btn-xs btn-success" }) &nbsp;|&nbsp;
    @Html.ActionLink("Back to Pack List", "index", "Pack", new { }, new { @class = "btn btn-xs btn-default" })
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateDateTime)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @if (!item.Inactive) { 
                @Html.ActionLink(item.Name, "Details", new { id = item.Id })
            }
            else
            {
                @Html.DisplayFor(modelItem => item.Name)
            }
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateDateTime)
        </td>
        <td>
            @if (!item.Inactive)
            {
                <a href="@Url.Action("Details", "Scout", new { id = item.Id })" class="btn btn-xs btn-default" title="Details"><i class="icon-info"></i>&nbsp; Details</a>
                @Html.ActionLink("Details", "Details", new { id=item.Id }) @:|
            }
            
            @if (!item.Inactive)
            {
            @Html.ActionLink("Inactivate", "Delete", new { id=item.Id })
            }
            else
            {
                @Html.ActionLink("Activate", "Activate", new { id = item.Id })
            }
        </td>
    </tr>
}

</table><commit_msg>Corrected Back to Pack link<commit_after>﻿@model IEnumerable<Derby.Models.Scout>

@{
    ViewBag.Title = "Scouts";
}

<h3>Scouts</h3>

<p>
    @Html.ActionLink("Create New", "Create", "Scout", new { }, new { @class = "btn btn-xs btn-success" }) &nbsp;|&nbsp;
    @Html.ActionLink("Back to Pack", "details", "Pack", new { id = Convert.ToInt32(Url.RequestContext.RouteData.Values["packId"]) }, new { @class = "btn btn-xs btn-default" })
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateDateTime)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @if (!item.Inactive) { 
                @Html.ActionLink(item.Name, "Details", new { id = item.Id })
            }
            else
            {
                @Html.DisplayFor(modelItem => item.Name)
            }
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateDateTime)
        </td>
        <td>
            @if (!item.Inactive)
            {
                <a href="@Url.Action("Details", "Scout", new { id = item.Id })" class="btn btn-xs btn-default" title="Details"><i class="fa fa-info"></i>&nbsp; Details</a>
                @Html.ActionLink("Details", "Details", new { id=item.Id }) @:|
            }
            
            @if (!item.Inactive)
            {
            @Html.ActionLink("Inactivate", "Delete", new { id=item.Id })
            }
            else
            {
                @Html.ActionLink("Activate", "Activate", new { id = item.Id })
            }
        </td>
    </tr>
}

</table>
{'fraction_non_alphanumeric': 0.17616737416616132, 'fraction_numerical': 0.0018192844147968466, 'mean_word_length': 1.6392, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 65, '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': '3719710', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1053, 'n_words': 203}