-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminMasterLayout.cshtml
More file actions
80 lines (72 loc) · 3.2 KB
/
Copy pathAdminMasterLayout.cshtml
File metadata and controls
80 lines (72 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="~/bootstrap js and css/js/bootstrap.bundle.js"></script>
<link href="~/bootstrap js and css/css/bootstrap.css" rel="stylesheet" />
<script src="~/Content/fontawesome/js/all.js"></script>
<link href="~/Content/fontawesome/css/all.css" rel="stylesheet" />
<script src="~/Scripts/jquery-3.6.0.js"></script>
<script src="~/Scripts/jquery.validate.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
<title>@ViewBag.Title</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Multi-Vendor App</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
@if (Session["ad_id"] != null)
{
@Html.ActionLink("Create Category", "CreateCategory", "Admin", null, new { @class = "nav-link" })
}
</li>
<li class="nav-item">
@if (Session["ad_id"] != null)
{
@Html.ActionLink("View Category", "ViewCategory", "Admin", null, new { @class = "nav-link" })
}
</li>
<li class="nav-item">
@if (Session["ad_id"] == null)
{
@Html.ActionLink("Sign In", "Index", "Admin", null, new { @class = "nav-link" })
}
</li>
<li class="nav-item">
@if (Session["ad_id"] == null)
{
@Html.ActionLink("Sign Up", "Register", "Admin", null, new { @class = "nav-link" })
}
</li>
<li class="nav-item">
@if (Session["ad_id"] != null)
{
@Html.ActionLink("Sign Out", "SignOut", "Admin", null, new { @class = "nav-link" })
}
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
@RenderBody()
</div>
<div class="row">
<div class="col-12 text-center card-footer">
<footer>
<p>© @DateTime.Now.Year - Multi - Vendor Application</p>
</footer>
</div>
</div>
</div>
</body>
</html>