Add aspect modification and fix check icon regression on contacts page, close #4397

This commit is contained in:
flaburgan 2013-08-25 21:15:05 +02:00
parent 2d18184653
commit 96e18c6a7b
5 changed files with 30 additions and 30 deletions

View file

@ -45,6 +45,7 @@
* Fix the overlapping of embedded youtube videos [#2943](https://github.com/diaspora/diaspora/issues/2943) * Fix the overlapping of embedded youtube videos [#2943](https://github.com/diaspora/diaspora/issues/2943)
* Fix opacity of control icons [#4414](https://github.com/diaspora/diaspora/issues/4414/) * Fix opacity of control icons [#4414](https://github.com/diaspora/diaspora/issues/4414/)
* Add hover state to header icons [#4436](https://github.com/diaspora/diaspora/pull/4436) * Add hover state to header icons [#4436](https://github.com/diaspora/diaspora/pull/4436)
* Fix check icon regression on contacts page [#4440](https://github.com/diaspora/diaspora/pull/4440)
## Features ## Features
* Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252) * Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252)
@ -62,6 +63,7 @@
* Remove posts, comments and private conversations from the mobile site. [#4408](https://github.com/diaspora/diaspora/pull/4408) [#4409](https://github.com/diaspora/diaspora/pull/4409) * Remove posts, comments and private conversations from the mobile site. [#4408](https://github.com/diaspora/diaspora/pull/4408) [#4409](https://github.com/diaspora/diaspora/pull/4409)
* Added a link to user photos and thumbnails are shown in the left side bar [#4347](https://github.com/diaspora/diaspora/issues/4347) * Added a link to user photos and thumbnails are shown in the left side bar [#4347](https://github.com/diaspora/diaspora/issues/4347)
* Rework the single post view * Rework the single post view
* Add aspect modification on contacts page, close [#4397](https://github.com/diaspora/diaspora/issues/4397)
# 0.1.1.0 # 0.1.1.0

View file

@ -1967,6 +1967,7 @@ ul#requested-scopes
:width 16px :width 16px
:line-height 16px :line-height 16px
:text-align center :text-align center
:float right
@include border-radius(4px) @include border-radius(4px)
:margin-top 1px :margin-top 1px
:color #999 :color #999
@ -2063,10 +2064,6 @@ ul.left_nav
&:hover &:hover
@include opacity(1) @include opacity(1)
a.home_selector
.item_count
:float right
ul.sub_nav ul.sub_nav
:padding :padding
:left 25px :left 25px

View file

@ -25,10 +25,10 @@ $bluebg: #e7f2f7;
float: left; float: left;
margin: 0px; margin: 0px;
margin-right: 10px; margin-right: 10px;
padding: 0px;
color: #222222; color: #222222;
ul { ul {
margin: 0px;
padding: 0px; padding: 0px;
} }
@ -40,7 +40,7 @@ $bluebg: #e7f2f7;
.hoverable { .hoverable {
display: block; display: block;
width: 90%; margin-right: 6px;
padding: 4px; padding: 4px;
&:hover { &:hover {
@ -54,12 +54,6 @@ $bluebg: #e7f2f7;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
}
#stream_selection {
& > li {
margin-bottom: 10px;
}
.action { .action {
width: 12px; width: 12px;
@ -74,6 +68,12 @@ $bluebg: #e7f2f7;
} }
} }
#stream_selection {
& > li {
margin-bottom: 10px;
}
}
#aspects_list { #aspects_list {
.icons-check_yes_ok { .icons-check_yes_ok {
height:18px; height:18px;

View file

@ -2,35 +2,36 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
%ul#aspect_nav.left_nav %ul#aspect_nav
%li.all_aspects{:class => ("active" if params["set"] != "all" && params["set"] != "only_sharing" && !@spotlight)} %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"])} %a.home_selector.hoverable{:href => contacts_path, :class => ("sub_selected" if params["a_id"])}
= t('contacts.index.my_contacts') = t('contacts.index.my_contacts')
.item_count .item_count
= my_contacts_count = my_contacts_count
%ul.sub_nav %ul.sub_nav#aspects_list
- all_aspects.each do |aspect| - all_aspects.each do |aspect|
%li.aspect_element{:data => {:aspect_id => aspect.id}, :class => ("active" if params["a_id"].to_i == aspect.id)} %li.hoverable{:data => {:aspect_id => aspect.id}, :class => ("active" if params["a_id"].to_i == aspect.id)}
.icons-check_yes_ok{:class => ("invisible" if params["a_id"].to_i != aspect.id) }
%a.community_aspect_selector{:href => contacts_path(:a_id => aspect.id)}
= aspect
.item_count .item_count
= aspect.contacts.size = aspect.contacts.size
%a.action.modify_aspect{:href => "/aspects/#{aspect.id}/edit", :rel => "facebox"}
.icons-check_yes_ok{:class => ("selected" if params["a_id"].to_i == aspect.id) }
%a.selectable{:href => contacts_path(:a_id => aspect.id)}
= aspect
%li %li.hoverable
= link_to t('aspects.aspect_listings.add_an_aspect'), new_aspect_path, :class => "new_aspect", :rel => "facebox" = link_to t('aspects.aspect_listings.add_an_aspect'), new_aspect_path, :class => "selectable new_aspect", :rel => "facebox"
%li.all_contacts{:class => ("active" if params["set"] == "all" || params["set"] == "only_sharing")} %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")} %a.home_selector.hoverable{:href => contacts_path(:set => "all"), :class => ("sub_selected" if params["set"] == "only_sharing")}
= t('contacts.index.all_contacts') = t('contacts.index.all_contacts')
.item_count .item_count
= all_contacts_count = all_contacts_count
%ul.sub_nav %ul.sub_nav
%li.aspect_element{:class => ("active" if params["set"] == "only_sharing")} %li.hoverable{:class => ("active" if params["set"] == "only_sharing")}
.icons-check_yes_ok{:class => ("invisible" if params["set"] == "only_sharing")} .icons-check_yes_ok{:class => ("invisible" if params["set"] == "only_sharing")}
%a.community_aspect_selector{:href => contacts_path(:set => "only_sharing")} %a.selectable{:href => contacts_path(:set => "only_sharing")}
= t('contacts.index.only_sharing_with_me') = t('contacts.index.only_sharing_with_me')
.item_count .item_count
= only_sharing_count = only_sharing_count

View file

@ -2,12 +2,12 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
.span-5.append-1 #leftNavBar.span-5.append-1
= render 'contacts/aspect_listings' = render 'contacts/aspect_listings'
- if AppConfig.settings.community_spotlight.enable?
%hr %hr
%ul.left_nav %ul.left_nav
- if AppConfig.settings.community_spotlight.enable?
%li{:class => ("active" if @spotlight)} %li{:class => ("active" if @spotlight)}
= link_to t('contacts.spotlight.community_spotlight'), community_spotlight_path, :class => "element_selector" = link_to t('contacts.spotlight.community_spotlight'), community_spotlight_path, :class => "element_selector"