initial commit
This commit is contained in:
13
Views/Home/Index.cshtml
Normal file
13
Views/Home/Index.cshtml
Normal file
@@ -0,0 +1,13 @@
|
||||
@model BasePageModel
|
||||
|
||||
<div class="text-center display-6 page-title-color"><b>
|
||||
Дигитална библиотека
|
||||
</b></div>
|
||||
|
||||
<div class="text-center">
|
||||
<img src="~/@Configuration["Images"]/logo_sm.png" alt="Дигитална библиотека">
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<br/>
|
||||
<img src="~/@Configuration["Images"]/main_bairaci_sm.png">
|
||||
</div>
|
||||
8
Views/Home/Login.cshtml
Normal file
8
Views/Home/Login.cshtml
Normal file
@@ -0,0 +1,8 @@
|
||||
@model BasePageModel
|
||||
|
||||
<div class="text-center display-6 page-title-color"><b>
|
||||
LOGIN
|
||||
</b></div>
|
||||
|
||||
<div class="text-center">
|
||||
</div>
|
||||
94
Views/Home/Repository.cshtml
Normal file
94
Views/Home/Repository.cshtml
Normal file
@@ -0,0 +1,94 @@
|
||||
@model RepositoryPageModel
|
||||
|
||||
<div class="text-center display-6 page-title-color"><b>
|
||||
ДИГИТАЛНИ КОЛЕКЦИИ
|
||||
</b></div>
|
||||
|
||||
<style>
|
||||
.grid-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Подрежда елементите в грид с ширина от поне 200px, но равномерно разпределя останалото пространство */
|
||||
grid-gap: 50px; /* Разстояние между елементите */
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
border: 0px solid #ccc;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@if (Model.CategoryData.Depth == 0)
|
||||
{
|
||||
<div>
|
||||
<div class="grid-container">
|
||||
@foreach (CategoryItemData category in Model.CategoryData.Children)
|
||||
{
|
||||
int q = category.Depth;
|
||||
<div class="grid-item">
|
||||
<div>
|
||||
<img src="~/@Configuration["Images"]/book_@(@category.ID.ToString()).png" ) width="320" height="370">
|
||||
</div>
|
||||
<div>
|
||||
<a href="/Repository/@category.ID">@category.Name</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="container row mt-3 mb-3">
|
||||
<div class="nav_tree">
|
||||
@foreach (CategoryItemData category in Model.CategoryPath)
|
||||
{
|
||||
<div class="nav_tree_item_container">
|
||||
@for (int x = 0; x < category.Depth; x++)
|
||||
{
|
||||
<span class="indent"></span>
|
||||
}
|
||||
<span class="indent"><i class="fa fa-caret-down"></i></span>
|
||||
<a href="/Repository/@category.ID">@category.Name </a>
|
||||
</div>
|
||||
}
|
||||
<div class="nav_tree_item_container">
|
||||
@for (int x = 0; x < Model.CategoryData.Depth; x++)
|
||||
{
|
||||
<span class="indent"></span>
|
||||
}
|
||||
<span class="indent"><i class="fa fa-caret-down"></i></span>
|
||||
<span><b>@Model.CategoryData.Name</b></span>
|
||||
</div>
|
||||
@foreach (CategoryItemData category in Model.CategoryData.Children)
|
||||
{
|
||||
<div class="nav_tree_item_container">
|
||||
@for (int x = 0; x < category.Depth; x++)
|
||||
{
|
||||
<span class="indent"></span>
|
||||
}
|
||||
<span class="indent"><i class="fa fa-caret-right"></i></span>
|
||||
<a href="/Repository/@category.ID">@category.Name</a>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center display-6 page-title-color mt-3">
|
||||
<font size=4><b> Публикации в категория </b></font>
|
||||
<font size=5><b> @Model.CategoryData.Name </b></font>
|
||||
<div class="container row mt-3 mb-3">
|
||||
<font size=3 color="#000000" align=left>
|
||||
<b><i>
|
||||
@Model.CategoryData.Catego_opis
|
||||
</i></b>
|
||||
</font>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="container row mt-3 mb-3">
|
||||
@foreach ( BookData book in Model.Books ) {
|
||||
@await Html.PartialAsync("~/Views/Shared/RepositoryBookElement.cshtml", book);
|
||||
}
|
||||
</div>
|
||||
@await Html.PartialAsync( "~/Views/Shared/PagingArea.cshtml" , Model.PagingData )
|
||||
85
Views/Home/RepositoryDetails.cshtml
Normal file
85
Views/Home/RepositoryDetails.cshtml
Normal file
@@ -0,0 +1,85 @@
|
||||
@model RepositoryDetailsPageModel
|
||||
|
||||
|
||||
<div class="text-center display-6 page-title-color"><b>
|
||||
ДИГИТАЛНИ КОЛЕКЦИИ
|
||||
</b></div>
|
||||
|
||||
<div class="col-12 py-1">
|
||||
<div class="nav_tree">
|
||||
@foreach (CategoryItemData category in Model.CategoryPath)
|
||||
{
|
||||
<div class="nav_tree_item_container">
|
||||
@for (int x = 0; x < category.Depth; x++)
|
||||
{
|
||||
<span class="indent"></span>
|
||||
}
|
||||
<span class="indent"><i class="fa fa-caret-down"></i></span>
|
||||
<a href="/Repository/@category.ID">@category.Name</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="nav_tree_item_container">
|
||||
@for (int x = 0; x <= Model.CategoryPath[Model.CategoryPath.Count-1].Depth ; x++)
|
||||
{
|
||||
<span class="indent"></span>
|
||||
}
|
||||
<span class="indent"><i class="fa fa-caret-down"></i></span>
|
||||
<b>@Model.BookData.Title</b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@await Html.PartialAsync("~/Views/Shared/RepositoryBookElement_1.cshtml", Model.BookData)
|
||||
|
||||
<div class="col-12 py-1">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Съдържание
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@foreach ( AttachmentData attachment in Model.Attachments )
|
||||
{
|
||||
if ( attachment.Format == "pdf")
|
||||
{
|
||||
<a href="/Repository/PDFView/@attachment.UUID" target="preview_frame">
|
||||
<h5 class="card-title display-7"><font size="2">@attachment.Title</font></h5>
|
||||
</a>
|
||||
}
|
||||
else if (attachment.Format == "jpg")
|
||||
{
|
||||
<a href="/Repository/Image/@attachment.UUID" target="preview_frame">
|
||||
<h5 class="card-title display-7"><font size="2">@attachment.Title</font></h5>
|
||||
</a>
|
||||
}
|
||||
else if (attachment.Format == "mp4")
|
||||
{
|
||||
<a href="/Repository/Video/@attachment.UUID" target="preview_frame">
|
||||
<h5 class="card-title display-7"><font size="2">@attachment.Title</font></h5>
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a href="@attachment.Link" target="_blank">
|
||||
<h5 class="card-title display-7"><font size="2">@attachment.Title</font></h5>
|
||||
</a>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 py-1">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Преглед
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="w-100 ratio ratio-1x1">
|
||||
<iframe name="preview_frame" title="Заглавие"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
25
Views/Home/Search.cshtml
Normal file
25
Views/Home/Search.cshtml
Normal file
@@ -0,0 +1,25 @@
|
||||
@model SearchPageModel
|
||||
|
||||
<div class="text-center display-6 page-title-color"><b>
|
||||
Търсене
|
||||
</b></div>
|
||||
|
||||
<form action="/Search">
|
||||
<input type="text" name="q" value="@Model.SearchTerm" />
|
||||
<input type="submit" />
|
||||
</form>
|
||||
|
||||
<div class="text-center display-6 page-title-color"><font size=5><b>
|
||||
Резултати за : @Model.SearchTerm
|
||||
</font></b></div>
|
||||
|
||||
|
||||
<div class="container row mt-3 mb-3">
|
||||
@foreach (BookData book in Model.Books)
|
||||
{
|
||||
@await Html.PartialAsync("~/Views/Shared/RepositoryBookElement.cshtml", book)
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
@await Html.PartialAsync( "~/Views/Shared/PagingArea.cshtml" , Model.PagingData )
|
||||
5
Views/Home/Sitemap.cshtml
Normal file
5
Views/Home/Sitemap.cshtml
Normal file
@@ -0,0 +1,5 @@
|
||||
@model BasePageModel
|
||||
<div class="text-center display-6 page-title-color"><b>
|
||||
Карта на сайта
|
||||
</b></div>
|
||||
@await Html.PartialAsync( "~/Views/Shared/SiteMapTree.cshtml" , Model.CategoryTree )
|
||||
Reference in New Issue
Block a user