From 7d1cca9df0eb204ba587b50bf1d22ff30ea724e9 Mon Sep 17 00:00:00 2001
From: Paul Schneider
Date: Mon, 3 Aug 2026 02:16:57 +0100
Subject: [PATCH] build
---
.../Communicating/BlogspotController.cs | 1 +
src/Yavsc.Org/Services/BlogSpotService.cs | 1 +
src/Yavsc.Org/Views/Blogspot/Index.cshtml | 27 ++++++++++---------
src/Yavsc.Org/Views/_ViewImports.cshtml | 1 +
4 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs b/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs
index f59b8b82..de0c3c2d 100644
--- a/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs
+++ b/src/Yavsc.Org/Controllers/Communicating/BlogspotController.cs
@@ -7,6 +7,7 @@ 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 3700e04f..76858c9c 100644
--- a/src/Yavsc.Org/Services/BlogSpotService.cs
+++ b/src/Yavsc.Org/Services/BlogSpotService.cs
@@ -3,6 +3,7 @@ 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 1e7321aa..d5dc27c9 100644
--- a/src/Yavsc.Org/Views/Blogspot/Index.cshtml
+++ b/src/Yavsc.Org/Views/Blogspot/Index.cshtml
@@ -1,3 +1,4 @@
+
@model IEnumerable
@{
ViewBag.Title = "Blogs, l'index";
@@ -43,20 +44,20 @@
Create a new article
}
-
+
@{
int maxTextLen = 75;
foreach (var post in Model) {
-
-
+
+
@post.Title
-
+
@post.Article
@Html.DisplayFor(m => post.Author)
@@ -67,20 +68,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 dd88dabc..79811042 100755
--- a/src/Yavsc.Org/Views/_ViewImports.cshtml
+++ b/src/Yavsc.Org/Views/_ViewImports.cshtml
@@ -1,5 +1,6 @@
@using Microsoft.AspNetCore.Mvc.Localization
@using Yavsc
+@using Yavsc.Blogspot
@using Yavsc.Models
@using Yavsc.Models.Musical;
@using Yavsc.Models.Drawing;