4004: Rename "Compute status" to "Compute and job status". Added integration
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index b82ae89ddf17635e538c462fe75b793f3fa88f0e..d343249eaf7bef019fdd5efda4d28ec9521451d2 100644 (file)
@@ -93,7 +93,7 @@ module ApplicationHelper
 
         if opts[:friendly_name]
           if attrvalue.respond_to? :friendly_link_name
-            link_name = attrvalue.friendly_link_name
+            link_name = attrvalue.friendly_link_name opts[:lookup]
           else
             begin
               if resource_class.name == 'Collection'
@@ -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)