diff --git a/ZpcBulletinBoard/Pages/Boards/AddEdit.cshtml b/ZpcBulletinBoard/Pages/Boards/AddEdit.cshtml
index 4692e64..59a5488 100644
--- a/ZpcBulletinBoard/Pages/Boards/AddEdit.cshtml
+++ b/ZpcBulletinBoard/Pages/Boards/AddEdit.cshtml
@@ -3,7 +3,7 @@
@{
ViewData["Title"] = "Edit board";
- Layout = "~/Pages/Shared/_Layout.cshtml";
+ Layout = "~/Pages/Layouts/_Layout.cshtml";
}
diff --git a/ZpcBulletinBoard/Pages/Boards/Index.cshtml b/ZpcBulletinBoard/Pages/Boards/Index.cshtml
index bf3725a..3321b01 100644
--- a/ZpcBulletinBoard/Pages/Boards/Index.cshtml
+++ b/ZpcBulletinBoard/Pages/Boards/Index.cshtml
@@ -3,20 +3,11 @@
@{
ViewData["Title"] = "Oglasne deske - Pregled";
- Layout = "~/Pages/Shared/_Layout.cshtml";
+ Layout = "~/Pages/Layouts/_Layout.cshtml";
}
@section Styles {
-
-
-
+
}
@@ -27,43 +18,59 @@
+
+
-
-
-
- |
- @Html.DisplayNameFor(model => model.Boards[0].Name)
- |
-
- @Html.DisplayNameFor(model => model.Boards[0].Ratio)
- |
- |
-
-
-
- @foreach (var item in Model.Boards)
- {
+
+
+
- |
- @Html.DisplayFor(modelItem => item.Name)
- |
-
- @Html.DisplayFor(modelItem => item.Ratio)
- |
-
-
- |
+
+ @Html.DisplayNameFor(model => model.Boards[0].Name)
+ |
+
+ @Html.DisplayNameFor(model => model.Boards[0].Ratio)
+ |
+ |
- }
-
-
+
+
+ @foreach (var item in Model.Boards)
+ {
+
+ |
+ @Html.DisplayFor(modelItem => item.Name)
+ |
+
+ @Html.DisplayFor(modelItem => item.Ratio)
+ |
+
+
+
+ |
+
+ }
+
+
+
@section Scripts {
+
+
}
\ No newline at end of file
diff --git a/ZpcBulletinBoard/Pages/Boards/View.cshtml b/ZpcBulletinBoard/Pages/Boards/View.cshtml
new file mode 100644
index 0000000..4632ccd
--- /dev/null
+++ b/ZpcBulletinBoard/Pages/Boards/View.cshtml
@@ -0,0 +1,26 @@
+@page "{handler?}"
+@model ZpcBulletinBoard.Pages.Boards.ViewModel
+
+@{
+ ViewData["Title"] = "Board view";
+ Layout = "~/Pages/Layouts/_LayoutBlank.cshtml";
+}
+
+@section Styles {
+
+}
+
+
+
+
+
+
+
+
+
+
Ni prosojnic za @Model.Guid
+
+
+@section Scripts {
+
+}
\ No newline at end of file
diff --git a/ZpcBulletinBoard/Pages/Boards/View.cshtml.cs b/ZpcBulletinBoard/Pages/Boards/View.cshtml.cs
new file mode 100644
index 0000000..9618213
--- /dev/null
+++ b/ZpcBulletinBoard/Pages/Boards/View.cshtml.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Identity;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.AspNetCore.Mvc.Rendering;
+using Microsoft.EntityFrameworkCore;
+using ZpcBulletinBoard.Data;
+using ZpcBulletinBoard.Models;
+using ZpcBulletinBoard.Models.Editor;
+
+namespace ZpcBulletinBoard.Pages.Boards
+
+{
+ [AllowAnonymous]
+ public class ViewModel(ApplicationDbContext context)
+ : PageModel
+ {
+ [BindProperty] public string Guid { get; set; } = "";
+ public IActionResult OnGet(string? guid)
+ {
+ if (string.IsNullOrEmpty(guid))
+ {
+ return NotFound();
+ }
+
+ Guid = guid;
+
+ return Page();
+ }
+
+
+ }
+}
diff --git a/ZpcBulletinBoard/Pages/BoardsLinks/Index.cshtml b/ZpcBulletinBoard/Pages/BoardsLinks/Index.cshtml
index 7881179..a486569 100644
--- a/ZpcBulletinBoard/Pages/BoardsLinks/Index.cshtml
+++ b/ZpcBulletinBoard/Pages/BoardsLinks/Index.cshtml
@@ -3,7 +3,7 @@
@{
ViewData["Title"] = "Oglasne deske - Povezave";
- Layout = "~/Pages/Shared/_Layout.cshtml";
+ Layout = "~/Pages/Layouts/_Layout.cshtml";
}
@section Styles
@@ -20,13 +20,13 @@
-