<commit_before>﻿@model Spc.Ofp.Tubs.DAL.Entities.SafetyInspection

@* For now, create this in the View. *@
@{
    IEnumerable<Tuple<string, string>> crumbs = new List<Tuple<string, string>>()
    {
        Tuple.Create(Url.Action("Index", "Trip"), "Trips"),
        Tuple.Create(Url.Action("Details", "Trip", new { tripId = ViewBag.TripId }), ViewBag.TripNumber as string),
        Tuple.Create("#", "Safety Inspection")
    };
}

@{ Html.RenderPartial("_BreadCrumbs", crumbs); }

@if (null == Model)
{
    <p>
        No safety inspection details available for this trip.
    </p>
}
else
{
    <fieldset>
        <legend>Lifejacket and Buoys</legend>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.LifejacketProvided)</div>
            <div class="span2">@Html.DisplayFor(m => m.LifejacketProvided)</div>
        </div>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.LifejacketSizeOk)</div>
            <div class="span2">@Html.DisplayFor(m => m.LifejacketSizeOk)</div>
        </div>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.LifejacketAvailability)</div>
            <div class="span2">@Html.DisplayFor(m => m.LifejacketAvailability)</div>
        </div>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.BuoyCount)</div>
            <div class="span2">@Html.DisplayFor(m => m.BuoyCount)</div>
        </div>
    </fieldset>
    <br />
    if (Model.Epirb1.BeaconType != null || Model.Epirb1.Expiration != null || Model.Epirb1.Count.HasValue)
    {
    <fieldset>
        <legend>EPIRB #1</legend>
        @Html.DisplayFor(m => m.Epirb1)       
    </fieldset>
    <br />
    }
    if (Model.Epirb2.BeaconType != null || Model.Epirb2.Expiration != null || Model.Epirb2.Count.HasValue)
    {<commit_msg>Fixed production error with display of Safety Gear.<commit_after>﻿@model Spc.Ofp.Tubs.DAL.Entities.SafetyInspection

@* For now, create this in the View. *@
@{
    IEnumerable<Tuple<string, string>> crumbs = new List<Tuple<string, string>>()
    {
        Tuple.Create(Url.Action("Index", "Trip"), "Trips"),
        Tuple.Create(Url.Action("Details", "Trip", new { tripId = ViewBag.TripId }), ViewBag.TripNumber as string),
        Tuple.Create("#", "Safety Inspection")
    };
}

@{ Html.RenderPartial("_BreadCrumbs", crumbs); }

@if (null == Model)
{
    <p>
        No safety inspection details available for this trip.
    </p>
}
else
{
    <fieldset>
        <legend>Lifejacket and Buoys</legend>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.LifejacketProvided)</div>
            <div class="span2">@Html.DisplayFor(m => m.LifejacketProvided)</div>
        </div>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.LifejacketSizeOk)</div>
            <div class="span2">@Html.DisplayFor(m => m.LifejacketSizeOk)</div>
        </div>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.LifejacketAvailability)</div>
            <div class="span2">@Html.DisplayFor(m => m.LifejacketAvailability)</div>
        </div>
        <div class="row">
            <div class="span4">@Html.LabelFor(m => m.BuoyCount)</div>
            <div class="span2">@Html.DisplayFor(m => m.BuoyCount)</div>
        </div>
    </fieldset>
    <br />
    if (Model.Epirb1 != null && (Model.Epirb1.BeaconType != null || Model.Epirb1.Expiration != null || Model.Epirb1.Count.HasValue))
    {
    <fieldset>
        <legend>EPIRB #1</legend>
        @Html.DisplayFor(m => m.Epirb1)       
    </fieldset>
    <br />
    }
    if (Model.Epirb2 != null && (Model.Epirb2.BeaconType != null || Model.Epirb2.Expiration != null || Model.Epirb2.Count.HasValue))
    {
{'fraction_non_alphanumeric': 0.1768617021276596, 'fraction_numerical': 0.009042553191489361, 'mean_word_length': 2.6981317600786627, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 101, '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': '7476197', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1309, 'n_words': 223}