diff --git a/src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.SummaryAdmin.cshtml b/src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.SummaryAdmin.cshtml index b70adc28d..6c45a70b0 100644 --- a/src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.SummaryAdmin.cshtml @@ -9,7 +9,7 @@ }
@T("The search index contains the following fields: {0}.", string.Join(T(", ").Text, Model.IndexEntry.Fields))
} -@T("The search index was last updated {0}.", Html.DateTimeRelative(Model.IndexEntry.LastUpdateUtc.Value, T))
+@T("The search index was last updated {0}.", Display.DateTimeRelative(dateTime: Model.IndexEntry.LastUpdateUtc.Value))
}@T("Update the search index now: ")
@Html.AntiForgeryTokenOrchard() diff --git a/src/Orchard.Web/Themes/Corporate/Views/ListOfComments.ascx b/src/Orchard.Web/Themes/Corporate/Views/ListOfComments.ascx index ed920dfd1..7678b33a2 100644 --- a/src/Orchard.Web/Themes/Corporate/Views/ListOfComments.ascx +++ b/src/Orchard.Web/Themes/Corporate/Views/ListOfComments.ascx @@ -7,7 +7,7 @@ foreach (var comment in Model) { %><%: comment.Record.CommentText %>
<%: comment.Record.CommentText %>
<% } %> diff --git a/src/Orchard/Mvc/Html/HtmlHelperExtensions.cs b/src/Orchard/Mvc/Html/HtmlHelperExtensions.cs index 3cb858bed..3a571f6a3 100644 --- a/src/Orchard/Mvc/Html/HtmlHelperExtensions.cs +++ b/src/Orchard/Mvc/Html/HtmlHelperExtensions.cs @@ -206,27 +206,6 @@ namespace Orchard.Mvc.Html { #region Format Date/Time - public static LocalizedString DateTimeRelative(this HtmlHelper htmlHelper, DateTime? value, LocalizedString defaultIfNull, Localizer T) { - return value.HasValue ? htmlHelper.DateTimeRelative(value.Value, T) : defaultIfNull; - } - - public static LocalizedString DateTimeRelative(this HtmlHelper htmlHelper, DateTime value, Localizer T) { - var time = htmlHelper.Resolve
- @Html.LinkOrDefault(comment.Record.UserName, comment.Record.SiteName, new { rel = "nofollow" }) - - said - -
-@comment.Record.CommentText
-+ @Html.LinkOrDefault(comment.Record.UserName, comment.Record.SiteName, new { rel = "nofollow" }) + + said + +
+@comment.Record.CommentText
+