mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-27 09:18:36 +01:00
28 lines
711 B
Text
28 lines
711 B
Text
@using InnerTube.Models
|
|
@model LightTube.Contexts.SearchContext
|
|
|
|
@{
|
|
ViewBag.Title = Model.Query;
|
|
Layout = "_Layout";
|
|
ViewData["UseFullSizeSearchBar"] = Model.MobileLayout;
|
|
}
|
|
|
|
<div class="video-list">
|
|
@foreach (DynamicItem preview in Model.Results.Results)
|
|
{
|
|
@preview.GetHtml()
|
|
}
|
|
</div>
|
|
<div class="pagination-buttons">
|
|
@if (!string.IsNullOrWhiteSpace(Model.ContinuationKey))
|
|
{
|
|
<a href="/results?search_query=@Model.Query">First Page</a>
|
|
}
|
|
<div class="divider"></div>
|
|
<span>•</span>
|
|
<div class="divider"></div>
|
|
@if (!string.IsNullOrWhiteSpace(Model.Results.ContinuationKey))
|
|
{
|
|
<a href="/results?search_query=@Model.Query&continuation=@Model.Results.ContinuationKey">Next Page</a>
|
|
}
|
|
</div>
|