]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Add a scrollbar when a note gets too big
[rails.git] / app / helpers / application_helper.rb
index fb422cc17ead31643db19b04a2f55a9f358f5a85..18f233e506092d05d9e89ac302b8376ff2d021cb 100644 (file)
@@ -88,6 +88,14 @@ module ApplicationHelper
     end
   end
 
+  def dir
+    if dir = params[:dir]
+      dir == "rtl" ? "rtl" : "ltr"
+    else
+      I18n.t("html.dir")
+    end
+  end
+
   def friendly_date(date)
     content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly))
   end