From b6f74f580cec9ce3b1ea07185ce35adb6d870f69 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 18 Mar 2025 20:14:52 -0400 Subject: [PATCH] pages all work --- WebInterface/Controllers/ChannelsController.cs | 7 ------- WebInterface/Views/Accounts/Details.cshtml | 6 ++++-- WebInterface/Views/Channels/Details.cshtml | 2 +- WebInterface/Views/Home/Index.cshtml | 3 +-- WebInterface/Views/Users/Details.cshtml | 4 +++- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/WebInterface/Controllers/ChannelsController.cs b/WebInterface/Controllers/ChannelsController.cs index 164208d..a5c4c95 100644 --- a/WebInterface/Controllers/ChannelsController.cs +++ b/WebInterface/Controllers/ChannelsController.cs @@ -10,13 +10,6 @@ namespace vassago.WebInterface.Controllers; public class ChannelsController() : Controller { - public IActionResult Index() - { - var channels = Rememberer.ChannelsOverview(); - return channels != null ? - View(channels.OrderBy(c => c.LineageSummary)) : - Problem("Entity set '_db.Channels' is null."); - } public async Task Details(Guid id) { var allChannels = Rememberer.ChannelsOverview(); diff --git a/WebInterface/Views/Accounts/Details.cshtml b/WebInterface/Views/Accounts/Details.cshtml index ea6a847..4a18080 100644 --- a/WebInterface/Views/Accounts/Details.cshtml +++ b/WebInterface/Views/Accounts/Details.cshtml @@ -4,16 +4,18 @@ @{ ViewData["Title"] = "Account details"; } + +home/@Html.Raw(ViewData["breadcrumbs"]) - + - + diff --git a/WebInterface/Views/Channels/Details.cshtml b/WebInterface/Views/Channels/Details.cshtml index b342938..4a40142 100644 --- a/WebInterface/Views/Channels/Details.cshtml +++ b/WebInterface/Views/Channels/Details.cshtml @@ -152,7 +152,7 @@ foreach (var acc in ThisChannel.Users.OrderBy(a => a.SeenInChannel.LineageSummary)) { if(!first) - sb.Append(','); + sb.Append(','); sb.Append($"{{text: \"
 
{acc.SeenInChannel.LineageSummary}/{acc.DisplayName}\"}}"); first=false; } diff --git a/WebInterface/Views/Home/Index.cshtml b/WebInterface/Views/Home/Index.cshtml index 446233a..4f5544e 100644 --- a/WebInterface/Views/Home/Index.cshtml +++ b/WebInterface/Views/Home/Index.cshtml @@ -1,8 +1,7 @@ @{ ViewData["Title"] = "Home Page"; } -
-tree above. +
tree here
@section Scripts{
belongs to user @Model.IsUser.DisplayName
Seen in channel
 
@Model.SeenInChannel.LineageSummary@Model.SeenInChannel.DisplayName
Permission Tags