1 <% content_for :head do %>
6 .dash-list>ul>li>a>span {
18 text-overflow: ellipsis;
40 <% if current_user.andand.is_active %>
43 <% if @my_ssh_keys.count == 0%>
44 <div class="alert alert-info daxalert">
45 <button type="button" class="close" data-dismiss="alert">×</button>
46 <%= image_tag "dax.png", class: "dax" %>
47 <div class="span5" style="margin-right: 1em">
48 Hi, I noticed that you have not yet set up an SSH public key for use with Arvados.
49 <%= link_to "Click here to learn about SSH keys in Arvados.",
50 "http://doc.arvados.org/user/getting_started/ssh-access.html", style: "font-weight: bold" %>
51 Once have an SSH key you would like to use, paste your SSH public key
54 <%= form_for AuthorizedKey.new do |f| %>
55 <%= hidden_field_tag :return_to, request.original_url %>
56 <%= f.text_area :public_key, cols: 50, rows: 4, placeholder: "Paste your public key here", style: "width: 40%" %>
57 <%= f.submit :Save, value: raw("✓"), class: "btn btn-primary", style: "vertical-align: top" %>
62 <% if Collection.limit(1).where(created_by: current_user.uuid).count == 0 %>
63 <div class="alert alert-info daxalert">
64 <button type="button" class="close" data-dismiss="alert">×</button>
65 <%= image_tag "dax.png", class: "dax" %>
67 Hi, I noticed you haven't uploaded a new collection yet.
68 <%= link_to "Click here to learn how to upload data to Arvados Keep.", "http://doc.arvados.org/user/tutorials/tutorial-keep.html", style: "font-weight: bold" %>
74 <% if Job.limit(1).where(created_by: current_user.uuid).count == 0 %>
75 <div class="alert alert-info daxalert">
76 <button type="button" class="close" data-dismiss="alert">×</button>
77 <p><%= image_tag "dax.png", class: "dax" %>
78 Hi, I noticed you haven't run a job yet.
79 <%= link_to "Click here to learn how to run an Arvados Crunch job.", "http://doc.arvados.org/user/tutorials/tutorial-job1.html", style: "font-weight: bold" %>
84 <% if PipelineInstance.limit(1).where(created_by: current_user.uuid).count == 0 %>
85 <div class="alert alert-info daxalert">
86 <button type="button" class="close" data-dismiss="alert">×</button>
87 <p><%= image_tag "dax.png", class: "dax" %>
88 Hi, I noticed you haven't run a pipeline yet.
89 <%= link_to "Click here to learn how to run an Arvados Crunch pipeline.", "http://doc.arvados.org/user/tutorials/tutorial-new-pipeline.html", style: "font-weight: bold" %>
94 <div class="row-fluid">
96 <div class="col span4">
97 <div class="clearfix">
98 <h4>Recent collections</h4>
99 <% if not current_user.andand.is_active or @my_collections.empty? %>
102 <table class="table table-bordered table-condensed job-table">
107 <% @my_collections[0..8].each do |c| %>
111 <%= link_to c.uuid[0..31], collection_path(c.uuid) %>
116 <%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about
117 ','~').sub(' ',' ')) if c[:created_at] %> ago
123 <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %>
128 <div class="col span4">
129 <div class="clearfix">
131 <% if not current_user.andand.is_active or @my_jobs.empty? %>
134 <table class="table table-bordered table-condensed job-table">
141 <% @my_jobs[0..8].each do |j| %>
145 <%= link_to j.script[0..31], job_path(j.uuid) %>
150 <span class="label label-success">finished</span>
151 <% elsif j.success == false %>
152 <span class="label label-danger">failed</span>
153 <% elsif j.running and j.started_at and not j.finished_at %>
154 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
155 <div class="progress" style="margin-bottom: 0">
156 <div class="bar bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;"></div>
157 <div class="bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%; opacity: 0.3"></div>
160 <span class="label">queued</span>
166 <%= link_to j.output[0..31], collection_path(j.output) %>
173 <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %>
178 <div class="col span4">
179 <div class="clearfix">
180 <h4>Recent pipeline instances</h4>
181 <% if not current_user.andand.is_active or @my_pipelines.empty? %>
184 <table class="table table-bordered table-condensed job-table">
190 <% @my_pipelines[0..8].each do |p| %>
194 <% i = PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid)[0] %>
195 <%= link_to i.name, pipeline_instance_path(p.uuid) %>
200 <span class="label label-success">finished</span>
201 <% elsif p.success == false %>
202 <span class="label label-danger">failed</span>
204 <span class="label label-info">running</span>
206 <span class="label">queued</span>
212 <%= link_to raw("Show all pipeline instances →"), jobs_path, class: 'pull-right' %>
220 <% elsif current_user %>
221 <%= image_tag "dax.png", style: "float: left; max-width: 25%; margin-right: 2em" %>
222 <h1>Welcome to Arvados, <%= current_user.first_name %>!</h1>
223 <div class="row-fluid">
224 <div class="col span8">
225 <h4>Your account status</h4>
226 <div class="well clearfix">
227 <p><strong>New / inactive</strong></p>
229 Your account must be activated by an Arvados administrator. If this
230 is your first time accessing Arvados and would like to request
231 access, or you believe you are seeing the page in error, please
232 <%= link_to "contact us", Rails.configuration.activation_contact_link %>.
233 You should receive an email at the address you used to log in when
234 your account is activated. In the mean time, you can
235 <%= link_to "learn more about Arvados", "https://arvados.org/projects/arvados/wiki/Introduction_to_Arvados" %>,
236 and <%= link_to "read the Arvados user guide", "http://doc.arvados.org/user" %>.
239 <%= link_to raw('Contact us ✉'),
240 Rails.configuration.activation_contact_link, class: "pull-right btn btn-primary" %></p>