- @Html.Raw(RenderMarkdownToHtml(Model.Post.Content)) -
-diff --git a/modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs b/modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs
index 063ecebf5b..00fa553902 100644
--- a/modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs
+++ b/modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs
@@ -59,10 +59,10 @@ namespace Volo.Blogging
var routePrefix = urlOptions.RoutePrefix;
- options.Conventions.AddPageRoute("/Blog/Posts/Index", routePrefix + "{blogShortName}");
- options.Conventions.AddPageRoute("/Blog/Posts/Detail", routePrefix + "{blogShortName}/{postUrl}");
- options.Conventions.AddPageRoute("/Blog/Posts/Edit", routePrefix + "{blogShortName}/posts/{postId}/edit");
- options.Conventions.AddPageRoute("/Blog/Posts/New", routePrefix + "{blogShortName}/posts/new");
+ options.Conventions.AddPageRoute("/Blogs/Posts/Index", routePrefix + "{blogShortName}");
+ options.Conventions.AddPageRoute("/Blogs/Posts/Detail", routePrefix + "{blogShortName}/{postUrl}");
+ options.Conventions.AddPageRoute("/Blogs/Posts/Edit", routePrefix + "{blogShortName}/posts/{postId}/edit");
+ options.Conventions.AddPageRoute("/Blogs/Posts/New", routePrefix + "{blogShortName}/posts/new");
});
}
}
diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml
deleted file mode 100644
index 4c945e8aac..0000000000
--- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml
+++ /dev/null
@@ -1,319 +0,0 @@
-@page
-@inherits Volo.Blogging.Pages.Blog.BloggingPage
-@using Microsoft.AspNetCore.Authorization
-@using Microsoft.AspNetCore.Http.Extensions
-@using Volo.Abp.Users
-@using Volo.Blogging
-@using Volo.Blogging.Pages.Blog.Posts
-@using Volo.Blogging.Areas.Blog.Helpers.TagHelpers
-@inject IAuthorizationService Authorization
-@model DetailModel
-@{
- ViewBag.PageTitle = "Blog";
- var hasCommentingPermission = CurrentUser.IsAuthenticated; //TODO: Apply real policy!
-}
-@section scripts {
-
- @Html.Raw(RenderMarkdownToHtml(Model.Post.Content)) -
-@L["CommentWithCount", @Model.CommentCount]
- @if (hasCommentingPermission) - { - @L["LeaveComment"] - } - else - { - @L["LeaveComment"] - } -+ @Html.Raw(RenderMarkdownToHtml(Model.Post.Content)) +
+@L["CommentWithCount", @Model.CommentCount]
+ @if (hasCommentingPermission) + { + @L["LeaveComment"] + } + else + { + @L["LeaveComment"] + } ++ @commentWithRepliesDto.Comment.Text +
+ + + @if (hasCommentingPermission) + { ++ @reply.Text +
+ + + @if (hasCommentingPermission) + { +
- @(commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName) - @ConvertDatetimeToTimeAgo(commentWithRepliesDto.Comment.CreationTime) -
-- @commentWithRepliesDto.Comment.Text -
-- @L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] - -
-- @(reply.Writer == null ? "" : reply.Writer.UserName) - @ConvertDatetimeToTimeAgo(reply.CreationTime) -
-- @reply.Text -
-- @L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] -
-