2012-09-17 16:38:59 +00:00
|
|
|
# Controller for viewing a repository's file structure
|
2013-11-05 10:21:11 +00:00
|
|
|
class Projects::TreeController < Projects::BaseTreeController
|
2012-09-17 16:38:59 +00:00
|
|
|
def show
|
2013-10-01 14:00:28 +00:00
|
|
|
return not_found! if tree.entries.empty?
|
|
|
|
|
2012-09-17 16:38:59 +00:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
# Disable cache so browser history works
|
|
|
|
format.js { no_cache_headers }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|