-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

%ul#aspect_nav.left_nav
  %li.all_aspects{:class => ("active" if params["set"] != "all" && params["set"] != "only_sharing" && !@spotlight)}
    %a.home_selector{:href => contacts_path, :class => ("sub_selected" if params["a_id"])}
      = t('contacts.index.my_contacts')
      .contact_count
        = my_contacts_count

    %ul.sub_nav
      - all_aspects.each do |aspect|
        %li{:data => {:aspect_id => aspect.id}, :class => ("active" if params["a_id"].to_i == aspect.id)}
          %a.aspect_selector{:href => contacts_path(:a_id => aspect.id)}
            = aspect
            .contact_count
              = aspect.contacts.size

      %li
        = link_to t('aspects.aspect_listings.add_an_aspect'), new_aspect_path, :class => "new_aspect", :rel => "facebox"

  %li.all_contacts{:class => ("active" if params["set"] == "all" || params["set"] == "only_sharing")}
    %a.home_selector{:href => contacts_path(:set => "all"), :class => ("sub_selected" if params["set"] == "only_sharing")}
      = t('contacts.index.all_contacts')
      .contact_count
        = all_contacts_count

    %ul.sub_nav
      %li{:class => ("active" if params["set"] == "only_sharing")}
        %a.aspect_selector{:href => contacts_path(:set => "only_sharing")}
          = t('contacts.index.only_sharing_with_me')
          .contact_count
            = only_sharing_count

