Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-11-22 16:50:47 +0400
committergitlabhq <m@gitlabhq.com>2011-11-22 16:50:47 +0400
commit3f0d8079557e573871cbb1b62e0f90e4e34853f9 (patch)
tree8b82246434fd838e29a8738cd3ba6c17a9f18789 /app/decorators
parenta59b70902143f8f734c00baaa2fb006c073b91d7 (diff)
file name overflow fixed
Diffstat (limited to 'app/decorators')
-rw-r--r--app/decorators/tree_decorator.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/decorators/tree_decorator.rb b/app/decorators/tree_decorator.rb
index 8379006c94b..11af9724c0f 100644
--- a/app/decorators/tree_decorator.rb
+++ b/app/decorators/tree_decorator.rb
@@ -6,6 +6,8 @@ class TreeDecorator < ApplicationDecorator
part_path = ""
parts = path.split("\/")
+ parts = parts[0...-1] if is_blob?
+
yield(h.link_to("..", "#", :remote => :true)) if parts.count > max_links
parts.each do |part|