projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11185: Added "Re-run without reuse" button to the completed CR page, so that it
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
projects
/
_index_projects.html.erb
diff --git
a/apps/workbench/app/views/projects/_index_projects.html.erb
b/apps/workbench/app/views/projects/_index_projects.html.erb
index 1e2d768112a36ca0ded1527d08c9ef0f8d72693d..bf92f3472eea73e3158b9ea4d2ecff5400992048 100644
(file)
--- a/
apps/workbench/app/views/projects/_index_projects.html.erb
+++ b/
apps/workbench/app/views/projects/_index_projects.html.erb
@@
-2,30
+2,31
@@
<% tree.each do |projectnode| %>
<% rowtype = projectnode[:object].class %>
<% next if rowtype != Group and !show_root_node %>
<% tree.each do |projectnode| %>
<% rowtype = projectnode[:object].class %>
<% next if rowtype != Group and !show_root_node %>
- <div class="<%= 'project' if rowtype
== Group
%> row">
- <div class="col-md-
12
" style="padding-left: <%= projectnode[:depth] - (show_root_node ? 0 : 1) %>em;">
+ <div class="<%= 'project' if rowtype
.in?([Group,User])
%> row">
+ <div class="col-md-
4
" style="padding-left: <%= projectnode[:depth] - (show_root_node ? 0 : 1) %>em;">
<% if show_root_node and rowtype == String %>
<% if show_root_node and rowtype == String %>
- <i class="fa fa-fw fa-
folder-open-o
"></i>
+ <i class="fa fa-fw fa-
share-alt
"></i>
<%= projectnode[:object] %>
<% elsif show_root_node and rowtype == User %>
<% if projectnode[:object].uuid == current_user.andand.uuid %>
<%= projectnode[:object] %>
<% elsif show_root_node and rowtype == User %>
<% if projectnode[:object].uuid == current_user.andand.uuid %>
- <i class="fa fa-fw fa-folder-open-o"></i>
- My Projects
+ <i class="fa fa-fw fa-folder-o"></i>
+ <%= link_to project_path(id: projectnode[:object].uuid) do %>
+ Home
+ <% end %>
<% else %>
<i class="fa fa-fw fa-folder-o"></i>
<%= projectnode[:object].friendly_link_name %>
<% end %>
<% elsif rowtype == Group %>
<i class="fa fa-fw fa-folder-o"></i>
<% else %>
<i class="fa fa-fw fa-folder-o"></i>
<%= projectnode[:object].friendly_link_name %>
<% end %>
<% elsif rowtype == Group %>
<i class="fa fa-fw fa-folder-o"></i>
- <% opts = {} %>
- <% opts[:title] = projectnode[:object].description %>
- <% opts[:'data-toggle'] = 'tooltip' %>
- <% opts[:'data-placement'] = 'bottom' %>
- <%= link_to projectnode[:object], opts do %>
+ <%= link_to projectnode[:object] do %>
<%= projectnode[:object].friendly_link_name %>
<% end %>
<% end %>
</div>
<%= projectnode[:object].friendly_link_name %>
<% end %>
<% end %>
</div>
+ <% if projectnode[:object].respond_to?(:description) and not projectnode[:object].description.blank? %>
+ <div class="col-md-8 small"><%= render_attribute_as_textile(projectnode[:object], "description", projectnode[:object].description, true) %></div>
+ <% end %>
</div>
<% end %>
</div>
</div>
<% end %>
</div>