1 <div class="row row-fill-height">
3 <div class="panel panel-info">
4 <div class="panel-heading">
5 <h3 class="panel-title">
7 <% @folder_links.each do |l| %>
8 <%= if i > 0 then ', ' end %>
14 <div class="panel-body">
15 <img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
16 <% if not (@output_of.andand.any? or @log_of.andand.any?) %>
17 <p><i>No source information available.</i></p>
20 <% if @output_of.andand.any? %>
21 <p>This collection was the output of:<br />
22 <%= render_arvados_object_list_start(@output_of, 'Show all jobs',
23 jobs_path(filter: [['output', '=', @object.uuid]].to_json)) do |job| %>
24 <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
29 <% if @log_of.andand.any? %>
30 <p>This collection contains log messages from:<br />
31 <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
32 jobs_path(filter: [['log', '=', @object.uuid]].to_json)) do |job| %>
33 <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
40 <div class="col-md-3">
41 <div class="panel panel-default">
42 <div class="panel-heading">
43 <h3 class="panel-title">
47 <div class="panel-body smaller-text">
49 <input type="text" class="form-control" placeholder="Search"/>
51 <div style="height:0.5em;"></div>
52 <% name_or_object = @name_link.andand.uuid ? @name_link : @object %>
53 <% if name_or_object.created_at and not @logs.andand.any? %>
55 Created: <%= name_or_object.created_at.to_s(:long) %>
58 Last modified: <%= name_or_object.modified_at.to_s(:long) %> by <%= link_to_if_arvados_object name_or_object.modified_by_user_uuid, friendly_name: true %>
61 <%= render_arvados_object_list_start(@logs, 'Show all activity',
62 logs_path(filters: [['object_uuid','=',name_or_object.uuid]].to_json)) do |log| %>
64 <%= time_ago_in_words(log.event_at) rescue 'unknown time' %> ago: <%= log.summary %>
65 <% if log.object_uuid %>
66 <%= link_to_if_arvados_object log.object_uuid, link_text: raw('<i class="fa fa-hand-o-right"></i>') %>
74 <div class="col-md-3">
75 <div class="panel panel-default">
76 <div class="panel-heading">
77 <h3 class="panel-title">
78 Sharing and permissions
81 <div class="panel-body">
83 <input type="text" class="form-control" placeholder="Search"/>
86 <div id="sharing-button">
87 <%= render partial: 'sharing_button' %>
90 <div style="height:0.5em;"></div>
91 <% if @projects.andand.any? %>
92 <p>Included in projects:<br />
93 <%= render_arvados_object_list_start(@projects, 'Show all projects',
94 links_path(filter: [['head_uuid', '=', @object.uuid],
95 ['link_class', '=', 'name']].to_json)) do |project| %>
96 <%= link_to_if_arvados_object(project, friendly_name: true) %><br />
100 <% if @permissions.andand.any? %>
101 <p>Readable by:<br />
102 <%= render_arvados_object_list_start(@permissions, 'Show all permissions',
103 links_path(filter: [['head_uuid', '=', @object.uuid],
104 ['link_class', '=', 'permission']].to_json)) do |link| %>
105 <%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %><br />
115 <%= render file: 'application/show.html.erb' %>