summaryrefslogtreecommitdiff
path: root/Views/Home/_Projects.cshtml
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-21 07:52:11 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-21 07:52:11 +0300
commit0107d5b518f586bc2172b4e89f0cab7619e76670 (patch)
tree60a93c8b8c9ebb2bef218280a2ee8d6f4e6a7019 /Views/Home/_Projects.cshtml
parent3c83f9f4b01b5965e04739e5f8accf3235f8f699 (diff)
Add decription to figure model
Diffstat (limited to 'Views/Home/_Projects.cshtml')
-rw-r--r--Views/Home/_Projects.cshtml5
1 files changed, 3 insertions, 2 deletions
diff --git a/Views/Home/_Projects.cshtml b/Views/Home/_Projects.cshtml
index 0603c06..2cb439d 100644
--- a/Views/Home/_Projects.cshtml
+++ b/Views/Home/_Projects.cshtml
@@ -9,11 +9,12 @@
<div class="col mb-5">
<div class="card h-100">
<a data-src="@bundle.Figures.FirstOrDefault()?.FilePath" data-fancybox="@bundle.Id"
- data-caption="@bundle.Description"><img class="card-img-top"
+ data-caption="@bundle.Figures.FirstOrDefault()?.Description"><img class="card-img-top"
src="@bundle.Figures.FirstOrDefault()?.FilePath" alt="@bundle.Name" /></a>
@for (int i = 1; i < @bundle.Figures.Count(); i++)
{
- <a data-src="@bundle.Figures[i].FilePath" data-fancybox="@bundle.Id"></a>
+ <a data-src="@bundle.Figures[i].FilePath" data-fancybox="@bundle.Id"
+ data-caption="@bundle.Figures[i].Description"></a>
}
<div class="card-body p-4">
<div class="text-center">