minor visual tweaks

This commit is contained in:
Daniel Vincent Grippi 2010-09-13 20:51:27 -07:00
parent 0782e0b199
commit b49eaa1ceb
2 changed files with 23 additions and 26 deletions

View file

@ -32,37 +32,38 @@
= image_tag(request.person.profile.image_url(:thumb_small)) unless request.person.profile.image_url.nil?
.name
= request.person.real_name
%h1
Ignore/Remove
%li.remove
%ul
%ul#aspect_list
- content_for :publish do
.new_aspect= link_to("add a new aspect", "#add_aspect_pane", :id => "add_aspect_button", :title => "Add a new relation")
- for aspect in @aspects
%li.aspect
%h1{:contenteditable => true}= aspect.name
%ul{:id => aspect.id}
-if aspect.people.size < 1
%li.grey Drag to add people
%ul#aspect_list
- for aspect in @aspects
%li.aspect
%h1{:contenteditable => true}= aspect.name
-else
-for person in aspect.people
%ul{:id => aspect.id}
%li.person{:id => person.id, :from_aspect_id => aspect.id}
= person_image_tag(person)
.name
= person.real_name
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane_#{aspect.id}", :class => 'add_request_button'
.yo{:style => 'display:none'}
%div{:id => "add_request_pane_#{aspect.id}"}
= render "requests/new_request", :aspect => aspect
-if aspect.people.size < 1
%li.grey Drag to add people
-else
-for person in aspect.people
%li.person{:id => person.id, :from_aspect_id => aspect.id}
= person_image_tag(person)
.name
= person.real_name
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane_#{aspect.id}", :class => 'add_request_button'
.yo{:style => 'display:none'}
%div{:id => "add_request_pane_#{aspect.id}"}
= render "requests/new_request", :aspect => aspect
%p
%br

View file

@ -23,10 +23,6 @@
%li{:id => aspect.id, :class => ("selected" if current_aspect?(aspect))}
= link_for_aspect aspect
%li.new_aspect= link_to("+", "#add_aspect_pane", :id => "add_aspect_button", :title => "Add a new aspect")
#aspect_manage_button
%ul{ :style => "position:absolute;right:0;bottom:0;"}
%li{:class => ("selected" if @aspect == :all)}
= link_to "All Aspects", root_url