diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-22 16:50:47 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-22 16:50:47 +0400 |
commit | 3f0d8079557e573871cbb1b62e0f90e4e34853f9 (patch) | |
tree | 8b82246434fd838e29a8738cd3ba6c17a9f18789 /app/decorators | |
parent | a59b70902143f8f734c00baaa2fb006c073b91d7 (diff) |
file name overflow fixed
Diffstat (limited to 'app/decorators')
-rw-r--r-- | app/decorators/tree_decorator.rb | 2 |
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| |