1 <% if current_user.andand.is_active %>
3 <strong>Recent jobs</strong>
4 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true, method: 'get'} %>
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">
31 @my_jobs[0..6].each do |j|
32 job_outputs << j.output
36 preload_collections job_outputs
37 preload_log_collections job_logs
39 <% @my_jobs[0..6].each do |j| %>
40 <tr data-object-uuid="<%= j.uuid %>">
43 <%= link_to((j.script.andand[0..31] || j.uuid), job_path(j.uuid)) %>
49 <% if j.success and j.output %>
50 <a href="<%= collection_path(j.output) %>">
51 <% collections = get_collections(j.output) %>
52 <% if collections && !collections.empty? %>
53 <% c = collections.first %>
54 <% c.files.each do |file| %>
55 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
66 <% log_collections = get_log_collections(j.log) %>
67 <% if log_collections && !log_collections.empty? %>
68 <% c = log_collections.first %>
69 <% c.files.each do |file| %>
70 <a href="<%= collection_path(j.log) %>/<%= file[1] %>?disposition=inline&size=<%= file[2] %>">Log</a>
73 <% elsif j.respond_to? :log_buffer and j.log_buffer.is_a? String %>
74 <% buf = j.log_buffer.strip.split("\n").last %>
75 <span title="<%= buf %>"><%= buf %></span>
82 <%= raw(distance_of_time_in_words(j.created_at, Time.now).sub('about ','~').sub(' ',' ')) if j.created_at %>
87 <%= render partial: 'job_status_label', locals: {:j => j} %>
90 <div class="inline-progress-container">
91 <%= render partial: 'job_progress', locals: {:j => j} %>
102 <strong>Recent pipeline instances</strong>
103 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true, method: 'get'} %>
104 <%= link_to raw("Show all pipeline instances →"), pipeline_instances_path, class: 'pull-right' %>
105 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
108 <table class="table table-bordered table-condensed table-fixedlayout">
125 <% @my_pipelines[0..6].each do |p| %>
126 <tr data-object-uuid="<%= p.uuid %>">
129 <%= link_to_if_arvados_object p.uuid, friendly_name: true %>
135 <%= link_to_if_arvados_object p.pipeline_template_uuid, friendly_name: true %>
141 <%= raw(distance_of_time_in_words(p.created_at, Time.now).sub('about ','~').sub(' ',' ')) if p.created_at %>
146 <%= render partial: 'pipeline_status_label', locals: {:p => p} %>
150 <div class="inline-progress-container">
151 <%= render partial: 'pipeline_progress', locals: {:p => p} %>
161 <strong>Recent collections</strong>
162 <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true, method: 'get'} %>
163 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
164 <div class="pull-right" style="padding-right: 1em; width: 30%;">
165 <%= form_tag collections_path,
167 class: 'form-search small-form-margin' do %>
168 <div class="input-group input-group-sm">
169 <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search' %>
170 <span class="input-group-btn">
171 <%= button_tag(class: 'btn btn-info') do %>
172 <span class="glyphicon glyphicon-search"></span>
178 <% if not current_user.andand.is_active or @my_collections.empty? %>
181 <table class="table table-bordered table-condensed table-fixedlayout">
196 <% @my_collections[0..6].each do |c| %>
197 <tr data-object-uuid="<%= c.uuid %>">
200 <a href="<%= collection_path(c.uuid) %>">
201 <% c.files.each do |file| %>
202 <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
208 <% if @my_tag_links[c.uuid] %>
210 <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
216 <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %>
220 <%= render partial: 'collections/toggle_persist', locals: { uuid: c.uuid, current_state: @persist_state[c.uuid] } %>
230 <div class="row-fluid">
231 <div class="col-sm-4">
232 <%= image_tag "dax.png", style: "max-width:100%" %>
234 <div class="col-sm-8">
235 <h2>Welcome to Arvados, <%= current_user.first_name %>!</h2>
238 Your account must be activated by an Arvados administrator. If this
239 is your first time accessing Arvados and would like to request
240 access, or you believe you are seeing the page in error, please
241 <%= link_to "contact us", Rails.configuration.activation_contact_link %>.
242 You should receive an email at the address you used to log in when
243 your account is activated. In the mean time, you can
244 <%= link_to "learn more about Arvados", "https://arvados.org/projects/arvados/wiki/Introduction_to_Arvados" %>,
245 and <%= link_to "read the Arvados user guide", "http://doc.arvados.org/user" %>.
247 <p style="padding-bottom: 1em">
248 <%= link_to raw('Contact us ✉'),
249 Rails.configuration.activation_contact_link, class: "pull-right btn btn-primary" %></p>
255 <% content_for :js do %>
256 setInterval(function(){$('a.refresh:eq(0)').click()}, 60000);