
@model EzeScanWebApps.MVC.Models.RIA.IndexingOverviewModel
@{ ViewBag.Title = Model.PageTitle;}
@{ ViewBag.SubTitle = "Overview"; }
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="panel panel-default">
    <div class="panel-heading">There is currently @Model.Items.Count() folders containing pending indexing.</div>
    <div class="table-responsive">
        <table class="table table-striped">

            <tr>
                <th>Folder</th>
                <th>Count</th>
                <th>Oldest Date Created</th>
                <th>Action</th>
            </tr>

            @foreach (var item in Model.Items)
            {
                <tr>
                    <td><a href="@item.ViewUrl">@item.FolderName</a></td>
                    <td>@item.FolderCount</td>
                    <td>@item.OldestItemDate</td>
                    <td>
                        <a class="btn btn-primary" href="@item.ViewUrl"><span class="glyphicon glyphicon-file"></span> View</a>
                    </td>

                </tr>
            }

        </table>
    </div>
</div>



