<commit_before>﻿@model cloudscribe.SimpleContent.ContentTemplates.ViewModels.ListWithContentModel

@{
}

TODO implement render<commit_msg>wip on #292<commit_after>﻿@model cloudscribe.SimpleContent.ContentTemplates.ViewModels.ListWithContentModel
@using cloudscribe.SimpleContent.ContentTemplates
@inject IStringLocalizer<ContentTemplateResources> sr
@functions{
    public string GetItemClass(int index)
    {
        if (index == 0) { return "carousel-item active"; }
        return "carousel-item";
    }
}

<div>
    @Html.Raw(Model.ContentAbove)
</div>
<div id="carouselRender" class="carousel slide carousel-fade border" style="max-width:550px;" data-ride="carousel" dat-interval="3000" data-pause="hover">
    <div class="carousel-inner" data-bind="foreach: Items">
        @for (int i = 0; i < Model.Items.Count; i++)
        {
            <div class="@GetItemClass(i)">
                <img class="d-block " src="@Model.Items[i].ResizedUrl" alt="@Model.Items[i].Description" />
                <div class="carousel-caption d-none d-md-block">
                    <h5>@Model.Items[i].Title</h5>
                </div>
            </div>
        }
    </div>
    <a class="carousel-control-prev" href="#carouselEdit" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">@sr["Previous"]</span>
    </a>
    <a class="carousel-control-next" href="#carouselEdit" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">@sr["Next"]</span>
    </a>
</div>
<div>
    @Html.Raw(Model.ContentBelow)
</div>
{'fraction_non_alphanumeric': 0.1686602870813397, 'fraction_numerical': 0.008373205741626795, 'mean_word_length': 3.391076115485564, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 31, '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': '3234885', 'n_tokens_mistral': 553, 'n_tokens_neox': 531, 'n_words': 90}