-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
191 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@using LifelogBb.Utilities; | ||
@model LifelogBb.Models.Entities.Quote | ||
|
||
@{ | ||
ViewData["Title"] = "Random Quote"; | ||
ViewData["PrimaryAction"] = "create"; | ||
} | ||
|
||
<div class="container-xl"> | ||
<div class="row row-cards"> | ||
<div class="col-12"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div> | ||
<blockquote class="blockquote"> | ||
<p>@Model.Text</p> | ||
<footer class="blockquote-footer"><cite>@Model.Author</cite></footer> | ||
</blockquote> | ||
</div> | ||
<div class="ms-auto"> | ||
@Html.DisplayFor(modelItem => Model.Category, "Category") | ||
@Html.DisplayFor(modelItem => Model.Tags, "Tags") | ||
</div> | ||
</div> | ||
<div class="card-footer"> | ||
<a asp-action="Details" asp-route-id="@Model.Id">Details</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@using LifelogBb.Utilities; | ||
@model PaginatedList<LifelogBb.Models.Entities.Quote> | ||
|
||
@{ | ||
ViewData["Title"] = "Quotes"; | ||
ViewData["PrimaryAction"] = "create"; | ||
} | ||
|
||
<div class="container-xl"> | ||
<div class="row row-cards"> | ||
<div class="col-12"> | ||
<div class="card"> | ||
<div class="table-responsive"> | ||
<table class="table card-table table-vcenter text-nowrap datatable"> | ||
<thead> | ||
<tr> | ||
<th class="w-1"> | ||
<a asp-action="Index" asp-route-sortOrder="@RazorPageExtensions.GetSortRoute(ViewData, "CreatedAt")" asp-route-currentFilter="@ViewData["CurrentFilter"]" class="table-sort @RazorPageExtensions.GetSortOrder(ViewData, "CreatedAt")">Date</a> | ||
</th> | ||
<th> | ||
Text | ||
</th> | ||
<th> | ||
<a asp-action="Index" asp-route-sortOrder="@RazorPageExtensions.GetSortRoute(ViewData, "Author")" asp-route-currentFilter="@ViewData["CurrentFilter"]" class="table-sort @RazorPageExtensions.GetSortOrder(ViewData, "Author")">Author</a> | ||
</th> | ||
<th> | ||
<a asp-action="Index" asp-route-sortOrder="@RazorPageExtensions.GetSortRoute(ViewData, "Category")" asp-route-currentFilter="@ViewData["CurrentFilter"]" class="table-sort @RazorPageExtensions.GetSortOrder(ViewData, "Category")">Category</a> | ||
</th> | ||
<th> | ||
Tags | ||
</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach (var item in Model) | ||
{ | ||
<tr> | ||
<th scope="row"> | ||
<a asp-action="Details" asp-route-id="@item.Id">@Html.DisplayFor(modelItem => item.CreatedAt)</a> | ||
</th> | ||
<td> | ||
@Html.DisplayFor(modelItem => item.Text) | ||
</td> | ||
<td> | ||
@Html.DisplayFor(modelItem => item.Author) | ||
</td> | ||
<td> | ||
@Html.DisplayFor(modelItem => item.Category, "Category") | ||
</td> | ||
<td> | ||
@Html.DisplayFor(modelItem => item.Tags, "Tags") | ||
</td> | ||
<td class="text-end"> | ||
<div class="dropdown"> | ||
<button class="btn dropdown-toggle align-text-top" data-bs-boundary="viewport" data-bs-toggle="dropdown">Actions</button> | ||
<div class="dropdown-menu dropdown-menu-end"> | ||
<a class="dropdown-item" asp-action="Edit" asp-route-id="@item.Id">Edit</a> | ||
<a class="dropdown-item text-danger" asp-action="Delete" asp-route-id="@item.Id">Delete</a> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
} | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="card-footer d-flex align-items-center"> | ||
@await Component.InvokeAsync("Pagination", Model) | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters