Refresh dashboard with AJAX every 60 seconds.
[arvados.git] / apps / workbench / app / views / users / _home.html.erb
1 <% content_for :breadcrumbs do raw '<!-- -->' end %>
2 <% content_for :css do %>
3       .dash-list {
4         padding: 9px 0;
5       }
6       .dash-list>ul>li>a>span {
7       min-width: 1.5em;
8       margin-left: auto;
9       margin-right: auto;
10       }
11       .centerme {
12       margin-left: auto;
13       margin-right: auto;
14       text-align: center;
15       }
16       .bigfatnumber {
17       font-size: 4em;
18       font-weight: bold;
19       }
20       .dax {
21       max-width: 10%;
22       margin-right: 1em;
23       float: left
24       }
25       .daxalert {
26       overflow: hidden;
27       }
28 <% end %>
29
30 <div class="container-fluid">
31
32   <div class="span3 pull-right">
33     <br/>
34
35     <div class="well">
36 <% if current_user.andand.is_active %>
37   <p>Your account status:<br/>
38     <strong>Active</strong></p>
39 <% elsif current_user %>
40       <p>Your account status:<br/>
41         <strong>New / inactive</strong></p>
42       <p>
43         Your account must be activated by an Arvados administrator.  If this
44         is your first time accessing Arvados and would like to request
45         access, or you believe you are seeing the page in error, please 
46         <%= link_to "contact us", Rails.configuration.activation_contact_link %>.  
47         You should receive an email at the address you used to log in when
48         your account is activated.
49       </p>
50       <p>
51         <%= link_to raw('Contact us &#x2709;'),
52             Rails.configuration.activation_contact_link, class: "btn btn-primary" %></p>
53 <% end %>
54     </div>
55
56     <%= render :partial => 'notifications' %>
57   </div>
58   
59   <div class="span8" id="home-tables">
60     <%= render :partial => 'tables' %>
61   </div>
62
63 </div>