1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class RepositoriesController < ApplicationController
6 before_filter :set_share_links, if: -> { defined? @object }
14 panes = super | %w(Sharing)
15 panes.insert(panes.length-1, panes.delete_at(panes.index('Advanced'))) if panes.index('Advanced')
20 panes.delete('Attributes') if !current_user.is_admin
25 @commit = params[:commit]
26 @path = params[:path] || ''
27 @subtree = @object.ls_subtree @commit, @path.chomp('/')
31 @commit = params[:commit]
33 @blobdata = @object.cat_file @commit, @path
37 @commit = params[:commit]