mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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();
|
||||
}
|
||||
@helper RenderRecipeOptions(IEnumerable<Recipe> recipes) {
|
||||
foreach (var recipe in recipes) {
|
||||
var optionAttributes = new RouteValueDictionary {
|
||||
{ "data-recipe-description", recipe.Description }
|
||||
};
|
||||
if (Model.Recipe == null && recipe.Name == "Default") {
|
||||
optionAttributes["selected"] = "selected";
|
||||
}
|
||||
@Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes)
|
||||
foreach (var recipe in recipes) {
|
||||
var optionAttributes = new RouteValueDictionary {
|
||||
{ "data-recipe-description", recipe.Description }
|
||||
};
|
||||
if (Model.Recipe == null && recipe.Name == "Default") {
|
||||
optionAttributes["selected"] = "selected";
|
||||
}
|
||||
@Html.SelectOption(Model.Recipe, recipe.Name, recipe.Name, optionAttributes)
|
||||
}
|
||||
}
|
||||
<h1>@Html.TitleForPage(T("Get Started").ToString())</h1>
|
||||
|
Reference in New Issue
Block a user