Files
MoonPro.net/MP/Views/Shared/_Layout.cshtml
T
2018-04-26 18:22:18 +02:00

61 lines
2.1 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("MoonPro suite", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
@*<li>@Html.ActionLink("Home", "Index", "Home")</li>*@
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.ActionLink("Package Versions", "Packages", "Home")</li>
</ul>
</div>
</div>
</div>
<div class="container-fluid body-content">
@RenderBody()
<hr />
@{
// recupero variabile ambiente...
ViewBag.envir = System.Web.Configuration.WebConfigurationManager.AppSettings["Environment"];
string cssFixFooter = "";
}
@if (ViewBag.envir != "Dev")
{
cssFixFooter = "navbar-fixed-bottom";
}
<footer class="navbar navbar-inverse @cssFixFooter text-gray">
<div class="row">
<div class="col-xs-6 fontSmall text-left">
<span class="text-white">MoonPro</span> | IP: @Request.UserHostAddress
</div>
<div class="col-xs-6 fontSmall text-right">
<p>v: @typeof(MP.MvcApplication).Assembly.GetName().Version | 2007 - @DateTime.Now.Year <span class="text-white">&copy; Steamware s.r.l.</span></p>
</div>
</div>
</footer>
</div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
</body>
</html>