2013-09-28 11:59:19 +00:00
|
|
|
<h1><%= Setting.welcome_title %></h1>
|
2013-01-26 09:21:41 +00:00
|
|
|
<% if !user_signed_in? then %>
|
2013-09-28 11:59:19 +00:00
|
|
|
<%= simple_format Setting.welcome_body %>
|
2013-01-26 09:21:41 +00:00
|
|
|
<% end %>
|
|
|
|
|
2014-04-11 04:01:42 +00:00
|
|
|
<% if ((can? :read, User) && (@recent_user_names.count > 1)) then %>
|
|
|
|
<div class="col-sm-4">
|
2014-04-11 02:45:29 +00:00
|
|
|
<h2>New People: <em>(say hi!)</em></h2>
|
|
|
|
<ul>
|
|
|
|
<% @recent_user_names.each do |user| %>
|
|
|
|
<% if can? :read, user %>
|
|
|
|
<li><%= link_to user.name, user %> <%= raw(user.member_status_symbol) %> <em>(Signed up <%= user.created_at.strftime("%b %d") %>)</em></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2014-04-11 04:01:42 +00:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-02-09 11:01:21 +00:00
|
|
|
|
2014-04-11 02:45:29 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<h2>Cool Stats:</h2>
|
|
|
|
<dl>
|
|
|
|
<dt># of People in this DB:</dt>
|
|
|
|
<dd><%= @num_users %> (<%= @recent_users %> new in the last 7 days)</dd>
|
|
|
|
<dt># of People Certified:</dt>
|
|
|
|
<dd><%= @num_certs %> (<%= @recent_certs %> new in the last 7 days)</dd>
|
|
|
|
<dt># of Current Paying Members:</dt>
|
|
|
|
<dd><%= @num_paid_users %> (<%= @num_plus_users %> plus, <%= @num_basic_users %> basic, <%= @num_associate_users %> associate. <%= @num_delinquent_users %> not-current)</dd>
|
|
|
|
<dt># of Door Accesses Granted:</dt>
|
|
|
|
<dd><%= @num_door_opens %> (<%= @today_door_opens %> today, <%= @recent_door_opens %> in the last 7 days)</dd>
|
|
|
|
<dt># of Door Accesses Denied:</dt>
|
|
|
|
<dd><%= @num_door_denieds %> (<%= @recent_door_denieds %> in the last month)</dd>
|
|
|
|
<dt># of Members DB Logins:</dt>
|
|
|
|
<dd><%= @num_logins %> (<%= @recent_logins %> users last 7 days)</dd>
|
|
|
|
<dt># of Computers in this DB:</dt>
|
|
|
|
<dd><%= @num_macs %> (<%= @recent_macs %> seen today)</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
2013-02-14 07:29:22 +00:00
|
|
|
|
2014-04-11 02:45:29 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<h2>Member Resources</h2>
|
|
|
|
<% if can? :access_doors_remotely, :door_access %>
|
|
|
|
<ul><li><%= link_to "Remote Door Access", space_api_access_path %></li></ul>
|
|
|
|
<% end %>
|
|
|
|
<%= simple_format Setting.member_resources_inset %>
|
2014-04-11 04:01:42 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="col-sm-4">
|
|
|
|
<h3>Featured item:</h3>
|
|
|
|
<%= render @featured_resource unless @featured_resource.blank? %>
|
|
|
|
</span>
|