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? = image_tag(request.person.profile.image_url(:thumb_small)) unless request.person.profile.image_url.nil?
.name .name
= request.person.real_name = request.person.real_name
%h1 %h1
Ignore/Remove Ignore/Remove
%li.remove %li.remove
%ul %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") .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 %ul#aspect_list
%li.grey Drag to add people - for aspect in @aspects
%li.aspect
%h1{:contenteditable => true}= aspect.name
-else %ul{:id => aspect.id}
-for person in aspect.people
%li.person{:id => person.id, :from_aspect_id => aspect.id} -if aspect.people.size < 1
= person_image_tag(person) %li.grey Drag to add people
.name
= person.real_name -else
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane_#{aspect.id}", :class => 'add_request_button' -for person in aspect.people
.yo{:style => 'display:none'}
%div{:id => "add_request_pane_#{aspect.id}"} %li.person{:id => person.id, :from_aspect_id => aspect.id}
= render "requests/new_request", :aspect => aspect = 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 %p
%br %br

View file

@ -23,10 +23,6 @@
%li{:id => aspect.id, :class => ("selected" if current_aspect?(aspect))} %li{:id => aspect.id, :class => ("selected" if current_aspect?(aspect))}
= link_for_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;"} %ul{ :style => "position:absolute;right:0;bottom:0;"}
%li{:class => ("selected" if @aspect == :all)} %li{:class => ("selected" if @aspect == :all)}
= link_to "All Aspects", root_url = link_to "All Aspects", root_url