casing issues + missing semicolon in view
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Umbraco.Extensions
|
||||
var asString = property.GetValue() as string;
|
||||
if (asString != null && string.IsNullOrEmpty(asString)) return new HtmlString(string.Empty);
|
||||
|
||||
var view = "Grid/" + framework;
|
||||
var view = "grid/" + framework;
|
||||
return html.Partial(view, property.GetValue());
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Umbraco.Extensions
|
||||
if (propertyAlias == null) throw new ArgumentNullException(nameof(propertyAlias));
|
||||
if (string.IsNullOrWhiteSpace(propertyAlias)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(propertyAlias));
|
||||
|
||||
var view = "Grid/" + framework;
|
||||
var view = "grid/" + framework;
|
||||
var prop = contentItem.GetProperty(propertyAlias);
|
||||
if (prop == null) throw new InvalidOperationException("No property type found with alias " + propertyAlias);
|
||||
var model = prop.GetValue();
|
||||
@@ -63,7 +63,7 @@ namespace Umbraco.Extensions
|
||||
if (propertyAlias == null) throw new ArgumentNullException(nameof(propertyAlias));
|
||||
if (string.IsNullOrWhiteSpace(propertyAlias)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(propertyAlias));
|
||||
|
||||
var view = "Grid/" + framework;
|
||||
var view = "grid/" + framework;
|
||||
var prop = contentItem.GetProperty(propertyAlias);
|
||||
if (prop == null) throw new InvalidOperationException("No property type found with alias " + propertyAlias);
|
||||
var model = prop.GetValue();
|
||||
@@ -78,7 +78,7 @@ namespace Umbraco.Extensions
|
||||
var asString = property.GetValue() as string;
|
||||
if (asString != null && string.IsNullOrEmpty(asString)) return new HtmlString(string.Empty);
|
||||
|
||||
var view = "Grid/" + framework;
|
||||
var view = "grid/" + framework;
|
||||
return html.Partial(view, property.GetValue());
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace Umbraco.Extensions
|
||||
if (propertyAlias == null) throw new ArgumentNullException(nameof(propertyAlias));
|
||||
if (string.IsNullOrWhiteSpace(propertyAlias)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(propertyAlias));
|
||||
|
||||
var view = "Grid/" + framework;
|
||||
var view = "grid/" + framework;
|
||||
var prop = contentItem.GetProperty(propertyAlias);
|
||||
if (prop == null) throw new InvalidOperationException("No property type found with alias " + propertyAlias);
|
||||
var model = prop.GetValue();
|
||||
|
||||
@@ -16,8 +16,9 @@
|
||||
{
|
||||
foreach (var section in Model.sections) {
|
||||
<div class="grid-section">
|
||||
@foreach (var row in section.rows) {
|
||||
renderRow(row)
|
||||
@foreach (var row in section.rows)
|
||||
{
|
||||
renderRow(row);
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@@ -26,8 +27,9 @@
|
||||
@foreach (var s in Model.sections) {
|
||||
<div class="grid-section">
|
||||
<div class="col-md-@s.grid column">
|
||||
@foreach (var row in s.rows) {
|
||||
renderRow(row)
|
||||
@foreach (var row in s.rows)
|
||||
{
|
||||
renderRow(row);
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,8 +12,9 @@
|
||||
{
|
||||
foreach (var section in Model.sections) {
|
||||
<div class="grid-section">
|
||||
@foreach (var row in section.rows) {
|
||||
renderRow(row, true)
|
||||
@foreach (var row in section.rows)
|
||||
{
|
||||
renderRow(row, true);
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@@ -23,8 +24,9 @@
|
||||
@foreach (var s in Model.sections) {
|
||||
<div class="grid-section">
|
||||
<div class="col-md-@s.grid column">
|
||||
@foreach (var row in s.rows) {
|
||||
renderRow(row, false)
|
||||
@foreach (var row in s.rows)
|
||||
{
|
||||
renderRow(row, false);
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user