1 <div class="row row-fill-height">
3 <div class="panel panel-info">
4 <div class="panel-heading">
5 <h3 class="panel-title">
6 <%= render_editable_attribute @object, 'name', nil, {data: {emptytext: "New folder"}} %>
9 <div class="panel-body">
10 <img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
11 <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "Created: #{@object.created_at.to_s(:long)}", 'data-toggle' => 'manual', 'id' => "#{@object.uuid}-description" } %>
12 <% if @object.attribute_editable? 'description' %>
13 <div style="margin-top: 1em;">
14 <a href="#" class="btn btn-xs btn-default" data-toggle="x-editable" data-toggle-selector="#<%= @object.uuid %>-description"><i class="fa fa-fw fa-pencil"></i> Edit description</a>
20 <div class="col-md-3">
21 <div class="panel panel-default">
22 <div class="panel-heading">
23 <h3 class="panel-title">
27 <div class="panel-body smaller-text">
29 <input type="text" class="form-control" placeholder="Search"/>
31 <div style="height:0.5em;"></div>
33 <%= render_arvados_object_list_start(@logs, 'Show all activity',
34 logs_path(filters: [['object_uuid','=',@object.uuid]].to_json)) do |log| %>
36 <%= time_ago_in_words(log.event_at) %> ago: <%= log.summary %>
37 <% if log.object_uuid %>
38 <%= link_to_if_arvados_object log.object_uuid, link_text: raw('<i class="fa fa-hand-o-right"></i>') %>
44 Created: <%= @object.created_at.to_s(:long) %>
47 Last modified: <%= @object.modified_at.to_s(:long) %> by <%= link_to_if_arvados_object @object.modified_by_user_uuid, friendly_name: true %>
53 <div class="col-md-3">
54 <div class="panel panel-default">
55 <div class="panel-heading">
56 <h3 class="panel-title">
57 Sharing and permissions
60 <div class="panel-body">
62 <input type="text" class="form-control" placeholder="Search"/>
64 <div style="height:0.5em;"></div>
65 <% if @object.owner %>
66 <p>Permissions inherited from:
68 <% if User == resource_class_for_uuid(@object.owner_uuid) %>
69 <i class="fa fa-fw fa-user"></i>
71 <i class="fa fa-fw fa-folder"></i>
73 <%= link_to_if_arvados_object @object.owner_uuid, friendly_name: true %>
74 <%= button_to('Move to...',
79 action_href: folder_path(@object.uuid),
81 action_data: {selection_param: 'folder[owner_uuid]'}.to_json),
82 { class: "btn btn-default btn-xs arv-move-to-folder", remote: true, method: 'get' }) %>
87 <% if not @share_links.any? %>
88 <span class="deemphasize">(No additional permissions)</span>
91 <% @share_links.andand.each do |link| %>
92 <br /><%= link_to_if_arvados_object link.tail_uuid, friendly_name: true %>
102 <!-- disable cards section until we have bookmarks -->
104 <% @objects[0..3].each do |object| %>
105 <div class="card arvados-object">
106 <div class="card-top blue">
108 <img src="/favicon.ico" alt=""/>
111 <div class="card-info">
112 <span class="title"><%= @objects.name_for(object) || object.class_for_display %></span>
113 <div class="desc"><%= object.respond_to?(:description) ? object.description : object.uuid %></div>
115 <div class="card-bottom">
116 <%= render :partial => "show_object_button", :locals => {object: object, htmloptions: {class: 'btn-default btn-block'}} %>
121 <!-- end disabled cards section -->
125 <div class="col-md-12">
126 <div class="panel panel-info">
127 <div class="panel-heading">
129 <div class="col-md-6">
130 <h3 class="panel-title" style="vertical-align:middle;">
134 <div class="col-md-6">
135 <div class="input-group input-group-sm pull-right">
136 <input type="text" class="form-control search-folder-contents" placeholder="Search folder contents"/>
141 <div class="panel-body">
144 <table class="table table-condensed arv-index">
155 <% @objects_and_names.each do |object, name_link| %>
156 <tr data-object-uuid="<%= (name_link && name_link.uuid) || object.uuid %>">
158 <%= render :partial => "selection_checkbox", :locals => {object: object} %>
161 <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %>
164 <%= render_editable_attribute name_link, 'name', nil, {data: {emptytext: "Unnamed #{object.class_for_display}"}} %>
167 <%= object.content_summary %>
169 <td title="<%= object.modified_at %>">
171 <%= raw distance_of_time_in_words(object.modified_at, Time.now).sub('about ','~').sub(' ',' ') + ' ago' rescue object.modified_at %>
174 <td class="arvados-uuid">
178 <% if @object.editable? %>
179 <%= link_to({action: 'remove_item', id: @object.uuid, item_uuid: ((name_link && name_link.uuid) || object.uuid)}, method: :delete, remote: true, data: {confirm: "You are about to remove #{object.class_for_display} #{object.uuid} from this folder.\n\nAre you sure?"}, class: 'btn btn-xs btn-default') do %>
180 Remove <i class="fa fa-fw fa-ban"></i>