Removed extraneous curly brace.

This commit is contained in:
Sipke Schoorstra
2015-07-19 22:45:20 +01:00
parent 21629dd6c2
commit 833d297499

View File

@@ -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>