padding on stream fix. added add aspect button in aspect nav.
This commit is contained in:
parent
3866b83dab
commit
ea00d35f1f
10 changed files with 52 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
= javascript_include_tag 'jquery-ui-1.8.4.custom.min.js'
|
||||
= javascript_include_tag 'aspect-edit.js'
|
||||
|
||||
%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'))
|
||||
#section_header
|
||||
%h2
|
||||
Manage aspects
|
||||
.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')
|
||||
|
|
|
|||
|
|
@ -10,18 +10,19 @@
|
|||
%span.from
|
||||
= link_to person.real_name, person_path(person)
|
||||
|
||||
.right{:style=>"display:inline;"}
|
||||
- if person.id == current_user.person.id
|
||||
thats you!
|
||||
- elsif current_user.friends.include?(person)
|
||||
Already friends
|
||||
- elsif current_user.pending_requests.find_by_person_id(person.id)
|
||||
= link_to =t('.pending_request'), aspects_manage_path
|
||||
- else
|
||||
= form_for Request.new do |f|
|
||||
= 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
|
||||
|
||||
.right{ :style => "display:inline;top:0;" }
|
||||
- if person.id == current_user.person.id
|
||||
thats you!
|
||||
- elsif current_user.friends.include?(person)
|
||||
Already friends
|
||||
- elsif current_user.pending_requests.find_by_person_id(person.id)
|
||||
= link_to =t('.pending_request'), aspects_manage_path
|
||||
- else
|
||||
= form_for Request.new do |f|
|
||||
= f.select(:aspect_id, @aspects_dropdown_array)
|
||||
= f.hidden_field :destination_url, :value => person.diaspora_handle
|
||||
= f.submit t('.add_friend')
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,9 @@
|
|||
}
|
||||
});
|
||||
|
||||
%h2
|
||||
Settings
|
||||
#section_header
|
||||
%h2
|
||||
Settings
|
||||
%ul#settings_nav
|
||||
%li=link_to 'Profile', '#', :class => 'profile'
|
||||
%li=link_to 'Account', '#', :class => 'account'
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ ul#stream
|
|||
:min-height 50px
|
||||
:list-style none
|
||||
:padding 12px 0
|
||||
:right 12px
|
||||
:border
|
||||
:bottom 1px solid #eee
|
||||
|
||||
|
|
@ -195,12 +196,9 @@ ul#stream
|
|||
:color #fafafa
|
||||
:border
|
||||
:bottom 1px solid #ddd
|
||||
.destroy_link
|
||||
.right
|
||||
:display inline
|
||||
|
||||
.right
|
||||
:top 0
|
||||
|
||||
.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
|
||||
|
|
|
|||
Loading…
Reference in a new issue