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<IActionResult> 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"; } + +<a href="/">home</a>/@Html.Raw(ViewData["breadcrumbs"]) <table class="table"> <tbody> <tr> <th scope="row">belongs to user</th> <td>@Model.IsUser.DisplayName</td> - <td><button alt="to do" disabled>separate</button></td> + <td><button alt="to do" disabled>separate</button></2td> </tr> <tr> <th scope="row">Seen in channel</th> - <td><div class="protocol-icon"> </div>@Model.SeenInChannel.LineageSummary<a href="/Channels/Details/@Model.SeenInChannel.Id">@Model.SeenInChannel.DisplayName</a></td> + <td class="account @Model.SeenInChannel.Protocol"><div class="protocol-icon"> </div>@Model.SeenInChannel.LineageSummary<a href="/Channels/Details/@Model.SeenInChannel.Id">@Model.SeenInChannel.DisplayName</a></td> </tr> <tr> <th scope="row">Permission Tags</th> 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: \"<div class=\\\"account {acc.Protocol}\\\"><div class=\\\"protocol-icon\\\"> </div>{acc.SeenInChannel.LineageSummary}/<a href=\\\"/Accounts/Details/{acc.Id}\\\">{acc.DisplayName}</a>\"}}"); 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"; } -<div id="tree"></div> -tree above. +<div id="tree">tree here</div> @section Scripts{ <script type="text/javascript"> diff --git a/WebInterface/Views/Users/Details.cshtml b/WebInterface/Views/Users/Details.cshtml index ffa17f0..cfd2741 100644 --- a/WebInterface/Views/Users/Details.cshtml +++ b/WebInterface/Views/Users/Details.cshtml @@ -4,11 +4,13 @@ @{ ViewData["Title"] = "User details"; } + +<a href="/">home</a>/@Html.Raw(ViewData["breadcrumbs"]) <table class="table"> <tbody> <tr> <th scope="row">Display Name (here)</th> - <td><input type="text" id="displayName" value="@Model.DisplayName"></input> <button + <td><input type="text" id="displayName" value="@Model.DisplayName" disabled alt="todo"></input> <button onclick="patchModel(jsonifyUser(), @Html.Raw("'/api/Users/'"))" disabled alt"todo">update</button></td> </tr> <tr>