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 + } + +

+
+
+

+ + [ Delete ] + + [ Edit ] +

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