Merge branch 'master' into 5720-ajax-loading-error
[arvados.git] / apps / workbench / app / controllers / repositories_controller.rb
index d32c92a1e71fde336c99b52b990b86f019662af8..c5b3501b328e1214cc00c292c19f61d0be07312f 100644 (file)
@@ -16,4 +16,20 @@ class RepositoriesController < ApplicationController
     panes.delete('Attributes') if !current_user.is_admin
     panes
   end
+
+  def show_tree
+    @commit = params[:commit]
+    @path = params[:path] || ''
+    @subtree = @object.ls_subtree @commit, @path.chomp('/')
+  end
+
+  def show_blob
+    @commit = params[:commit]
+    @path = params[:path]
+    @blobdata = @object.cat_file @commit, @path
+  end
+
+  def show_commit
+    @commit = params[:commit]
+  end
 end