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
flash[:error] = I18n.t('aspects.create.failure')
end
respond_with :location => aspects_manage_path
respond_with @aspect
end
def new

View file

@ -6,9 +6,11 @@
= javascript_include_tag 'jquery-ui-1.8.4.custom.min.js'
= javascript_include_tag 'aspect-edit.js'
%h2
#section_header
%h2
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
%h3=t('.requests')

View file

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

View file

@ -9,12 +9,14 @@
- for aspect in @aspects
%li{:class => ("selected" if current_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;"}
%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')
.yo{ :style => "display:none;"}
.fancybox_content
#add_aspect_pane
= render "aspects/new_aspect"

View file

@ -19,7 +19,7 @@
%li= link_to aspect.name, aspect
- if current_user.owns?(post)
.destroy_link
.right
= 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"

View file

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

View file

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

View file

@ -26,7 +26,7 @@ $(document).ready(function(){
});
//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 });
$(".invite_user_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
:list-style none
:padding 12px 0
:right 12px
:border
:bottom 1px solid #eee
@ -195,11 +196,8 @@ ul#stream
:color #fafafa
:border
:bottom 1px solid #ddd
.destroy_link
:display inline
.right
:top 0
:display inline
.avatar
:border-radius 5px
@ -216,9 +214,6 @@ li.message
:margin
:right 15px
.delete:hover
:background #eee
.content
:margin
:top -4px
@ -292,14 +287,14 @@ li.message
:color #005D9C
.destroy_link .reshare_pane .reshare_button a.inactive
.right .reshare_pane .reshare_button a.inactive
:color #ccc
&:hover
:text
:decoration none
:cursor default
.destroy_link .reshare_pane
.right .reshare_pane
:margin
:left 5px
:right 5px
@ -495,12 +490,13 @@ ul.comment_set
a
:padding 3px
li.message .from .destroy_link
li.message .from .right
:display none
:position absolute
:right 0
:right 12px
:font
:size 12px
:color #999
a
:color #999
:font
@ -1036,5 +1032,15 @@ header
:display none
#section_header
:background
:color #aaa
:width 100%
:border
:bottom 2px solid #777
:position relative
:margin
:bottom 2em
:padding
:bottom 1em
h2
:display inline