1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <nav class="navbar navbar-default breadcrumbs" role="navigation">
6 <ul class="nav navbar-nav navbar-left">
9 <i class="fa fa-lg fa-fw fa-dashboard"></i>
14 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="projects-menu">
16 <span class="caret"></span>
18 <ul class="dropdown-menu" style="min-width: 20em" role="menu">
24 filters: [['uuid', 'is_a', 'arvados#group']].to_json,
27 action_href: url_for(controller: :actions, action: :show),
29 action_data: {selection_param: 'uuid', success: 'redirect-to-created-object'}.to_json),
30 { remote: true, method: 'get', title: "Search" }) do %>
31 <i class="glyphicon fa-fw glyphicon-search"></i> Search all projects ...
34 <% if !Rails.configuration.Users.AnonymousUserToken.empty? and Rails.configuration.Workbench.EnablePublicProjectsPage %>
35 <li role="menuitem"><a href="/projects/public" role="menuitem"><i class="fa fa-fw fa-list"></i> Browse public projects </a>
39 <%= link_to projects_path(options: {ensure_unique_name: true}), role: 'menu-item', method: :post do %>
40 <i class="fa fa-fw fa-plus"></i> Add a new project
43 <li role="presentation" class="divider"></li>
44 <%= render partial: "projects_tree_menu", locals: {
45 :project_link_to => Proc.new do |pnode, &block|
46 link_to(project_path(pnode[:object].uuid),
47 data: { 'object-uuid' => pnode[:object].uuid,
54 <% if (defined?(@name_link) && @name_link) or (defined?(@object) && @object) %>
55 <li class="nav-separator">
56 <i class="fa fa-lg fa-angle-double-right"></i>
59 <%= link_to project_path(current_user.uuid) do %>
63 <% project_breadcrumbs.each do |p| %>
64 <li class="nav-separator">
65 <i class="fa fa-lg fa-angle-double-right"></i>
68 <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
73 <ul class="nav navbar-nav navbar-right">
76 <%= image_tag("trash-icon.png", size: "20x20" ) %> Trash