1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if current_user.andand.is_active %>
7 <strong>Recent jobs</strong>
8 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true} %>
9 <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %>
10 <% if not current_user.andand.is_active or @my_jobs.empty? %>
13 <table class="table table-bordered table-condensed table-fixedlayout">
31 <%# Preload collections, logs, and pipeline instance objects %>
35 @my_jobs[0..6].each do |j|
36 collection_uuids << j.output
40 @my_collections[0..6].each do |c|
41 collection_uuids << c.uuid
44 preload_collections_for_objects collection_uuids
45 preload_log_collections_for_objects log_uuids
48 @my_pipelines[0..6].each do |p|
51 resource_class = resource_class_for_uuid(pi_uuids.first, friendly_name: true)
52 preload_objects_for_dataclass resource_class, pi_uuids
55 <% @my_jobs[0..6].each do |j| %>
56 <tr data-object-uuid="<%= j.uuid %>">
59 <%= link_to((j.script.andand[0..31] || j.uuid), job_path(j.uuid)) %>
65 <% if j.state == "Complete" and j.output %>
66 <a href="<%= collection_path(j.output) %>">
67 <% collections = collections_for_object(j.output) %>
68 <% if collections && !collections.empty? %>
69 <% c = collections.first %>
70 <% c.files.each do |file| %>
71 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
82 <% log_collections = log_collections_for_object(j.log) %>
83 <% if log_collections && !log_collections.empty? %>
84 <% c = log_collections.first %>
85 <% c.files.each do |file| %>
86 <a href="<%= collection_path(j.log) %>/<%= file[1] %>?disposition=inline&size=<%= file[2] %>">Log</a>
89 <% elsif j.respond_to? :log_buffer and j.log_buffer.is_a? String %>
90 <% buf = j.log_buffer.strip.split("\n").last %>
91 <span title="<%= buf %>"><%= buf %></span>
98 <%= j.created_at.to_s if j.created_at %>
103 <div class="inline-progress-container">
104 <%= render partial: 'job_progress', locals: {:j => j} %>
115 <strong>Recent pipeline instances</strong>
116 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true} %>
117 <%= link_to raw("Show all pipeline instances →"), pipeline_instances_path, class: 'pull-right' %>
118 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
121 <table class="table table-bordered table-condensed table-fixedlayout">
138 <% @my_pipelines[0..6].each do |p| %>
139 <tr data-object-uuid="<%= p.uuid %>">
142 <%= link_to_if_arvados_object p.uuid, friendly_name: true %>
148 <%= link_to_if_arvados_object p.pipeline_template_uuid, friendly_name: true %>
154 <%= (p.created_at.to_s) if p.created_at %>
159 <%= render partial: 'pipeline_status_label', locals: {:p => p} %>
163 <div class="inline-progress-container">
164 <%= render partial: 'pipeline_progress', locals: {:p => p} %>
174 <strong>Recent collections</strong>
175 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true} %>
176 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
177 <div class="pull-right" style="padding-right: 1em; width: 30%;">
178 <%= form_tag collections_path,
180 class: 'form-search small-form-margin' do %>
181 <div class="input-group input-group-sm">
182 <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search' %>
183 <span class="input-group-btn">
184 <%= button_tag(class: 'btn btn-info') do %>
185 <span class="glyphicon glyphicon-search"></span>
191 <% if not current_user.andand.is_active or @my_collections.empty? %>
194 <table class="table table-bordered table-condensed table-fixedlayout">
209 <% @my_collections[0..6].each do |c| %>
210 <tr data-object-uuid="<%= c.uuid %>">
213 <a href="<%= collection_path(c.uuid) %>">
214 <% c.files.each do |file| %>
215 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
221 <% if @my_tag_links[c.uuid] %>
223 <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
229 <%= c.created_at.to_s if c.created_at %>
233 <%= render partial: 'collections/toggle_persist', locals: { uuid: c.uuid, current_state: @persist_state[c.uuid] } %>
243 <div class="row-fluid">
244 <div class="col-sm-4">
245 <%= image_tag "dax.png", style: "max-width:100%" %>
247 <div class="col-sm-8">
248 <h2>Welcome to Arvados, <%= current_user.first_name %>!</h2>
251 Your account must be activated by an Arvados administrator. If this
252 is your first time accessing Arvados and would like to request
253 access, or you believe you are seeing the page in error, please
254 <%= link_to "contact us", Rails.configuration.Workbench.ActivationContactLink %>.
255 You should receive an email at the address you used to log in when
256 your account is activated. In the mean time, you can
257 <%= link_to "learn more about Arvados", "https://arvados.org/projects/arvados/wiki/Introduction_to_Arvados" %>,
258 and <%= link_to "read the Arvados user guide", "http://doc.arvados.org/user" %>.
260 <p style="padding-bottom: 1em">
261 <%= link_to raw('Contact us ✉'),
262 Rails.configuration.Workbench.ActivationContactLink, class: "pull-right btn btn-primary" %></p>
268 <% content_for :js do %>
269 setInterval(function(){$('a.refresh:eq(0)').click()}, 60000);