Open-Source-Access-Control-.../app/views/users/summary.html.erb

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-02-14 09:12:13 +00:00
<style type="text/css">
.users .thumbnail {
height: 200px;
position: relative;
}
2014-02-14 10:48:03 +00:00
.users .badges { position: absolute; bottom: 3em; }
.users .badges img {
float: left;
width: 24px;
height: 24px;
background-color: white;
border-radius: 12px;
}
2014-02-14 09:12:13 +00:00
.users .thumbnail h4 { position: absolute; bottom: 1px; margin-bottom: 1px; }
</style>
2014-02-14 10:48:03 +00:00
<% if user_signed_in? && current_user.current_sign_in_at < Date.parse("2014-03-01") %>
<div class="alert alert-info">Looking for the old table view? Find it in the menu under People, Full Table View.</div>
2014-02-14 09:12:13 +00:00
<% end %>
2014-02-14 10:48:03 +00:00
<h1>HeatSync People
<%= link_to 'New User', new_user_path, class: "btn btn-success" if can? :create, User %>
<%= link_to 'Merge Users', users_merge_path, class: "btn btn-default" if can? :manage, User %>
</h1>
2014-02-14 09:12:13 +00:00
<div class="users">
2014-02-14 10:48:03 +00:00
<%= render @users.sort_by{|u| [-u.member_status, u.name] } %>
2014-02-14 09:12:13 +00:00
</div>
<% if current_user.orientation.blank? then %>
<p class="alert">There's a lot more to see here, but our records show you haven't completed the new member orientation yet. If that's incorrect, please contact a volunteer.</p>
<% end %>
<br />