summaryrefslogtreecommitdiff
path: root/CoreWiki/Pages/_articleList.cshtml
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-29 09:41:56 +0100
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-29 09:41:56 +0100
commit79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 (patch)
treeddf121e78bdd50673379b223abfdb448c4f81291 /CoreWiki/Pages/_articleList.cshtml
parent1a96616699ab41bf6343bc1acc45a836c3e6caf3 (diff)
Cywilizowany tailwindHEADmaster
Diffstat (limited to 'CoreWiki/Pages/_articleList.cshtml')
-rw-r--r--CoreWiki/Pages/_articleList.cshtml20
1 files changed, 20 insertions, 0 deletions
diff --git a/CoreWiki/Pages/_articleList.cshtml b/CoreWiki/Pages/_articleList.cshtml
new file mode 100644
index 0000000..7b8b038
--- /dev/null
+++ b/CoreWiki/Pages/_articleList.cshtml
@@ -0,0 +1,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>
+} \ No newline at end of file