padding on stream fix. added add aspect button in aspect nav.

This commit is contained in:
danielvincent 2010-10-19 12:10:22 -07:00
parent 3866b83dab
commit ea00d35f1f
10 changed files with 52 additions and 34 deletions

View file

@ -23,7 +23,7 @@ class AspectsController < ApplicationController
else else
flash[:error] = I18n.t('aspects.create.failure') flash[:error] = I18n.t('aspects.create.failure')
end end
respond_with :location => aspects_manage_path respond_with @aspect
end end
def new def new

View file

@ -6,9 +6,11 @@
= javascript_include_tag 'jquery-ui-1.8.4.custom.min.js' = javascript_include_tag 'jquery-ui-1.8.4.custom.min.js'
= javascript_include_tag 'aspect-edit.js' = javascript_include_tag 'aspect-edit.js'
%h2 #section_header
%h2
Manage aspects Manage aspects
= link_to(t('.add_a_new_aspect'), "#add_aspect_pane", :id => "add_aspect_button", :class => "new_aspect button", :title => t('.add_a_new_aspect')) .right
= link_to(t('.add_a_new_aspect'), "#add_aspect_pane", :class => "new_aspect add_aspect_button button", :title => t('.add_a_new_aspect'))
.span-4.append-1.last .span-4.append-1.last
%h3=t('.requests') %h3=t('.requests')

View file

@ -10,10 +10,7 @@
%span.from %span.from
= link_to person.real_name, person_path(person) = link_to person.real_name, person_path(person)
.info .right{:style=>"display:inline;"}
= person.diaspora_handle
.right{ :style => "display:inline;top:0;" }
- if person.id == current_user.person.id - if person.id == current_user.person.id
thats you! thats you!
- elsif current_user.friends.include?(person) - elsif current_user.friends.include?(person)
@ -25,3 +22,7 @@
= f.select(:aspect_id, @aspects_dropdown_array) = f.select(:aspect_id, @aspects_dropdown_array)
= f.hidden_field :destination_url, :value => person.diaspora_handle = f.hidden_field :destination_url, :value => person.diaspora_handle
= f.submit t('.add_friend') = f.submit t('.add_friend')
.info
= person.diaspora_handle

View file

@ -18,6 +18,10 @@
- for aspect in current_user.aspects_with_post( post.id ) - for aspect in current_user.aspects_with_post( post.id )
%li= link_to aspect.name, aspect %li= link_to aspect.name, aspect
- if current_user.owns?(post)
.right
= link_to t('.delete'), status_message_path(post), :confirm => t('.are_you_sure'), :method => :delete, :remote => true, :class => "delete"
=t('.posted_a_new_photo_to') =t('.posted_a_new_photo_to')
= link_to post.album.name, object_path(post.album) = link_to post.album.name, object_path(post.album)

View file

@ -9,12 +9,14 @@
- for aspect in @aspects - for aspect in @aspects
%li{:class => ("selected" if current_aspect?(aspect))} %li{:class => ("selected" if current_aspect?(aspect))}
= link_for_aspect aspect = link_for_aspect aspect
%li
= link_to '+', '#add_aspect_pane', :class => "add_aspect_button"
%ul{ :style => "position:absolute;right:0;bottom:0.01em;"} %ul{ :style => "position:absolute;right:0;bottom:0.01em;"}
%li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)} %li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)}
= link_to ( (@request_count == 0)? t('.manage') : "#{t('.manage')} (#{@request_count})"), {:controller => :aspects, :action => :manage}, :class => "edit_aspect_button", :class => new_request(@request_count), :title => t('.manage_your_aspects') = link_to ( (@request_count == 0)? t('.manage') : "#{t('.manage')} (#{@request_count})"), {:controller => :aspects, :action => :manage}, :class => "edit_aspect_button", :class => new_request(@request_count), :title => t('.manage_your_aspects')
.yo{ :style => "display:none;"} .fancybox_content
#add_aspect_pane #add_aspect_pane
= render "aspects/new_aspect" = render "aspects/new_aspect"

View file

@ -19,7 +19,7 @@
%li= link_to aspect.name, aspect %li= link_to aspect.name, aspect
- if current_user.owns?(post) - if current_user.owns?(post)
.destroy_link .right
= render "shared/reshare", :post => post, :current_user => current_user = render "shared/reshare", :post => post, :current_user => current_user
= link_to t('.delete'), status_message_path(post), :confirm => t('.are_you_sure'), :method => :delete, :remote => true, :class => "delete" = link_to t('.delete'), status_message_path(post), :confirm => t('.are_you_sure'), :method => :delete, :remote => true, :class => "delete"

View file

@ -12,7 +12,8 @@
} }
}); });
%h2 #section_header
%h2
Settings Settings
%ul#settings_nav %ul#settings_nav
%li=link_to 'Profile', '#', :class => 'profile' %li=link_to 'Profile', '#', :class => 'profile'

View file

@ -149,6 +149,8 @@ en:
photo: photo:
show_comments: "show comments" show_comments: "show comments"
posted_a_new_photo_to: "posted a new photo to" posted_a_new_photo_to: "posted a new photo to"
delete: "Delete"
are_you_sure: "Are you sure?"
new: new:
new_photo: "New Photo" new_photo: "New Photo"
back_to_list: "Back to List" back_to_list: "Back to List"

View file

@ -26,7 +26,7 @@ $(document).ready(function(){
}); });
//buttons////// //buttons//////
$("#add_aspect_button").fancybox({ 'titleShow' : false , 'hideOnOverlayClick' : false }); $(".add_aspect_button").fancybox({ 'titleShow' : false , 'hideOnOverlayClick' : false });
$("#add_request_button").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false }); $("#add_request_button").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false });
$(".invite_user_button").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false }); $(".invite_user_button").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false });
$(".add_request_button").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false }); $(".add_request_button").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false });

View file

@ -187,6 +187,7 @@ ul#stream
:min-height 50px :min-height 50px
:list-style none :list-style none
:padding 12px 0 :padding 12px 0
:right 12px
:border :border
:bottom 1px solid #eee :bottom 1px solid #eee
@ -195,11 +196,8 @@ ul#stream
:color #fafafa :color #fafafa
:border :border
:bottom 1px solid #ddd :bottom 1px solid #ddd
.destroy_link
:display inline
.right .right
:top 0 :display inline
.avatar .avatar
:border-radius 5px :border-radius 5px
@ -216,9 +214,6 @@ li.message
:margin :margin
:right 15px :right 15px
.delete:hover
:background #eee
.content .content
:margin :margin
:top -4px :top -4px
@ -292,14 +287,14 @@ li.message
:color #005D9C :color #005D9C
.destroy_link .reshare_pane .reshare_button a.inactive .right .reshare_pane .reshare_button a.inactive
:color #ccc :color #ccc
&:hover &:hover
:text :text
:decoration none :decoration none
:cursor default :cursor default
.destroy_link .reshare_pane .right .reshare_pane
:margin :margin
:left 5px :left 5px
:right 5px :right 5px
@ -495,12 +490,13 @@ ul.comment_set
a a
:padding 3px :padding 3px
li.message .from .destroy_link li.message .from .right
:display none :display none
:position absolute :position absolute
:right 0 :right 12px
:font :font
:size 12px :size 12px
:color #999
a a
:color #999 :color #999
:font :font
@ -1036,5 +1032,15 @@ header
:display none :display none
#section_header #section_header
:background :width 100%
:color #aaa :border
:bottom 2px solid #777
:position relative
:margin
:bottom 2em
:padding
:bottom 1em
h2
:display inline