diaspora/app/views/aspects/_aspect_listings.haml
Ilyaaaaaaaaaaaaa Zhitomirskiy e42d7273a8 featured users section
2011-07-29 19:00:15 -07:00

38 lines
1.6 KiB
Text

-# Copyright (c) 2010, 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" && !defined?(@featured))}
%a.home_selector{:href => controller_index_path, :class => ("sub_selected" if params["a_id"])}
.contact_count
= my_contacts_count
= left_nav_root
%ul.sub_nav
- for aspect in all_aspects
%li{:data => {:aspect_id => aspect.id}, :class => ("active" if params["a_id"].to_i == aspect.id)}
.edit
= link_to image_tag("icons/pencil.svg", :height => 12), edit_aspect_path(aspect), :rel => "facebox"
%a.aspect_selector{aspect_listing_link_opts(aspect)}
.contact_count
= aspect.contacts.size
= aspect
%li
= link_to t('.add_an_aspect'), "#add_aspect_pane", :class => "new_aspect", :rel => "facebox"
%li.all_contacts{:class => ("active" if params["set"] == "all" || params["set"] == "only_sharing")}
%a.aspect_selector{:href => contacts_path(:set => "all"), :class => ("sub_selected" if params["set"] == "only_sharing")}
.contact_count
= all_contacts_count
= t('contacts.index.all_contacts')
%ul.sub_nav
%li{:class => ("active" if params["set"] == "only_sharing")}
%a.aspect_selector{:href => contacts_path(:set => "only_sharing")}
.contact_count
= only_sharing_count
= t('contacts.index.only_sharing_with_me')