<commit_before>﻿@using NZBDash.UI.Helpers
@model IEnumerable<NZBDash.UI.Models.ViewModels.Sonarr.SonarrSeriesViewModel>

<div class="panel panel-default">
    <div class="panel-heading">
        @ViewBag.Title

    </div>
    <div class="panel-body">
        <div class="col-md-12 row grid-row">
            <strong>
                <div class="col-md-2">Title</div>
                <div class="col-md-2">Status</div>
                <div class="col-md-4 text-center">Overview</div>
                <div class="col-md-2">Episode Count</div>
                <div class="col-md-2">First Aired</div>
            </strong>
        </div>
        <br/>
        <hr/>
        @foreach (var series in Model)
        {
            @*// TODO: add the background image to each series (series.ImageUrls) *@
            <div class="col-md-12 row grid-row">
                <div class="col-md-2 title">
                    <a id="@series.Id" href="@Url.Action("GetEpisodes")?id=@series.Id&title=@(Url.Encode(series.Title))" data-target="#myModal">@series.Title</a>
                </div>
                <div class="col-md-2">@series.Status</div>
                <div class="col-md-4">@series.Overview</div>
                <div class="col-md-2">@series.EpisodeCount</div>
                <div class="col-md-2">@series.FirstAired</div>
            </div>
        }
    </div>
</div>



<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-dialog-middle modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel"></h4>
            </div>
            <div class="modal-body">
                @Html.LoadingSpinner()
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<script>
    $(function() {
        $("a[data-target=#myModal]").click(function (ev) {
            console.log("clicked");
            ev.preventDefault();
            var target = $(this).attr("href");

            // load the url and show modal on success
            $("#myModal .modal-body").load(target, function() { 
                $("#myModal").modal("show");
                $('#myModal').modal('handleUpdate');
            });
        });<commit_msg>Styling on the episodes modal<commit_after>﻿@using NZBDash.UI.Helpers
@model IEnumerable<NZBDash.UI.Models.ViewModels.Sonarr.SonarrSeriesViewModel>

<div class="panel panel-default">
    <div class="panel-heading">
        @ViewBag.Title

    </div>
    <div class="panel-body">
        <div class="col-md-12 row grid-row">
            <strong>
                <div class="col-md-2">Title</div>
                <div class="col-md-2">Status</div>
                <div class="col-md-4 text-center">Overview</div>
                <div class="col-md-2">Episode Count</div>
                <div class="col-md-2">First Aired</div>
            </strong>
        </div>
        <br/>
        <hr/>
        @foreach (var series in Model)
        {
            @*// TODO: add the background image to each series (series.ImageUrls) *@
            <div class="col-md-12 row grid-row">
                <div class="col-md-2 title">
                    <a id="@series.Id" href="@Url.Action("GetEpisodes")?id=@series.Id&title=@(Url.Encode(series.Title))" data-target="#myModal">@series.Title</a>
                </div>
                <div class="col-md-2">@series.Status</div>
                <div class="col-md-4">@series.Overview</div>
                <div class="col-md-2">@series.EpisodeCount</div>
                <div class="col-md-2">@series.FirstAired</div>
            </div>
        }
    </div>
</div>



<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-dialog-middle modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-body">
                @Html.LoadingSpinner()
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<script>
    $(function() {
        $("a[data-target=#myModal]").click(function (ev) {
            ev.preventDefault();
            var target = $(this).attr("href");

            // load the url and show modal on success
            $("#myModal .modal-body").load(target, function() { 
                $("#myModal").modal("show");
            });
        });
{'fraction_non_alphanumeric': 0.17870332375871975, 'fraction_numerical': 0.006565449322938038, 'mean_word_length': 1.9087112171837708, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '810937', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1464, 'n_words': 262}