mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Converted Html.Link to return MvcHtmlString. Replaced unnecessary calls to <%= with <%: as a result of this change.
Added some unit tests for Html.Link. --HG-- branch : dev
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
sbClass.Append("current ");
|
||||
|
||||
var classValue = sbClass.ToString().TrimEnd(); %>
|
||||
<li<%=!string.IsNullOrEmpty(classValue) ? string.Format(" class=\"{0}\"", classValue) : "" %>><%=Html.Link(menuItem.Text, menuItem.Href) %></li><%
|
||||
<li<%=!string.IsNullOrEmpty(classValue) ? string.Format(" class=\"{0}\"", classValue) : "" %>><%: Html.Link(menuItem.Text, menuItem.Href) %></li><%
|
||||
++counter;
|
||||
} %>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user