]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Improve display of anonymous note comments
[rails.git] / app / helpers / application_helper.rb
index 49608c4a0d42a9df70e3f2c6b7bbac4bb05d38b3..3771acf3726746cbc44f99a5cc91af5c43c2c14b 100644 (file)
@@ -95,4 +95,8 @@ module ApplicationHelper
       I18n.t("html.dir")
     end
   end
+
+  def friendly_date(date)
+    content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly))
+  end
 end