.row-fluid.content_index .tabbable %ul#ajaxTabs.nav.nav-tabs %li{:class => [@tab[:own]]} = link_to 'My Private Study Content', eval("#{current_user.type.downcase}_contents_path(:type => 'own')"), "data-toggle" => "tab", "data-target" => "#own_contents" %li{:class => [@tab[:shared]]} = link_to 'Shared Study Content', eval("#{current_user.type.downcase}_contents_path(:type => 'shared')"), "data-toggle" => "tab", "data-target" => "#shared_contents" %li{:class => [@tab[:public]]} = link_to 'Public Study Content', eval("#{current_user.type.downcase}_contents_path(:type => 'public')"), "data-toggle" => "tab", "data-target" => "#public_contents" .tab-content - [:own, :shared, :public].each do |tab| %div{:id => "#{tab}_contents", :class => [@tab[tab], "tab-pane"]} - if params[:type] == tab.to_s = render :partial => 'list', :locals => {:contents => @contents}