mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 21:14:39 -05:00
29 lines
711 B
Text
29 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>
|