1 <% content_for :head do %>
6 .dash-list>ul>li>a>span {
18 text-overflow: ellipsis;
40 <% if current_user.andand.is_active %>
42 <div class="container-fluid">
47 <strong>Recent jobs</strong>
48 <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %>
49 <% if not current_user.andand.is_active or @my_jobs.empty? %>
52 <table class="table table-bordered table-condensed job-table">
69 <% @my_jobs[0..6].each do |j| %>
73 <%= link_to j.script[0..31], job_path(j.uuid) %>
81 <a href="<%= collection_path(j.output) %>">
82 <% Collection.limit(1).where(uuid: j.output).each do |c|
83 c.files.each do |file| %>
84 <%= "#{file[0]}/#{file[1]}" %>
96 <a href="<%= collection_path(j.log) %>">Log</a>
103 <%= raw(distance_of_time_in_words(j[:created_at], Time.now).sub('about
104 ','~').sub(' ',' ')) if j[:created_at] %> ago
110 <span class="label label-success">finished</span>
111 <% elsif j.success == false %>
112 <span class="label label-danger">failed</span>
113 <% elsif j.running and j.started_at and not j.finished_at %>
114 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
115 <div class="progress" style="margin-bottom: 0">
116 <div class="bar bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;"></div>
117 <div class="bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%; opacity: 0.3"></div>
120 <span class="label">queued</span>
131 <strong>Recent pipeline instances</strong>
132 <%= link_to raw("Show all pipeline instances →"), jobs_path, class: 'pull-right' %>
133 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
136 <table class="table table-bordered table-condensed job-table">
144 <th>Pipeline template</th>
149 <% @my_pipelines[0..6].each do |p| %>
153 <% PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid).each do |i| %>
154 <%= link_to i.name, pipeline_instance_path(p.uuid) %>
161 <%= raw(distance_of_time_in_words(p[:created_at], Time.now).sub('about
162 ','~').sub(' ',' ')) if p[:created_at] %> ago
168 <span class="label label-success">finished</span>
169 <% elsif p.success == false %>
170 <span class="label label-danger">failed</span>
172 <span class="label label-info">running</span>
174 <span class="label">queued</span>
185 <strong>Recent collections</strong>
186 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
187 <% if not current_user.andand.is_active or @my_collections.empty? %>
190 <table class="table table-bordered table-condensed job-table">
201 <% @my_collections[0..6].each do |c| %>
205 <a href="<%= collection_path(c.uuid) %>">
206 <% c.files.each do |file| %>
207 <%= "#{file[0]}/#{file[1]}" %>
214 <%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about
215 ','~').sub(' ',' ')) if c[:created_at] %> ago
228 <% if @my_ssh_keys.count == 0%>
229 <div class="alert alert-info daxalert">
230 <button type="button" class="close" data-dismiss="alert">×</button>
231 <%= image_tag "dax.png", class: "dax" %>
233 Hi, I noticed that you have not yet set up an SSH public key for use with Arvados.
234 <%= link_to "Click here to learn about SSH keys in Arvados.",
235 "http://doc.arvados.org/user/getting_started/ssh-access.html",
236 style: "font-weight: bold",
238 When you have an SSH key you would like to use, paste the SSH public key
241 <%= form_for AuthorizedKey.new do |f| %>
242 <%= hidden_field_tag :return_to, request.original_url %>
243 <%= f.text_area :public_key, cols: 50, rows: 4, placeholder: "Paste your public key here", style: "width: 100%" %>
244 <%= f.submit :Save, value: raw("✓"), class: "btn btn-primary pull-right" %>
249 <% if @my_collections.count == 0 %>
250 <div class="alert alert-info daxalert">
251 <button type="button" class="close" data-dismiss="alert">×</button>
252 <%= image_tag "dax.png", class: "dax" %>
254 Hi, I noticed you haven't uploaded a new collection yet.
255 <%= link_to "Click here to learn how to upload data to Arvados Keep.",
256 "http://doc.arvados.org/user/tutorials/tutorial-keep.html",
257 style: "font-weight: bold", target: "_blank" %>
263 <% if @my_jobs.count == 0 %>
264 <div class="alert alert-info daxalert">
265 <button type="button" class="close" data-dismiss="alert">×</button>
266 <p><%= image_tag "dax.png", class: "dax" %>
267 Hi, I noticed you haven't run a job yet.
268 <%= link_to "Click here to learn how to run an Arvados Crunch job.",
269 "http://doc.arvados.org/user/tutorials/tutorial-job1.html",
270 style: "font-weight: bold",
276 <% if @my_pipelines.count == 0 %>
277 <div class="alert alert-info daxalert">
278 <button type="button" class="close" data-dismiss="alert">×</button>
279 <p><%= image_tag "dax.png", class: "dax" %>
280 Hi, I noticed you haven't run a pipeline yet.
281 <%= link_to "Click here to learn how to run an Arvados Crunch pipeline.",
282 "http://doc.arvados.org/user/tutorials/tutorial-new-pipeline.html",
283 style: "font-weight: bold",
290 <p><strong>Useful links</strong></p>
292 <li><%= link_to "Arvados project page", "http://arvados.org", target: "_blank" %></li>
293 <li><%= link_to "Tutorials and user guide",
294 "http://doc.arvados.org/user/", target: "_blank" %></li>
300 <p><strong>System status</strong></p>
302 <% [Human, Trait, Collection, PipelineTemplate,
303 PipelineInstance].each do |aclass| %>
306 <span style="margin-right: 2em">
307 <a href="/<%= raw(aclass.to_s.pluralize.underscore) %>">
308 <%= raw(aclass.to_s.pluralize.underscore.capitalize.gsub '_', ' ') %>
313 <% if aclass == 'File' %>
314 <%= Collection.limit(4000).where({}).collect(&:files).flatten(1).count %>
316 <%= aclass.limit(4000).where({}).count %>
327 <% elsif current_user %>
328 <%= image_tag "dax.png", style: "float: left; max-width: 25%; margin-right: 2em" %>
329 <h1>Welcome to Arvados, <%= current_user.first_name %>!</h1>
330 <div class="row-fluid">
331 <div class="col span8">
332 <h4>Your account status</h4>
333 <div class="well clearfix">
334 <p><strong>New / inactive</strong></p>
336 Your account must be activated by an Arvados administrator. If this
337 is your first time accessing Arvados and would like to request
338 access, or you believe you are seeing the page in error, please
339 <%= link_to "contact us", Rails.configuration.activation_contact_link %>.
340 You should receive an email at the address you used to log in when
341 your account is activated. In the mean time, you can
342 <%= link_to "learn more about Arvados", "https://arvados.org/projects/arvados/wiki/Introduction_to_Arvados" %>,
343 and <%= link_to "read the Arvados user guide", "http://doc.arvados.org/user" %>.
346 <%= link_to raw('Contact us ✉'),
347 Rails.configuration.activation_contact_link, class: "pull-right btn btn-primary" %></p>