minor visual tweaks
This commit is contained in:
parent
0782e0b199
commit
b49eaa1ceb
2 changed files with 23 additions and 26 deletions
|
|
@ -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
|
|
||||||
%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)
|
%ul#aspect_list
|
||||||
.name
|
- for aspect in @aspects
|
||||||
= person.real_name
|
%li.aspect
|
||||||
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane_#{aspect.id}", :class => 'add_request_button'
|
%h1{:contenteditable => true}= aspect.name
|
||||||
.yo{:style => 'display:none'}
|
|
||||||
%div{:id => "add_request_pane_#{aspect.id}"}
|
%ul{:id => 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
|
%p
|
||||||
%br
|
%br
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue