applications/clouddemo/net4/CloudDemo.Mvc/Views/Shared/_Layout.cshtml (76 lines of code) (raw):

@{ /* Copyright 2020 Google LLC Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ } <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="Demo application for .NET on Google Cloud"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <title>@ViewBag.Title</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.min.css"> @Styles.Render("~/Content/css") </head> <body> <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header"> <!-- Header --> <div class="header mdl-layout__header mdl-layout__header--waterfall"> <div class="mdl-layout__header-row"> <span class="title mdl-layout-title"> .NET on Google Cloud </span> <div class="header-spacer mdl-layout-spacer"></div> <!-- Navigation --> <div class="navigation-container"> <nav class="navigation mdl-navigation"> <a href="https://console.cloud.google.com" class="mdl-navigation__link mdl-typography--text-uppercase" target="_blank">Console</a> </nav> </div> </div> </div> <!-- Menu --> <div class="drawer mdl-layout__drawer"> <nav class="mdl-navigation"> @Html.ActionLink("Health check", "Index", "Health", null, new { @class = "mdl-navigation__link" }) <div class="drawer-separator"></div> </nav> </div> <div class="content mdl-layout__content"> <!-- Body --> @RenderBody() <!-- Footer --> @{ var httpHeaders = new System.Text.StringBuilder(); foreach (var header in Request.Headers.AllKeys) { foreach (var value in Request.Headers.GetValues(header)) { httpHeaders.Append(header + ": " + value + "\n"); } } } <footer class="footer mdl-mega-footer"> ASP.NET MVC version: @Html.Encode(typeof(ActionResult).Assembly.GetName().Version) <br /> Request headers: <pre>@Html.Encode(httpHeaders)</pre> </footer> </div> </div> <script src="https://code.getmdl.io/1.3.0/material.min.js"></script> </body> </html>