add ApiClient#is_trusted, show list of api tokens in Workbench
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 916e4b20db5f53549c950236426255471d943ccc..78504655a8e28d04321b017e2bddb4034e7fe689 100644 (file)
@@ -2,6 +2,11 @@ module ApplicationHelper
   def current_user
     controller.current_user
   end
+
+  def render_content_from_database(markup)
+    raw RedCloth.new(markup).to_html
+  end
+
   def human_readable_bytes_html(n)
     return h(n) unless n.is_a? Fixnum
     raw = n.to_s