]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/note_helper.rb
Ensure that short duration blockss are shown as '0 hours'
[rails.git] / app / helpers / note_helper.rb
index d85881a3111027cb3fe8f5b178deb0fc1acb6486..7e52937a008f94903a9e2c9fe57ea2c3e541f275 100644 (file)
@@ -3,11 +3,11 @@ module NoteHelper
 
   def note_event(event, at, by)
     if by.nil?
-      t("browse.note." + event + "_by_anonymous_html",
+      t("browse.note.#{event}_by_anonymous_html",
         :when => friendly_date_ago(at),
         :exact_time => l(at))
     else
-      t("browse.note." + event + "_by_html",
+      t("browse.note.#{event}_by_html",
         :when => friendly_date_ago(at),
         :exact_time => l(at),
         :user => note_author(by))