Skip to content

Instantly share code, notes, and snippets.

<%= render :partial => 'shared/item_info_panel', :locals => {:item => @file} %>
<% buttons = [] %>
<% buttons << link_to(icon_tag('edit') + 'Edit', '#') %>
<% buttons << link_to(icon_tag('delete') + 'Delete', '#') %>
<%= action_menu(buttons) %>
.styleguide-horizontal-list{
@include horizontal-list;
}
<ul class="has-dropdown">
<li>
<a href="#">I am a dropdown</a>
<ul class="dropdown">
<li>I am a dropdown option</li>
<li>I am a dropdown option</li>
<li>I am a dropdown option</li>
<li>I am a dropdown option</li>
<li>I am a dropdown option</li>
@tylerlee
tylerlee / item-info-panel.erb
Created January 17, 2014 17:55
example item info panel
<%= render :partial => 'shared/item_info_panel', :locals => {:item => @file} %>
<% links = [{:title => 'Inbox', :path => ''},
{:title => 'Exports', :path => ''},
{:title => 'Notifications', :path => ''}] %>
<%=
vertical_tabs do |ui|
links.each do |tab|
ui.tab tab[:title],
tab.delete(:path)
end
end
<%= 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">
<%= 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.sort [
sort_button('Name', @sortable),
sort_button('ID', @sortable),
sort_button('Status', @sortable)
] %>
<% list.header do %>
<th class="mass-checkbox">
<%= 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.sort [
sort_button('Name', @sortable),
sort_button('ID', @sortable),
sort_button('Status', @sortable)
] %>
<% list.row do |team_member| %>
<%= list_table_for @team_members do |list| %>
<% list.empty 'There are no people to show at this time' %>
<% list.header do %>
<th>User</th>
<th>Email Address</th>
<th>God Name</th>
<% end %>
<% list.row do |team_member| %>