Ignore:
Timestamp:
08/23/24 15:40:14 (5 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
e9bb9d1
Parents:
72b1da2
Message:

fix access

implement multiple access pages with different roles
optimize present three structure of BlogPost and Answer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/Shared/_Layout.cshtml

    r72b1da2 r118e414  
    1313</head>
    1414<body>
    15     <h1>@(ViewBag.isAuthenticated == null ? "krij" : "prikazi")</h1>
     15    @* <h1>@(ViewBag.isAuthenticated == null ? "krij" : "prikazi")</h1> *@
    1616    <header>
    1717        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
     
    4747                                    <a class="nav-link text-dark" asp-area="" asp-controller="Customer" asp-action="Index">Manage Customers</a>
    4848                                </li>
    49                                 <li class="nav-item">
     49                               @* <li class="nav-item">
    5050                                    <a class="nav-link text-dark" asp-area="" asp-controller="City" asp-action="Index">Manage Cities</a>
    5151                                </li>
    52                                
     52                               *@
    5353                                <li class="nav-item">
    5454                                    <a class="nav-link text-dark" asp-area="" asp-controller="Blog" asp-action="Index">BlogPost</a>
     
    5656                            }
    5757
     58                         
     59
    5860                           
    5961                        }
     62                        @if (ViewBag.OnlyAdminManager != null)
     63                        {
     64                            <li class="nav-item">
     65                                <a class="nav-link text-dark" asp-area="" asp-controller="City" asp-action="Index">Manage Cities</a>
     66                            </li>
     67                        }
     68
    6069
    6170                       
Note: See TracChangeset for help on using the changeset viewer.