3899: pipeline_instances_helper: Don't set :state if it's already set. Add newline...
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index b82ae89ddf17635e538c462fe75b793f3fa88f0e..624cb3d4c0e0991e656a90baf9b0729df86877ff 100644 (file)
@@ -470,6 +470,10 @@ module ApplicationHelper
     end
   end
 
+  def render_localized_date(date, opts="")
+    raw("<span class='utc-date' data-utc-date='#{date}' data-utc-date-opts='noseconds'>#{date}</span>")
+  end
+
 private
   def is_textile?( object, attr )
     is_textile = object.textile_attributes.andand.include?(attr)