@using CD67.FicheCollege.MVC.Models

@{
    string url = Request.Url.ToString();
    bool isProd = (Request.ServerVariables["SERVER_NAME"] == "fichecollege.bas-rhin.fr");
    var controllerName = ViewContext.RouteData.Values["controller"].ToString();
    var actionName = ViewContext.RouteData.Values["action"].ToString();

    //Récupération de l'utilisateur connecté
    UtilisateurConnecte utilisateurConnecte = CD67.FicheCollege.MVC.Internal.UtilisateurConnecteFactory.getUtilisateurConnecte();
}

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, shrink-to-fit=no, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
    <link rel="icon" type="image/x-icon" href="~/images/favicon.ico" />
    @Styles.Render("~/Content/jquery-ui-css")
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/datatables")
    
    <link rel="stylesheet/less" type="text/css" href="~/content/cd67-model.less" />
    <link rel="stylesheet/less" type="text/css" href="~/content/cd67-custom.less" />
    <script src="~/scripts/less.min.js" ></script>

    @Scripts.RenderFormat("<script src=\"{0}\" defer></script>", "~/bundles/jqueryval")
    @Scripts.RenderFormat("<script src=\"{0}\" defer></script>", "~/bundles/jquery-ui")
    @Scripts.RenderFormat("<script src=\"{0}\" defer></script>", "~/bundles/bootstrap")
    @Scripts.RenderFormat("<script src=\"{0}\" defer></script>", "~/bundles/datatables")
    @Scripts.RenderFormat("<script src=\"{0}\" defer></script>", "~/bundles/cd67")

    <!-- Ajout des classes no-screen et no-print -->
    <style media="print">
        .no-print{display: none}
    </style>
    <style type="text/css" media="screen">
        .no-screen{display: none}
    </style>
</head>
<body>
    <div class="main-container-cache"></div>

    @* Entete de page *@
    <header>
        <nav id="topbar" class="navbar-fixed-top navbar-default no-margin">
            <div class="navbar navbar-inner">
                @* Titre et année en cours *@
                <span id="titlebar" class="nav navbar">
                    <h1 id="title" style="color:rgb(150,150,150)">Fiches collège: Administration</h1>
                    
                </span>
            </div>
            <div id="topline2"><a class="keep-trace" href="@Url.Action("Index", "Home")">Retour</a></div>
        </nav>
    </header>

    <div id="wrapper">
        <div id="content" class="container">
            @RenderBody()
        </div>
    </div>

    @* Pied de page *@
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="col-md-10 credentials">
                        @*<a href="#">Contact</a> | <a href="#">Plan du site</a> | <a href="#" >F.A.Q.</a><i class="muted pull-right">© 2017 CD67. Tous droits réservés.</i>*@
                    </div>
                    <div class="col-md-2">
                        <ul class="brand">
                            <li><a href="/" title="Retour à l'accueil">
                            @if (isProd) { <img src="~/images/LogoCD67.png" width="148" height="51" alt="CD67">;
                            } else { <img src="~/images/LogoCD67Recette.png" width="148" height="51" alt="CD67">; }
                            </a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    @Scripts.Render("~/bundles/jquery")
    @RenderSection("Scripts", false)
</body>
</html>
