Tweaked user home template to make theming easier.
[arvados.git] / apps / workbench / app / views / users / _home.html.erb
diff --git a/apps/workbench/app/views/users/_home.html.erb b/apps/workbench/app/views/users/_home.html.erb
new file mode 100644 (file)
index 0000000..883b6a0
--- /dev/null
@@ -0,0 +1,71 @@
+<% content_for :css do %>
+      .dash-list {
+        padding: 9px 0;
+      }
+      .dash-list>ul>li>a>span {
+      min-width: 1.5em;
+      margin-left: auto;
+      margin-right: auto;
+      }
+      .job-table {
+      white-space: nowrap;
+      table-layout: fixed;
+      }
+      .job-table td {
+      overflow: hidden;
+      overflow-x: hidden;
+      text-overflow: ellipsis;
+      }
+      .centerme {
+      margin-left: auto;
+      margin-right: auto;
+      text-align: center;
+      }
+      .bigfatnumber {
+      font-size: 4em;
+      font-weight: bold;
+      }
+      .dax {
+      max-width: 10%;
+      margin-right: 1em;
+      float: left
+      }
+      .daxalert {
+      overflow: hidden;
+      }
+<% end %>
+
+<div class="container-fluid">
+
+  <div class="span3 pull-right">
+    <br/>
+
+    <div class="well">
+<% if current_user.andand.is_active %>
+  <p>Your account status:<br/>
+    <strong>Active</strong></p>
+<% elsif current_user %>
+      <p>Your account status:<br/>
+       <strong>New / inactive</strong></p>
+      <p>
+       Your account must be activated by an Arvados administrator.  If this
+       is your first time accessing Arvados and would like to request
+       access, or you believe you are seeing the page in error, please 
+       <%= link_to "contact us", Rails.configuration.activation_contact_link %>.  
+       You should receive an email at the address you used to log in when
+       your account is activated.
+      </p>
+      <p>
+       <%= link_to raw('Contact us &#x2709;'),
+           Rails.configuration.activation_contact_link, class: "btn btn-primary" %></p>
+<% end %>
+    </div>
+
+    <%= render :partial => 'notifications' %>
+  </div>
+  
+  <div class="span8">
+    <%= render :partial => 'tables' %>
+  </div>
+
+</div>