BigW Consortium Gitlab

tree_controller.rb 321 Bytes
Newer Older
1
# Controller for viewing a repository's file structure
2
class Projects::TreeController < Projects::BaseTreeController
3
  def show
4 5
    return not_found! if tree.entries.empty?

6 7 8 9 10 11 12
    respond_to do |format|
      format.html
      # Disable cache so browser history works
      format.js { no_cache_headers }
    end
  end
end