generated from ricardo/MVCLogin
51 lines
2.0 KiB
Plaintext
51 lines
2.0 KiB
Plaintext
@model List<Postall.Models.VideoViewModel>
|
|
|
|
<form id="channelVideosForm">
|
|
<h6 class="mb-3">Últimos 10 vídeos disponíveis (ordenados por data):</h6>
|
|
|
|
@if (Model != null && Model.Any())
|
|
{
|
|
<div class="list-group">
|
|
@foreach (var video in Model)
|
|
{
|
|
<div class="list-group-item list-group-item-action flex-column align-items-start">
|
|
<div class="d-flex">
|
|
<div class="checkbox-container mr-3 mt-1">
|
|
<div class="form-check">
|
|
<input class="form-check-input video-checkbox" type="checkbox" value="@video.Id" id="video-@video.Id">
|
|
</div>
|
|
</div>
|
|
<div class="row w-100">
|
|
<div class="col-md-4">
|
|
<img src="@video.ThumbnailUrl" alt="@video.Title" class="img-fluid rounded">
|
|
</div>
|
|
<div class="col-md-8">
|
|
<div class="d-flex w-100 justify-content-between">
|
|
<h5 class="mb-1">@video.Title</h5>
|
|
<small>@video.PublishedAt.ToString("dd/MM/yyyy")</small>
|
|
</div>
|
|
<p class="mb-1">@video.Description</p>
|
|
<small class="text-muted">
|
|
<i class="bi bi-youtube"></i>
|
|
@(video.ChannelTitle ?? "Seu Canal")
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="alert alert-info">
|
|
Nenhum vídeo encontrado nos canais aos quais você tem acesso.
|
|
</div>
|
|
}
|
|
</form>
|
|
|
|
<style>
|
|
.checkbox-container {
|
|
min-width: 30px;
|
|
}
|
|
</style> |