Initial version

This commit is contained in:
2026-04-06 08:15:54 +02:00
parent 97b08ad6c8
commit 8db1a6a556
231 changed files with 96983 additions and 63 deletions

View File

@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using EonaCat.LogStack.Status.Data;
using EonaCat.LogStack.Status.Models;
namespace EonaCat.LogStack.Status.Pages;
public class CertificatesModel : PageModel
{
private readonly DatabaseContext _db;
public CertificatesModel(DatabaseContext db) => _db = db;
public List<CertificateEntry> Certificates { get; set; } = new List<CertificateEntry>();
public bool IsAdmin { get; set; }
public async Task OnGetAsync()
{
IsAdmin = HttpContext.Session.GetString("IsAdmin") == "true";
Certificates = await _db.Certificates.OrderBy(c => c.ExpiresAt).ToListAsync();
}
}