X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/194eaad976697799f0e7dcccb581b52dc77feee3..f6a485f2af3665d66d93621d3e0c40ee3e541eef:/apps/workbench/app/controllers/repositories_controller.rb diff --git a/apps/workbench/app/controllers/repositories_controller.rb b/apps/workbench/app/controllers/repositories_controller.rb index d32c92a1e7..c5b3501b32 100644 --- a/apps/workbench/app/controllers/repositories_controller.rb +++ b/apps/workbench/app/controllers/repositories_controller.rb @@ -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