Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / repositories / _repository_breadcrumbs.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <div class="pull-right">
6   <span class="deemphasize">Browsing <%= @object.name %> repository at commit</span>
7   <%= link_to(@commit, show_repository_commit_path(id: @object.uuid, commit: @commit), title: 'show commit message') %>
8 </div>
9 <p>
10   <%= link_to(@object.name, show_repository_tree_path(id: @object.uuid, commit: @commit, path: ''), title: 'show root directory of source tree') %>
11   <% parents = ''
12      (@path || '').split('/').each do |pathpart|
13      parents = parents + pathpart + '/'
14      %>
15     / <%= link_to pathpart, show_repository_tree_path(id: @object.uuid, commit: @commit, path: parents) %>
16   <% end %>
17 </p>