Compare commits
4 Commits
8923b725c2
...
b72d923407
Author | SHA1 | Date |
---|---|---|
Nick Rirush | b72d923407 | 5 years ago |
Nick Rirush | 6ed09e6f13 | 5 years ago |
Nick Rirush | f1919ba5cb | 5 years ago |
Nick Rirush | 6e8ec037b9 | 5 years ago |
11 changed files with 102 additions and 24 deletions
@ -0,0 +1,13 @@ |
|||
using System; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
|
|||
namespace QuickCHAT.Controllers { |
|||
[Controller] |
|||
public class HomeController : Controller |
|||
{ |
|||
public ActionResult Index() |
|||
{ |
|||
return View(); |
|||
} |
|||
} |
|||
} |
@ -1,2 +0,0 @@ |
|||
@page |
|||
<h1>Hello, World!</h1> |
@ -1,7 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<head> |
|||
<title>@ViewData["Title"] - QuickCHAT</title> |
|||
</head> |
|||
<body> |
|||
@RenderBody() |
|||
</body> |
@ -0,0 +1,5 @@ |
|||
@page |
|||
@{ |
|||
ViewBag.Title = "Index"; |
|||
} |
|||
<h1>QuickCHAT</h1> |
@ -0,0 +1,56 @@ |
|||
<!DOCTYPE html> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|||
<title>@ViewData["Title"] - QuickCHAT</title> |
|||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> |
|||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> |
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> |
|||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> |
|||
</head> |
|||
<body> |
|||
@if(ViewData["HideNavbar"] == null) |
|||
{ |
|||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> |
|||
<a class="navbar-brand" href="/">QuickCHAT</a> |
|||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#top-bar" aria-controls="top-bar" aria-expanded="false" aria-label="Toggle navigation"> |
|||
<span class="navbar-toggler-icon"></span> |
|||
</button> |
|||
|
|||
|
|||
<div class="collapse navbar-collapse" id="top-bar"> |
|||
<ul class="navbar-nav mr-auto"> |
|||
|
|||
</ul> |
|||
|
|||
|
|||
<ul class="navbar-nav"> |
|||
@if(User.Identity.IsAuthenticated) |
|||
{ |
|||
<li class="nav-item"> |
|||
<span class="navbar-text">@@@User.Identity.Name</span> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a class="nav-link" href="/unauthorize">Log out</a> |
|||
</li> |
|||
} |
|||
else |
|||
{ |
|||
<li class="nav-item"> |
|||
<a class="nav-link" href="/register">Register</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<span class="navbar-text">or</span> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a class="nav-link" href="/authorize">Log in</a> |
|||
</li> |
|||
} |
|||
</ul> |
|||
</div> |
|||
</nav> |
|||
} |
|||
<div class="container"> |
|||
@RenderBody() |
|||
</div> |
|||
</body> |
Loading…
Reference in new issue