Commit 57e6777b3c3059c96b76776098b8eff4535770d0

Authored by Robert Speicher
1 parent 2032f4cd

Remove "remote" attribute from Tree breadcrumb links

See https://github.com/gitlabhq/gitlabhq/pull/1665#discussion_r1804447
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/decorators/tree_decorator.rb
... ... @@ -8,14 +8,14 @@ class TreeDecorator < ApplicationDecorator
8 8  
9 9 #parts = parts[0...-1] if is_blob?
10 10  
11   - yield(h.link_to("..", "#", remote: true)) if parts.count > max_links
  11 + yield(h.link_to("..", "#")) if parts.count > max_links
12 12  
13 13 parts.each do |part|
14 14 part_path = File.join(part_path, part) unless part_path.empty?
15 15 part_path = part if part_path.empty?
16 16  
17 17 next unless parts.last(2).include?(part) if parts.count > max_links
18   - yield(h.link_to(h.truncate(part, length: 40), h.project_tree_path(project, h.tree_join(ref, part_path)), remote: true))
  18 + yield(h.link_to(h.truncate(part, length: 40), h.project_tree_path(project, h.tree_join(ref, part_path))))
19 19 end
20 20 end
21 21 end
... ...