160bd862be
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
12 lines
321 B
Ruby
12 lines
321 B
Ruby
# Controller for viewing a repository's file structure
|
|
class Projects::TreeController < Projects::BaseTreeController
|
|
def show
|
|
return not_found! if tree.entries.empty?
|
|
|
|
respond_to do |format|
|
|
format.html
|
|
# Disable cache so browser history works
|
|
format.js { no_cache_headers }
|
|
end
|
|
end
|
|
end
|