From: Robert Speicher Date: Thu, 1 Nov 2012 21:56:39 +0000 (-0400) Subject: Remove "remote" attribute from Tree breadcrumb links X-Git-Tag: v3.1.0~85^2~3 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=57e6777b3c3059c96b76776098b8eff4535770d0;p=wvm%2Fgitlab.git Remove "remote" attribute from Tree breadcrumb links See https://github.com/gitlabhq/gitlabhq/pull/1665#discussion_r1804447 --- diff --git a/app/decorators/tree_decorator.rb b/app/decorators/tree_decorator.rb index eb3859a99..c12227afb 100644 --- a/app/decorators/tree_decorator.rb +++ b/app/decorators/tree_decorator.rb @@ -8,14 +8,14 @@ class TreeDecorator < ApplicationDecorator #parts = parts[0...-1] if is_blob? - yield(h.link_to("..", "#", remote: true)) if parts.count > max_links + yield(h.link_to("..", "#")) if parts.count > max_links parts.each do |part| part_path = File.join(part_path, part) unless part_path.empty? part_path = part if part_path.empty? next unless parts.last(2).include?(part) if parts.count > max_links - yield(h.link_to(h.truncate(part, length: 40), h.project_tree_path(project, h.tree_join(ref, part_path)), remote: true)) + yield(h.link_to(h.truncate(part, length: 40), h.project_tree_path(project, h.tree_join(ref, part_path)))) end end end