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

49 lines
1.2 KiB
Plaintext
Executable File

<style type="text/css">
.users .fthumbnail {
height: 250px;
position: relative;
}
.users .badges {
display: block;
width: 100%;
height: 24px;
}
.users .badges img {
float: left;
width: 24px;
height: 24px;
background-color: white;
border-radius: 12px;
}
.users .bio, .users .thumbnail h4 {
overflow: hidden;
text-overflow: ellipsis;
height: 3em;
}
.users .thumbnail h4 {
height: 1em;
}
</style>
<% 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>
<% end %>
<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>
<div class="users">
<%= render @users.sort_by{|u| [-u.member_status, u.name] } %>
</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 />