summaryrefslogtreecommitdiff
path: root/CoreWiki/Pages/_articleList.cshtml
blob: 7b8b038f6c6bec7ea3d585e7bb438db4ff4074ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@model IEnumerable<CoreWiki.Models.Article>

@foreach (var item in Model)
{
    <div class="flex flex-col border rounded mb-3">
        <h3 class="bg-gray-50 p-2 border-b">
            <a href="~/@item.Slug">@item.Topic</a>
        </h3>
        <div class="flex flex-col p-2">
            <h6 class="font-normal card-subtitle mb-2 text-gray-500">
                <span data-value="@item.Published" class="timeStampValue">@item.Published</span>
            </h6>

            <div class="flex space-x-2">
                <a class="text-white bg-blue-500 hover:bg-blue-700 focus:ring-4 focus:ring-blue-300 font-medium rounded text-sm px-3.5 py-2 focus:outline-none" asp-page="./Edit" asp-route-slug="@item.Slug">Edit</a>
                <a class="text-white bg-blue-500 hover:bg-blue-700 focus:ring-4 focus:ring-blue-300 font-medium rounded text-sm px-3.5 py-2 focus:outline-none" asp-page="./Delete" asp-route-slug="@item.Slug">Delete</a>
            </div>
        </div>
    </div>
}