From 811072a7d3b79c8fc4bd1af495a3950416525968 Mon Sep 17 00:00:00 2001 From: Marcin Zajkowski Date: Sun, 20 May 2018 18:48:56 +0200 Subject: [PATCH 1/3] Bugfix for username in reply to field in post reply Removes the badges aliases from username --- OurUmbraco.Site/Assets/js/editor.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OurUmbraco.Site/Assets/js/editor.min.js b/OurUmbraco.Site/Assets/js/editor.min.js index 6e45904f1d..c5833ec4ae 100644 --- a/OurUmbraco.Site/Assets/js/editor.min.js +++ b/OurUmbraco.Site/Assets/js/editor.min.js @@ -215,9 +215,9 @@ var replyTo = ""; if (ent.closest('.actions').length > 0) { - replyTo = ent.closest('.actions').prevAll('.meta').find('a').text(); + replyTo = ent.closest('.actions').prevAll('.meta').find('a:first').text(); } else { - replyTo = $(".question:first .actions").prevAll('.meta').find('a').text() + replyTo = $(".question:first .actions").prevAll('.meta').find('a:first').text() } $('.reply-name').html(replyTo); From 59259a26d577ba657bcf7da00b1670b2199940c6 Mon Sep 17 00:00:00 2001 From: Marcin Zajkowski Date: Mon, 21 May 2018 14:34:48 +0200 Subject: [PATCH 2/3] Bar informing about possibly outdated threads --- OurUmbraco.Site/Views/Partials/Forum/Thread.cshtml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/OurUmbraco.Site/Views/Partials/Forum/Thread.cshtml b/OurUmbraco.Site/Views/Partials/Forum/Thread.cshtml index 2052cd2a08..fe69a39b44 100644 --- a/OurUmbraco.Site/Views/Partials/Forum/Thread.cshtml +++ b/OurUmbraco.Site/Views/Partials/Forum/Thread.cshtml @@ -1,6 +1,5 @@ @model ReadOnlyTopic @using System.Web.Mvc.Html -@using OurUmbraco.Forum.Extensions @using OurUmbraco.Forum.Models @using Umbraco.Core.Logging @@ -47,6 +46,15 @@ } + +@if ((DateTime.UtcNow - Model.Created.ToUniversalTime()).TotalDays > 365 * 2) +{ +
+ Heads up! Please be aware that this thread was created more than 2 years ago and it's possible that it's outdated. +
+} + +