From ddefe2508155568ad49021543c4c6150f1f3fd5b Mon Sep 17 00:00:00 2001 From: the1mason Date: Mon, 21 Oct 2024 22:02:16 +0500 Subject: [PATCH] Smol stuff.. --- src/FastBlog.Web/Views/Blogs/ListEdit.cshtml | 123 +++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 src/FastBlog.Web/Views/Blogs/ListEdit.cshtml diff --git a/src/FastBlog.Web/Views/Blogs/ListEdit.cshtml b/src/FastBlog.Web/Views/Blogs/ListEdit.cshtml new file mode 100644 index 0000000..2ff6fd9 --- /dev/null +++ b/src/FastBlog.Web/Views/Blogs/ListEdit.cshtml @@ -0,0 +1,123 @@ +@using FastBlog.Web.Helpers +@model FastBlog.Core.Models.PagedResponse + + +@{ + ViewBag.Title = "Blogs"; +} + +
+ + +
+
+
+ + + + +
+ +

List of Blogs

+
+ + + @if (Model.Data.Length is 0) + { +

No blogs have been found

+ } + +
+
+

Name

+
+
+

Published

+
+
+

Visible

+
+
+

Actions

+
+
+ + @foreach (var blog in Model.Data) + { +
+
+

+ @if (blog.CreatedAt < DateTime.UtcNow) + { + @blog.Title + } + else + { + @blog.Title + } +

+
+
+

+ @if (blog.CreatedAt < DateTime.UtcNow) + { + @blog.CreatedAt.ToString("yy-MM-dd HH:mm:ss") + ; + } + else + { + @blog.CreatedAt.ToString("yy-MM-dd HH:mm:ss") + ; + } +

+
+
+

+ + @if (blog.Visible) + { + Yes + } + else + { + No + } + +

+
+ +
+
+ } + + +
+
\ No newline at end of file