1 class RepositoriesController < ApplicationController
2 before_filter :set_share_links, if: -> { defined? @object }
10 panes = super | %w(Sharing)
11 panes.insert(panes.length-1, panes.delete_at(panes.index('Advanced'))) if panes.index('Advanced')
16 panes.delete('Attributes') if !current_user.is_admin
21 @commit = params[:commit]
22 @path = params[:path] || ''
23 @subtree = @object.ls_subtree @commit, @path.chomp('/')
27 @commit = params[:commit]
29 @blobdata = @object.cat_file @commit, @path
33 @commit = params[:commit]