diff --git a/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs b/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs index de0c3c2d..f59b8b82 100644 --- a/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs +++ b/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs @@ -7,7 +7,6 @@ using Yavsc.Models.Blog; using Microsoft.Extensions.Options; using Yavsc.Server.Exceptions; using Yavsc.Server.Helpers; -using Yavsc.Blogspot; // For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 diff --git a/src/Yavsc.Org/Services/BlogSpotService.cs b/src/Yavsc.Org/Services/BlogSpotService.cs index 76858c9c..3700e04f 100644 --- a/src/Yavsc.Org/Services/BlogSpotService.cs +++ b/src/Yavsc.Org/Services/BlogSpotService.cs @@ -3,7 +3,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; using Yavsc; -using Yavsc.Blogspot; using Yavsc.Models; using Yavsc.Models.Blog; using Yavsc.Server.Exceptions; diff --git a/src/Yavsc.Org/Views/Blogspot/Index.cshtml b/src/Yavsc.Org/Views/Blogspot/Index.cshtml index d5dc27c9..1e7321aa 100644 --- a/src/Yavsc.Org/Views/Blogspot/Index.cshtml +++ b/src/Yavsc.Org/Views/Blogspot/Index.cshtml @@ -1,4 +1,3 @@ - @model IEnumerable @{ ViewBag.Title = "Blogs, l'index"; @@ -44,20 +43,20 @@ Create a new article

} - +
@{ int maxTextLen = 75; foreach (var post in Model) {
+ - - +

@post.Title

- + @post.Article @Html.DisplayFor(m => post.Author) @@ -68,20 +67,20 @@
- @if ((await AuthorizationService.AuthorizeAsync(User, post, new ReadPermission())).Succeeded) + @if ((await AuthorizationService.AuthorizeAsync(User, post, new ReadPermission())).Succeeded) { - Details + Details } - else + else { - Details + Details } - @if ((await AuthorizationService.AuthorizeAsync(User, post, new EditPermission())).Succeeded) + @if ((await AuthorizationService.AuthorizeAsync(User, post, new EditPermission())).Succeeded) { - Edit - - Delete - + Edit + + Delete + }
diff --git a/src/Yavsc.Org/Views/_ViewImports.cshtml b/src/Yavsc.Org/Views/_ViewImports.cshtml index 79811042..dd88dabc 100755 --- a/src/Yavsc.Org/Views/_ViewImports.cshtml +++ b/src/Yavsc.Org/Views/_ViewImports.cshtml @@ -1,6 +1,5 @@ @using Microsoft.AspNetCore.Mvc.Localization @using Yavsc -@using Yavsc.Blogspot @using Yavsc.Models @using Yavsc.Models.Musical; @using Yavsc.Models.Drawing;