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

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-02-14 09:12:13 +00:00
<style type="text/css">
2014-02-14 11:04:28 +00:00
.users .fthumbnail {
height: 250px;
2014-02-14 09:12:13 +00:00
position: relative;
}
2014-02-14 11:04:28 +00:00
.users .badges {
display: block;
width: 100%;
2014-04-21 17:58:22 +00:00
height: 16px;
2014-02-14 11:04:28 +00:00
}
2014-02-14 10:48:03 +00:00
.users .badges img {
float: left;
2014-04-21 17:58:22 +00:00
width: 16px;
height: 16px;
2014-02-14 10:48:03 +00:00
background-color: white;
border-radius: 12px;
}
2014-02-14 11:04:28 +00:00
.users .bio, .users .thumbnail h4 {
overflow: hidden;
text-overflow: ellipsis;
2014-04-21 17:58:22 +00:00
height: 14pt;
font-size: 11pt;
2014-02-14 11:04:28 +00:00
}
2014-02-14 09:12:13 +00:00
</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 %>
2014-04-11 03:47:25 +00:00
<%= link_to 'Merge Users', users_merge_path, class: "btn btn-primary" if can? :manage, User %>
2014-02-14 10:48:03 +00:00
</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 />