Skip to content

Instantly share code, notes, and snippets.

@tylerlee
Created January 13, 2014 18:49
Show Gist options
  • Save tylerlee/8405795 to your computer and use it in GitHub Desktop.
Save tylerlee/8405795 to your computer and use it in GitHub Desktop.
<%= list_table_for @team_members, :form_action => 'search' do |list| %>
<% list.empty 'There are no people to show at this time' %>
<% list.search 'Search for a Person', width: '300px' %>
<% list.row do |team_member| %>
<td class="mass-checkbox"></td>
<td class="list-item">
<%= profile_picture(team_member) %>
<%= highlight_status({status: 'success', text: 'Approved'}, :class => 'right') %>
<div class="list-item-title with-pic">
<h5><%= team_member.display_name %></h5>
<div class="details"><%= (team_member.city + ', ' if team_member.city) + team_member.state %></div>
</div>
</td>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment