mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Removed extraneous curly brace.
This commit is contained in:
@@ -10,15 +10,14 @@
|
|||||||
var unspecifiedCategoryRecipes = Model.Recipes.Where(x => String.IsNullOrWhiteSpace(x.Category)).ToList();
|
var unspecifiedCategoryRecipes = Model.Recipes.Where(x => String.IsNullOrWhiteSpace(x.Category)).ToList();
|
||||||
}
|
}
|
||||||
@helper RenderRecipeOptions(IEnumerable<Recipe> recipes) {
|
@helper RenderRecipeOptions(IEnumerable<Recipe> recipes) {
|
||||||
foreach (var recipe in recipes) {
|
foreach (var recipe in recipes) {
|
||||||
var optionAttributes = new RouteValueDictionary {
|
var optionAttributes = new RouteValueDictionary {
|
||||||
{ "data-recipe-description", recipe.Description }
|
{ "data-recipe-description", recipe.Description }
|
||||||
};
|
};
|
||||||
if (Model.Recipe == null && recipe.Name == "Default") {
|
if (Model.Recipe == null && recipe.Name == "Default") {
|
||||||
optionAttributes["selected"] = "selected";
|
optionAttributes["selected"] = "selected";
|
||||||
}
|
|
||||||
@Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes)
|
|
||||||
}
|
}
|
||||||
|
@Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<h1>@Html.TitleForPage(T("Get Started").ToString())</h1>
|
<h1>@Html.TitleForPage(T("Get Started").ToString())</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user