Files
marechai/cicm_web/Views/Shared/_Layout.cshtml

192 lines
6.7 KiB
Plaintext
Raw Normal View History

2019-05-27 03:00:04 +01:00
@using Cicm.Database.Models
2019-05-18 11:45:41 +01:00
@using Microsoft.AspNetCore.Identity
2018-08-11 20:53:34 +01:00
@using Microsoft.Extensions.PlatformAbstractions
2019-05-27 03:00:04 +01:00
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
2018-04-11 05:55:27 +01:00
@{
/******************************************************************************
// Canary Islands Computer Museum Website
// ----------------------------------------------------------------------------
//
// Filename : _Layout.cshtml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ Description ] ----------------------------------------------------------
//
// Page layout
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2018 Natalia Portillo
*******************************************************************************/
}
<!DOCTYPE html>
<html>
<head>
2019-05-18 11:45:41 +01:00
<meta charset="utf-8" />
2018-04-11 05:55:27 +01:00
<meta content="width=device-width, initial-scale=1.0"
2019-05-18 11:45:41 +01:00
name="viewport" />
2018-04-11 05:55:27 +01:00
<title>Canary Islands Computer Museum - @ViewData["Title"]</title>
2019-05-18 11:45:41 +01:00
<environment include="Development">
<link href="~/lib/bootstrap/dist/css/bootstrap.css"
rel="stylesheet" />
<link href="~/css/site.css"
rel="stylesheet" />
2018-04-11 05:55:27 +01:00
</environment>
2019-05-18 11:45:41 +01:00
<environment exclude="Development">
<link asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only"
asp-fallback-test-property="position"
asp-fallback-test-value="absolute"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"
rel="stylesheet" />
<link asp-append-version="true"
href="~/css/site.min.css"
rel="stylesheet" />
2018-04-11 05:55:27 +01:00
</environment>
</head>
<body>
<nav class="bg-dark navbar navbar-dark navbar-expand-lg">
2019-05-18 11:45:41 +01:00
<a class="navbar-brand"
href="#">
2018-04-11 05:55:27 +01:00
CICM
</a>
2019-05-18 11:45:41 +01:00
<button aria-controls="navbarSupportedContent"
aria-expanded="false"
2018-04-11 05:55:27 +01:00
aria-label="Toggle navigation"
2019-05-18 11:45:41 +01:00
class="navbar-toggler"
data-target="#navbarSupportedContent"
data-toggle="collapse"
type="button">
<span class="navbar-toggler-icon">
2018-04-11 05:55:27 +01:00
</span>
</button>
<div class="collapse navbar-collapse"
2019-05-18 11:45:41 +01:00
id="navbarSupportedContent">
2018-04-11 05:55:27 +01:00
<ul class="mr-auto navbar-nav">
2019-05-18 11:45:41 +01:00
<li class="nav-item">
<a asp-action="Index"
2018-04-11 05:55:27 +01:00
asp-area=""
2019-05-18 11:45:41 +01:00
asp-controller="Home"
class="nav-link">
2018-04-11 05:55:27 +01:00
Home
</a>
</li>
<li class="dropdown nav-item">
2019-05-18 11:45:41 +01:00
<a aria-expanded="false"
aria-haspopup="true"
2018-04-11 05:55:27 +01:00
class="dropdown-toggle nav-link"
2019-05-18 11:45:41 +01:00
data-toggle="dropdown"
href="#"
id="navbarDropdown"
role="button">
2018-04-11 05:55:27 +01:00
Database
</a>
2019-05-18 11:45:41 +01:00
<div aria-labelledby="navbarDropdown"
class="dropdown-menu">
<a asp-action="Index"
2019-05-19 16:28:24 +01:00
asp-area=""
2019-05-18 11:45:41 +01:00
asp-controller="Company"
class="dropdown-item">
Companies
</a>
2019-05-18 11:45:41 +01:00
<div class="dropdown-divider">
</div>
2019-05-18 11:45:41 +01:00
<a asp-action="Index"
2019-05-19 16:28:24 +01:00
asp-area=""
2019-05-18 11:45:41 +01:00
asp-controller="Computer"
class="dropdown-item">
2018-04-11 05:55:27 +01:00
Computers
</a>
2019-05-18 11:45:41 +01:00
<div class="dropdown-divider">
2018-04-11 05:55:27 +01:00
</div>
2019-05-18 11:45:41 +01:00
<a asp-action="Index"
2019-05-19 16:28:24 +01:00
asp-area=""
2019-05-18 11:45:41 +01:00
asp-controller="Console"
class="dropdown-item">
2018-04-11 05:55:27 +01:00
Consoles
</a>
</div>
</li>
2019-05-18 11:45:41 +01:00
<li class="nav-item">
<a asp-action="About"
2018-04-11 05:55:27 +01:00
asp-area=""
2019-05-18 11:45:41 +01:00
asp-controller="Home"
class="nav-link">
2018-04-11 05:55:27 +01:00
About
</a>
</li>
2019-05-18 11:45:41 +01:00
<li class="nav-item">
<a asp-action="Contact"
2018-04-11 05:55:27 +01:00
asp-area=""
2019-05-18 11:45:41 +01:00
asp-controller="Home"
class="nav-link">
2018-04-11 05:55:27 +01:00
Contact
</a>
</li>
2019-05-18 11:45:41 +01:00
@if(SignInManager.IsSignedIn(User))
{
<li class=nav-item>
<a asp-action=Index
asp-area="Admin"
2019-05-19 16:28:24 +01:00
asp-controller="Home"
2019-05-18 11:45:41 +01:00
class=nav-link>
Admin
</a>
</li>
}
2018-04-11 05:55:27 +01:00
</ul>
2018-08-11 20:53:34 +01:00
<partial name="_LoginPartial" />
2019-05-18 11:45:41 +01:00
</div>
2018-04-11 05:55:27 +01:00
</nav>
<div class="body-content container">
@RenderBody()
<hr />
<footer>
2018-04-14 04:41:04 +01:00
<p>&copy; 2018 Natalia Portillo, @(PlatformServices.Default.Application.ApplicationVersion)</p>
2018-04-11 05:55:27 +01:00
</footer>
</div>
2019-05-18 11:45:41 +01:00
<environment include="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script asp-append-version="true"
src="~/js/site.js"></script>
2018-04-11 05:55:27 +01:00
</environment>
2019-05-18 11:45:41 +01:00
<environment exclude="Development">
<script asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js">
2018-04-11 05:55:27 +01:00
</script>
2019-05-18 11:45:41 +01:00
<script asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
2018-04-11 05:55:27 +01:00
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
2019-05-18 11:45:41 +01:00
crossorigin="anonymous"
src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/bootstrap.min.js">
2018-04-11 05:55:27 +01:00
</script>
2019-05-18 11:45:41 +01:00
<script asp-append-version="true"
src="~/js/site.min.js"></script>
2018-04-11 05:55:27 +01:00
</environment>
@RenderSection("Scripts", false)
</body>
</html>