From 0efdcfeed17477cbf904a0b30a3a1750519cb18f Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Thu, 25 Oct 2018 13:20:29 +0300 Subject: [PATCH] Blogging: Place Create A New Post button on index page. https://github.com/abpframework/abp/issues/452 --- .../src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml index 782e5b7989..f8e71cd5dc 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml @@ -109,6 +109,13 @@
+ + + @if (await Authorization.IsGrantedAsync(BloggingPermissions.Posts.Create)) + { + @L["CreateANewPost"] + } +
@for (var index = 0; index < Model.Posts.Count && index < 3; index++) {