Skip to content

Instantly share code, notes, and snippets.

@mkoby
Created May 1, 2013 16:33
Show Gist options
  • Save mkoby/5496397 to your computer and use it in GitHub Desktop.
Save mkoby/5496397 to your computer and use it in GitHub Desktop.
%ul.nav.nav-tabs
%li{ :class => "#{ "active" if @BasAllActive }" }
= link_to "all", bags_url(:id => h(@user.username))
%small (#{@user.bags.count})
#all_tag_and_query
- if @BasAllTips && [email protected]?
= render :partial => '/share/arr_and_tag', :locals => { :bags_count => @bags.total_entries, :tag => @tag }
%li{ :class => "#{ "active" if @DraftActive }" }
= link_to "draft", bags_by_scope_url(:id => h(@user.username), :extra_params => "draft")
%small (#{@user.bags.unpublish.count})
#draft_tag_and_query
- if @DraftTips && [email protected]?
= render :partial => '/share/arr_and_tag', :locals => { :bags_count => @bags.total_entries, :tag => @tag }
%li{ :class => "#{ "active" if @PublishActive }" }
= link_to "published", bags_by_scope_url(:id => h(@user.username), :extra_params => "published")
%small (#{@user.bags.publish.count})
#published_tag_and_query
- if @PublishTips && [email protected]?
= render :partial => '/share/arr_and_tag', :locals => { :bags_count => @bags.total_entries, :tag => @tag }
%li{ :class => "#{ "active" if @PrivateActive }" }
= link_to "private", bags_by_scope_url(:id => h(@user.username), :extra_params => "private")
%small (#{@user.bags.private.count})
#private_tag_and_query
- if @PrivateTips && [email protected]?
= render :partial => '/share/arr_and_tag', :locals => { :bags_count => @bags.total_entries, :tag => @tag }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment