forked from adam/discord-bot-shtik
pages all work
This commit is contained in:
parent
488a89614a
commit
b6f74f580c
@ -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();
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user