1 <% if current_user.andand.is_active %>
3 <strong>Recent jobs</strong>
4 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true} %>
5 <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %>
6 <% if not current_user.andand.is_active or @my_jobs.empty? %>
9 <table class="table table-bordered table-condensed table-fixedlayout">
27 <%# Preload collections, logs, and pipeline instance objects %>
31 @my_jobs[0..6].each do |j|
32 collection_uuids << j.output
36 @my_collections[0..6].each do |c|
37 collection_uuids << c.uuid
40 preload_collections_for_objects collection_uuids
41 preload_log_collections_for_objects log_uuids
44 @my_pipelines[0..6].each do |p|
47 resource_class = resource_class_for_uuid(pi_uuids.first, friendly_name: true)
48 preload_objects_for_dataclass resource_class, pi_uuids
51 <% @my_jobs[0..6].each do |j| %>
52 <tr data-object-uuid="<%= j.uuid %>">
55 <%= link_to((j.script.andand[0..31] || j.uuid), job_path(j.uuid)) %>
61 <% if j.state == "Complete" and j.output %>
62 <a href="<%= collection_path(j.output) %>">
63 <% collections = collections_for_object(j.output) %>
64 <% if collections && !collections.empty? %>
65 <% c = collections.first %>
66 <% c.files.each do |file| %>
67 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
78 <% log_collections = log_collections_for_object(j.log) %>
79 <% if log_collections && !log_collections.empty? %>
80 <% c = log_collections.first %>
81 <% c.files.each do |file| %>
82 <a href="<%= collection_path(j.log) %>/<%= file[1] %>?disposition=inline&size=<%= file[2] %>">Log</a>
85 <% elsif j.respond_to? :log_buffer and j.log_buffer.is_a? String %>
86 <% buf = j.log_buffer.strip.split("\n").last %>
87 <span title="<%= buf %>"><%= buf %></span>
94 <%= j.created_at.to_s if j.created_at %>
99 <div class="inline-progress-container">
100 <%= render partial: 'job_progress', locals: {:j => j} %>
111 <strong>Recent pipeline instances</strong>
112 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true} %>
113 <%= link_to raw("Show all pipeline instances →"), pipeline_instances_path, class: 'pull-right' %>
114 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
117 <table class="table table-bordered table-condensed table-fixedlayout">
134 <% @my_pipelines[0..6].each do |p| %>
135 <tr data-object-uuid="<%= p.uuid %>">
138 <%= link_to_if_arvados_object p.uuid, friendly_name: true %>
144 <%= link_to_if_arvados_object p.pipeline_template_uuid, friendly_name: true %>
150 <%= (p.created_at.to_s) if p.created_at %>
155 <%= render partial: 'pipeline_status_label', locals: {:p => p} %>
159 <div class="inline-progress-container">
160 <%= render partial: 'pipeline_progress', locals: {:p => p} %>
170 <strong>Recent collections</strong>
171 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true} %>
172 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
173 <div class="pull-right" style="padding-right: 1em; width: 30%;">
174 <%= form_tag collections_path,
176 class: 'form-search small-form-margin' do %>
177 <div class="input-group input-group-sm">
178 <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search' %>
179 <span class="input-group-btn">
180 <%= button_tag(class: 'btn btn-info') do %>
181 <span class="glyphicon glyphicon-search"></span>
187 <% if not current_user.andand.is_active or @my_collections.empty? %>
190 <table class="table table-bordered table-condensed table-fixedlayout">
205 <% @my_collections[0..6].each do |c| %>
206 <tr data-object-uuid="<%= c.uuid %>">
209 <a href="<%= collection_path(c.uuid) %>">
210 <% c.files.each do |file| %>
211 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
217 <% if @my_tag_links[c.uuid] %>
219 <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
225 <%= c.created_at.to_s if c.created_at %>
229 <%= render partial: 'collections/toggle_persist', locals: { uuid: c.uuid, current_state: @persist_state[c.uuid] } %>
239 <div class="row-fluid">
240 <div class="col-sm-4">
241 <%= image_tag "dax.png", style: "max-width:100%" %>
243 <div class="col-sm-8">
244 <h2>Welcome to Arvados, <%= current_user.first_name %>!</h2>
247 Your account must be activated by an Arvados administrator. If this
248 is your first time accessing Arvados and would like to request
249 access, or you believe you are seeing the page in error, please
250 <%= link_to "contact us", Rails.configuration.activation_contact_link %>.
251 You should receive an email at the address you used to log in when
252 your account is activated. In the mean time, you can
253 <%= link_to "learn more about Arvados", "https://arvados.org/projects/arvados/wiki/Introduction_to_Arvados" %>,
254 and <%= link_to "read the Arvados user guide", "http://doc.arvados.org/user" %>.
256 <p style="padding-bottom: 1em">
257 <%= link_to raw('Contact us ✉'),
258 Rails.configuration.activation_contact_link, class: "pull-right btn btn-primary" %></p>
264 <% content_for :js do %>
265 setInterval(function(){$('a.refresh:eq(0)').click()}, 60000);