~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/AspNet/MonoDevelop.AspNet.Mvc/CodeTemplates/CSharp/AddView/Razor/Empty.tt

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<#@ template language="C#" HostSpecific="True" #>
 
2
<#@ output extension=".cshtml" #>
 
3
<#
 
4
MvcTextTemplateHost mvcHost = (MvcTextTemplateHost) Host;
 
5
 
 
6
if (!String.IsNullOrEmpty (mvcHost.ViewDataTypeString)) {
 
7
#>
 
8
@model <#= mvcHost.ViewDataTypeString #>
 
9
 
 
10
<#
 
11
}
 
12
 
 
13
if (mvcHost.IsViewUserControl) {
 
14
#>
 
15
<#
 
16
} else if (mvcHost.IsViewContentPage) {
 
17
#>
 
18
@{
 
19
    ViewBag.Title = "<#= mvcHost.ItemName#>";
 
20
<#
 
21
if (!String.IsNullOrEmpty (mvcHost.MasterPage)) {
 
22
#>
 
23
    Layout = "<#= mvcHost.MasterPage#>";
 
24
<#
 
25
}
 
26
#>
 
27
}
 
28
 
 
29
<h2><#= mvcHost.ItemName#></h2>
 
30
<#
 
31
} else {
 
32
#>
 
33
@{
 
34
    Layout = null;
 
35
}
 
36
 
 
37
<!DOCTYPE html>
 
38
<html>
 
39
<head>
 
40
    <title><#= mvcHost.ItemName #></title>
 
41
</head>
 
42
<body>
 
43
</body>
 
44
</html>
 
45
<#
 
46
}
 
47
#>
 
48