summaryrefslogtreecommitdiff
path: root/Views
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-06 07:11:05 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-07 07:54:51 +0300
commita2314e870e1f3f966e45532984e3c76a430334af (patch)
treedbf52d6299a75afcf1bf4c279d4d8617e957f0a3 /Views
parentd1ca742017b061905751568afa117c4498d4e091 (diff)
Init bundle controller
Diffstat (limited to 'Views')
-rw-r--r--Views/Bundle/Show.cshtml14
-rw-r--r--Views/Home/Index.cshtml2
2 files changed, 15 insertions, 1 deletions
diff --git a/Views/Bundle/Show.cshtml b/Views/Bundle/Show.cshtml
new file mode 100644
index 0000000..8d3e055
--- /dev/null
+++ b/Views/Bundle/Show.cshtml
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+
+<html>
+
+<head>
+ <title>@Model?.Name</title>
+</head>
+
+<body>
+ <p>@Model?.Name</p>
+ <p>@Model?.Description</p>
+</body>
+
+</html>
diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml
index cd9f21f..71e16da 100644
--- a/Views/Home/Index.cshtml
+++ b/Views/Home/Index.cshtml
@@ -71,7 +71,7 @@
{
<div class="col mb-5">
<div class="card h-100">
- <img class="card-img-top" src="@bundle.Figures.FirstOrDefault().FilePath" alt="..." />
+ <a href="/bundle/show/@bundle.Id"><img class="card-img-top" src="@bundle.Figures.FirstOrDefault()?.FilePath" alt="..." /></a>
<div class="card-body p-4">
<div class="text-center">
<h5 class="fw-bolder">@bundle.Name</h5>