<commit_before>﻿@model WebApiPagedResponseDTO<FileInfo>

@{
    ViewBag.PageTitle = ((DirectoryInfo)ViewBag.Album).Name.PascalCase().GetStringWithSpacesAndFirstLetterUpper();
    ViewBag.Description = ((DirectoryInfo)ViewBag.Album).Name.PascalCase().GetStringWithSpacesAndFirstLetterUpper() + " Album";

    ViewBag.Blog = true;
    //ViewBag.BlogFullWidth = true;
    var mainPhotoVideo = ((DirectoryInfo)ViewBag.Album).MainPhotoOrVideo();
    var mainImageShare = mainPhotoVideo != null ? mainPhotoVideo.AbsoluteShareUrlSlug() : "";
    ViewBag.MainImage = mainImageShare;

    HashSet<string> files = new HashSet<string>();
}

<div class="row">
    <!-- AddThis -->
    <div class="col-12 blog-post-share-links">
        @Html.AddThisLinks(System.Configuration.ConfigurationManager.AppSettings["SiteUrl"], Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"] }).ToString(), string.Format("{0} | {1}", (string)ViewBag.PageTitle.ToString(), (string)System.Configuration.ConfigurationManager.AppSettings["SiteTitle"]), (string)ViewBag.PageTitle.ToString() + " Album", mainImageShare)
    </div>
</div>

<div class="instafeed card-columns-md-2 gallery" id="gallery" data-infinite-scroll='{ "button" : ".view-more-button", "scrollThreshold" : false, "path": ".pagination__next", "append": ".media-item", "status":".page-load-status", "hideNav" : ".pagination-nav" , "history" : false }'>
    @Html.Partial("_GalleryList", Model)
</div>

<div class="page-load-status" style="display:none">
    <div class="loader-ellips infinite-scroll-request">
        <span class="loader-ellips__dot"></span>
        <span class="loader-ellips__dot"></span>
        <span class="loader-ellips__dot"></span>
        <span class="loader-ellips__dot"></span>
    </div>
    <p class="infinite-scroll-last"></p>
    <p class="infinite-scroll-error"></p>
</div>

<p><button class="view-more-button btn btn-primary">View more</button></p>

@{Func<int, string> link = pageIndex => Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"], page = pageIndex });}
@HtmlHelperExtensions.BootstrapPager(Html, Model.Page, link, Model.TotalItems, Model.PageSize, 5)

@if (System.Configuration.ConfigurationManager.AppSettings.AllKeys.Contains("FacebookAppId") && System.Configuration.ConfigurationManager.AppSettings["FacebookAppId"] != "")
{
@Html.FacebookCommentsThread(
        System.Configuration.ConfigurationManager.AppSettings["SiteUrl"].ToString(),
        Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"] }).ToString(),
        (string)ViewBag.PageTitle.ToString())
}

@if (System.Configuration.ConfigurationManager.AppSettings.AllKeys.Contains("DisqusShortName") && System.Configuration.ConfigurationManager.AppSettings["DisqusShortName"] != "")
{
@Html.DisqusThread(
        System.Configuration.ConfigurationManager.AppSettings["DisqusShortName"].ToString(),
        System.Configuration.ConfigurationManager.AppSettings["SiteUrl"].ToString(),
        Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"] }).ToString(),
        (string)ViewBag.PageTitle.ToString())
}<commit_msg>Full width button<commit_after>﻿@model WebApiPagedResponseDTO<FileInfo>

@{
    ViewBag.PageTitle = ((DirectoryInfo)ViewBag.Album).Name.PascalCase().GetStringWithSpacesAndFirstLetterUpper();
    ViewBag.Description = ((DirectoryInfo)ViewBag.Album).Name.PascalCase().GetStringWithSpacesAndFirstLetterUpper() + " Album";

    ViewBag.Blog = true;
    //ViewBag.BlogFullWidth = true;
    var mainPhotoVideo = ((DirectoryInfo)ViewBag.Album).MainPhotoOrVideo();
    var mainImageShare = mainPhotoVideo != null ? mainPhotoVideo.AbsoluteShareUrlSlug() : "";
    ViewBag.MainImage = mainImageShare;

    HashSet<string> files = new HashSet<string>();
}

<div class="row">
    <!-- AddThis -->
    <div class="col-12 blog-post-share-links">
        @Html.AddThisLinks(System.Configuration.ConfigurationManager.AppSettings["SiteUrl"], Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"] }).ToString(), string.Format("{0} | {1}", (string)ViewBag.PageTitle.ToString(), (string)System.Configuration.ConfigurationManager.AppSettings["SiteTitle"]), (string)ViewBag.PageTitle.ToString() + " Album", mainImageShare)
    </div>
</div>

<div class="instafeed card-columns-md-2 gallery" id="gallery" data-infinite-scroll='{ "button" : ".view-more-button", "scrollThreshold" : false, "path": ".pagination__next", "append": ".media-item", "status":".page-load-status", "hideNav" : ".pagination-nav" , "history" : false }'>
    @Html.Partial("_GalleryList", Model)
</div>

<div class="page-load-status" style="display:none">
    <div class="loader-ellips infinite-scroll-request">
        <span class="loader-ellips__dot"></span>
        <span class="loader-ellips__dot"></span>
        <span class="loader-ellips__dot"></span>
        <span class="loader-ellips__dot"></span>
    </div>
    <p class="infinite-scroll-last"></p>
    <p class="infinite-scroll-error"></p>
</div>

<p><button class="view-more-button btn btn-primary w-100">View more</button></p>

@{Func<int, string> link = pageIndex => Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"], page = pageIndex });}
@HtmlHelperExtensions.BootstrapPager(Html, Model.Page, link, Model.TotalItems, Model.PageSize, 5)

@if (System.Configuration.ConfigurationManager.AppSettings.AllKeys.Contains("FacebookAppId") && System.Configuration.ConfigurationManager.AppSettings["FacebookAppId"] != "")
{
@Html.FacebookCommentsThread(
        System.Configuration.ConfigurationManager.AppSettings["SiteUrl"].ToString(),
        Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"] }).ToString(),
        (string)ViewBag.PageTitle.ToString())
}

@if (System.Configuration.ConfigurationManager.AppSettings.AllKeys.Contains("DisqusShortName") && System.Configuration.ConfigurationManager.AppSettings["DisqusShortName"] != "")
{
@Html.DisqusThread(
        System.Configuration.ConfigurationManager.AppSettings["DisqusShortName"].ToString(),
        System.Configuration.ConfigurationManager.AppSettings["SiteUrl"].ToString(),
        Url.Action("Gallery", new { name = ViewContext.RouteData.Values["name"] }).ToString(),
        (string)ViewBag.PageTitle.ToString())
}
{'fraction_non_alphanumeric': 0.1707511139401655, 'fraction_numerical': 0.002387014640356461, 'mean_word_length': 5.4198161389172625, 'pattern_counts': {'":': 6, '<': 65, '<?xml version=': 0, '>': 67, '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': '103455', 'n_tokens_mistral': 1884, 'n_tokens_neox': 1846, 'n_words': 267}