@using System.Configuration

@{
    Layout = null;

    var cdnAddress = ConfigurationManager.AppSettings["cdnAddress"];
    string cdnScriptAddress = null;

    if (!string.IsNullOrEmpty(cdnAddress))
    {
        cdnScriptAddress = string.Concat(cdnAddress, Scripts.Url("~/bundles/frameworks"));
    }

}

<!DOCTYPE html>
<html class="no-js">


<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="shortcut icon" type="image/ico" href="@Url.Content("~/favicon.ico")" />
    <title>Micro Universo @ViewBag.Title</title>
    @Styles.Render("~/Content/less")
    @Styles.Render("~/Content/css")
    @RenderSection("head", false)
</head>
    <body @if  (ViewBag.BodyClass != null) { <text>class="@ViewBag.BodyClass"</text> }>
    @RenderBody()
        
    @if (!string.IsNullOrEmpty(cdnScriptAddress))
    {
        @:<script src="@cdnScriptAddress"></script>
    }
    else
    {
        @Scripts.Render("~/bundles/frameworks");
    }
        
        

    @Scripts.Render("~/bundles/main")
    @Scripts.Render("~/bundles/micro")
    @Html.Partial("_ErrosServidor")
    @RenderSection("scripts", false)
</body>
</html>

