<%= link_to(@object.name, show_repository_tree_path(id: @object.uuid, commit: @commit, path: ''), title: 'show root directory of source tree') %> <% parents = '' (@path || '').split('/').each do |pathpart| parents = parents + pathpart + '/' %> / <%= link_to pathpart, show_repository_tree_path(id: @object.uuid, commit: @commit, path: parents) %> <% end %>