Skip to content

Commit

Permalink
update sub list ui
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 18, 2023
1 parent d7483bb commit 85cdfb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions src/Moonglade.Web/Pages/Shared/_Aside.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -102,23 +102,20 @@
<div class="modal-body">
<div class="row mb-4">
<div class="col-6">
<a asp-controller="Subscription" asp-action="rss" class="btn w-100 btn-outline-success">
<a asp-controller="Subscription" asp-action="rss" class="btn w-100 btn-outline-accent">
@SharedLocalizer["Latest Posts"] (RSS)
</a>
</div>
<div class="col-6">
<a asp-controller="Subscription" asp-action="Atom" class="btn w-100 btn-outline-success">
<a asp-controller="Subscription" asp-action="Atom" class="btn w-100 btn-outline-accent">
@SharedLocalizer["Latest Posts"] (Atom)
</a>
</div>
</div>
<div class="row">
@await Component.InvokeAsync("RssList")
@await Component.InvokeAsync("SubList")
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">@SharedLocalizer["Close"]</button>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Moonglade.Web.ViewComponents;

public class RssListViewComponent : ViewComponent
public class SubListViewComponent : ViewComponent
{
private readonly ILogger<RssListViewComponent> _logger;
private readonly ILogger<SubListViewComponent> _logger;
private readonly IMediator _mediator;


public RssListViewComponent(ILogger<RssListViewComponent> logger, IMediator mediator)
public SubListViewComponent(ILogger<SubListViewComponent> logger, IMediator mediator)
{
_logger = logger;
_mediator = mediator;
Expand Down

0 comments on commit 85cdfb8

Please sign in to comment.