Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added missing curly brackets to HtmlHelperExtensions #1089

Merged
merged 1 commit into from

3 participants

@adamralph

sorry guys, just had to fix this before I could carry on speaking tonight. phew

@adamralph

Just a little demo to my audience (http://www.meetup.com/Zurich-Developers-NET-User-Group/events/166898202/) of how quick and easy it is to send a PR :wink:

@davidfowl davidfowl merged commit 16c05d3 into from
@adamralph adamralph deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 JabbR/Nancy/HtmlHelperExtensions.cs
View
4 JabbR/Nancy/HtmlHelperExtensions.cs
@@ -138,7 +138,9 @@ public static IHtmlString SimplePager<TModel>(this HtmlHelpers<TModel> htmlHelpe
public static IHtmlString DisplayNoneIf<TModel>(this HtmlHelpers<TModel> htmlHelper, Expression<Func<TModel, bool>> expression)
{
if (expression.Compile()(htmlHelper.Model))
+ {
return new NonEncodedHtmlString(@" style=""display:none;"" ");
+ }
return NonEncodedHtmlString.Empty;
}
@@ -153,4 +155,4 @@ public static string RequestQuery<TModel>(this HtmlHelpers<TModel> htmlHelper)
return String.Empty;
}
}
-}
+}
Something went wrong with that request. Please try again.