Fix admin route access and backend configuration
- Added /admin redirect to login page in nginx config - Fixed backend server.js route ordering for proper admin handling - Updated authentication middleware and routes - Added user management routes - Configured PostgreSQL integration - Updated environment configuration
This commit is contained in:
23
Sky_Art_shop/Views/Page/View.cshtml
Normal file
23
Sky_Art_shop/Views/Page/View.cshtml
Normal file
@@ -0,0 +1,23 @@
|
||||
@model SkyArtShop.Models.Page
|
||||
@{
|
||||
ViewData["Title"] = Model.Title ?? Model.PageName;
|
||||
ViewData["MetaDescription"] = Model.MetaDescription;
|
||||
}
|
||||
|
||||
<section class="page-hero">
|
||||
<div class="container">
|
||||
<h1>@(Model.Title ?? Model.PageName)</h1>
|
||||
@if (!string.IsNullOrEmpty(Model.Subtitle))
|
||||
{
|
||||
<p class="hero-subtitle">@Model.Subtitle</p>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="page-content">
|
||||
<div class="container">
|
||||
<div class="content-wrapper">
|
||||
@Html.Raw(Model.Content)
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user