Merge branch '7.0.2' of https://github.com/umbraco/Umbraco-CMS into 7.0.2
This commit is contained in:
@@ -1 +1 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
|
||||
@@ -8,7 +8,7 @@
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="*" ControlToValidate="FileName" runat="server">*</asp:RequiredFieldValidator>
|
||||
</cc1:PropertyPanel>
|
||||
|
||||
<cc1:PropertyPanel runat="server" Text="Choose a template:">
|
||||
<cc1:PropertyPanel runat="server" Text="Choose a snippet:">
|
||||
<asp:ListBox ID="PartialViewTemplate" runat="server" Width="350" CssClass="bigInput input-large-type input-block-level" Rows="1" SelectionMode="Single">
|
||||
<asp:ListItem Value="clean.xslt">Clean</asp:ListItem>
|
||||
</asp:ListBox>
|
||||
|
||||
@@ -24,16 +24,16 @@ namespace Umbraco.Web.UI.Umbraco.Create
|
||||
var path = IOHelper.MapPath(SystemDirectories.Umbraco + "/PartialViews/Templates/");
|
||||
list.Items.Clear();
|
||||
|
||||
// always add the options of empty templates
|
||||
list.Items.Add(new ListItem("Empty Template", "EmptyTemplate.cshtml"));
|
||||
list.Items.Add(new ListItem("Empty Template (For Use With Custom Views)", "EmptyTemplate (ForUseWithCustomViews).cshtml"));
|
||||
// always add the options of empty snippets
|
||||
list.Items.Add(new ListItem("Empty", "Empty.cshtml"));
|
||||
list.Items.Add(new ListItem("Empty (For Use With Custom Views)", "Empty (ForUseWithCustomViews).cshtml"));
|
||||
|
||||
if (System.IO.Directory.Exists(path))
|
||||
{
|
||||
const string extension = ".cshtml";
|
||||
|
||||
//Already adding Empty Template as the first item, so don't add it again
|
||||
foreach (var fileInfo in new System.IO.DirectoryInfo(path).GetFiles("*" + extension).Where(f => f.Name.StartsWith("EmptyTemplate") == false))
|
||||
//Already adding Empty as the first item, so don't add it again
|
||||
foreach (var fileInfo in new System.IO.DirectoryInfo(path).GetFiles("*" + extension).Where(f => f.Name.StartsWith("Empty") == false))
|
||||
{
|
||||
var filename = System.IO.Path.GetFileName(fileInfo.FullName);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ErrorMessage="*" ControlToValidate="FileName" runat="server">*</asp:RequiredFieldValidator>
|
||||
</cc1:PropertyPanel>
|
||||
|
||||
<cc1:PropertyPanel runat="server" Text="Choose a template:">
|
||||
<cc1:PropertyPanel runat="server" Text="Choose a snippet:">
|
||||
<asp:ListBox ID="PartialViewTemplate" runat="server" CssClass="bigInput input-large-type input-block-level" Rows="1" SelectionMode="Single" />
|
||||
</cc1:PropertyPanel>
|
||||
|
||||
|
||||
@@ -24,16 +24,16 @@ namespace Umbraco.Web.UI.Umbraco.Create
|
||||
var path = IOHelper.MapPath(SystemDirectories.Umbraco + "/PartialViewMacros/Templates/");
|
||||
list.Items.Clear();
|
||||
|
||||
// always add the options of empty templates
|
||||
list.Items.Add(new ListItem("Empty Template", "EmptyTemplate.cshtml"));
|
||||
list.Items.Add(new ListItem("Empty Template (For Use With Custom Views)", "EmptyTemplate (ForUseWithCustomViews).cshtml"));
|
||||
// always add the options of empty snippets
|
||||
list.Items.Add(new ListItem("Empty", "Empty.cshtml"));
|
||||
list.Items.Add(new ListItem("Empty (For Use With Custom Views)", "Empty (ForUseWithCustomViews).cshtml"));
|
||||
|
||||
if (System.IO.Directory.Exists(path))
|
||||
{
|
||||
const string extension = ".cshtml";
|
||||
|
||||
//Already adding Empty Template as the first item, so don't add it again
|
||||
foreach (var fileInfo in new System.IO.DirectoryInfo(path).GetFiles("*" + extension).Where(f => f.Name.StartsWith("EmptyTemplate") == false))
|
||||
//Already adding Empty as the first item, so don't add it again
|
||||
foreach (var fileInfo in new System.IO.DirectoryInfo(path).GetFiles("*" + extension).Where(f => f.Name.StartsWith("Empty") == false))
|
||||
{
|
||||
var filename = System.IO.Path.GetFileName(fileInfo.FullName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user