Neighbourhood.omg.lol/Components/Pages/StatuslogLatest.razor

22 lines
690 B
Text

@page "/"
@page "/statuslog/latest"
@inject State State
<PageHeading title="Status.lol" icon="fa-solid fa-message-smile">
<Description>The latest posts from everyone at <a href="https://status.lol">status.lol</a></Description>
</PageHeading>
<AuthorizeView>
<Authorized>
<button class="fab circle extra large-elevate" data-ui="#post-modal">
<i class="fa-solid fa-pen-to-square"></i>
</button>
<NewStatusDialog id="post-modal"></NewStatusDialog>
</Authorized>
</AuthorizeView>
<div id="statuses" class="responsive">
<StatusList StatusFunc="@(async(forceRefresh) => await State.GetStatuses(forceRefresh))"></StatusList>
</div>
<RefreshButton></RefreshButton>