[Tizen] Add BuildTools 2.1.0-rc1-02804-05
[platform/upstream/coreclr.git] / Tools / dotnetcli / sdk / NuGetFallbackFolder / microsoft.visualstudio.web.codegenerators.mvc / 2.0.1 / Templates / ViewGenerator / Empty.cshtml
1 @inherits Microsoft.VisualStudio.Web.CodeGeneration.Templating.RazorTemplateBase
2 @using Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore
3 @using System.Collections.Generic
4 @using System.Linq
5
6 @{
7     if (Model.IsPartialView)
8     {
9 @:@@*
10 @:    For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
11 @:*@@
12
13     }
14     else if (Model.IsLayoutPageSelected)
15     {
16 @:@@{
17     @:ViewData["Title"] = "@Model.ViewName";
18         if (!string.IsNullOrEmpty(Model.LayoutPageFile))
19         {
20     @:Layout = "@Model.LayoutPageFile";
21         }
22 @:}
23 @:
24 @:<h2>@Model.ViewName</h2>
25 @:
26     }
27     else
28     {
29 @:@@{
30     @:Layout = null;
31 @:}
32 @:
33 @:<!DOCTYPE html>
34 @:
35 @:<html>
36 @:<head>
37     @:<meta name="viewport" content="width=device-width" />
38     @:<title>@Model.ViewName</title>
39 @:</head>
40 @:<body>
41     }
42     if (Model.ReferenceScriptLibraries)
43     {
44 @:@@section Scripts {
45     @:@@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
46 @:}
47     }
48     // The following code closes the tag used in the case of a view using a layout page and the body and html tags in the case of a regular view page
49     if (!Model.IsPartialView && !Model.IsLayoutPageSelected)
50     {
51 @:</body>
52 @:</html>
53     }
54 }