more touchups

This commit is contained in:
danielvincent 2010-11-18 22:26:27 -08:00
parent 2b54d9a0c5
commit 52cde14221
9 changed files with 62 additions and 37 deletions

View file

@ -13,8 +13,6 @@
= link_to "Edit Profile", edit_person_path(current_user.person) = link_to "Edit Profile", edit_person_path(current_user.person)
| |
= link_to "Edit Account", edit_user_path(current_user) = link_to "Edit Account", edit_user_path(current_user)
|
= link_to "Logout", destroy_user_session_path
.span-15.last .span-15.last
= render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count = render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count

View file

@ -9,9 +9,9 @@
= action_link(person, is_contact) = action_link(person, is_contact)
%ul %ul
- if @posts.first /- if @posts.first
%li /%li
%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first)) /%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
- if is_contact - if is_contact
%li %li
%ul#aspects_for_person %ul#aspects_for_person
@ -23,16 +23,17 @@
-if is_contact || person == current_user.person -if is_contact || person == current_user.person
%ul#profile_information %ul#profile_information
%li %li
%b #{t('.bio')} %h3 #{t('.bio')}
%br
= person.profile.bio = person.profile.bio
%li %li
%b #{t('.gender')} .span-4.last
%br %h3 #{t('.gender')}
= person.profile.gender = person.profile.gender
%li .span-4.last
%b #{t('.born')} %h3 #{t('.born')}
%br
= "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday = "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday
%br
%br
%br
%br
%b.small= person.diaspora_handle %b.small= person.diaspora_handle

View file

@ -5,6 +5,7 @@
.span-24.last .span-24.last
= render 'shared/author_info', :person => @person, :profile => true = render 'shared/author_info', :person => @person, :profile => true
.span-8.append-1.last .span-8.append-1.last
= render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact} = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact}
@ -19,6 +20,8 @@
= will_paginate @posts = will_paginate @posts
- else - else
%ul#stream
%li
%h3= t('.no_posts') %h3= t('.no_posts')
- else - else

View file

@ -11,7 +11,7 @@
}); });
}); });
.span-20.last .span-18.last
#thumbnails #thumbnails
- for photo in photos - for photo in photos
.image_thumb .image_thumb

View file

@ -56,6 +56,7 @@
= link_to t('.delete_photo'), @photo, :confirm => t('are_you_sure'), :method => :delete, :class => 'button' = link_to t('.delete_photo'), @photo, :confirm => t('are_you_sure'), :method => :delete, :class => 'button'
.span-9.last .span-9.last
%h4{:style=>"margin-bottom:5px;"} Comments
%div{id => 'photo_stream', :class => 'stream show'} %div{id => 'photo_stream', :class => 'stream show'}
%li.message{:data=>{:guid=>@photo.id}} %li.message{:data=>{:guid=>@photo.id}}
= render "comments/comments", :post => @photo = render "comments/comments", :post => @photo

View file

@ -2,13 +2,13 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
- if @request_count > 0 - if (aspect == :all) && @request_count > 0
#left_pane{:class => "everyone"} #new_request_pane{:class => "everyone"}
%h4 %h1.new_request
= "#{@request_count} new requests!" - if @request_count > 1
= link_to "#{@request_count} new requests!", aspects_manage_path
%br - else
%br = link_to "#{@request_count} new request!", aspects_manage_path
#left_pane{:class => ("everyone" if aspect == :all)} #left_pane{:class => ("everyone" if aspect == :all)}
%h2{:style=>"position:relative;"} %h2{:style=>"position:relative;"}

View file

@ -1,4 +1,4 @@
#author_info #author_info{:class=>("profile" if defined?(profile))}
= person_image_link(person) unless defined?(profile) = person_image_link(person) unless defined?(profile)
.from .from
%h2 %h2
@ -12,7 +12,6 @@
- else - else
- 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
.right{:style=>"margin-right:315px;top:10px;"}
#person_nav_links #person_nav_links
= link_to t('.view_profile'), person_path(person) = link_to t('.view_profile'), person_path(person)
= link_to t('_photos'), person_photos_path(person) = link_to t('_photos'), person_photos_path(person)

View file

@ -46,7 +46,6 @@
- for service in current_user.services - for service in current_user.services
= image_tag("social_media_logos/#{service.provider}-16x16.png") = image_tag("social_media_logos/#{service.provider}-16x16.png")
= link_to '(?)', "#question_mark_pane", :class => 'question_mark', :style=>"display:none;" = link_to '(?)', "#question_mark_pane", :class => 'question_mark', :style=>"display:none;"
.fancybox_content .fancybox_content
@ -54,7 +53,7 @@
= render 'shared/public_explain' = render 'shared/public_explain'
#publisher_photo_upload /#publisher_photo_upload
= t('or') /= t('or')
= render 'photos/new_photo', :aspect_id => (aspect == :all ? aspect : aspect.id) /= render 'photos/new_photo', :aspect_id => (aspect == :all ? aspect : aspect.id)

View file

@ -192,6 +192,7 @@ header
> li > li
:list-style none :list-style none
:padding 12px :padding 12px
:min-height 50px
:border :border
:bottom 1px solid #eee :bottom 1px solid #eee
@ -275,6 +276,10 @@ header
:padding 12px :padding 12px
:top 0 :top 0
&.profile
.from
:padding 0
h2 h2
:display inline :display inline
:margin :margin
@ -571,6 +576,9 @@ ul.comments
:width 300px :width 300px
#profile #profile
h3
:margin
:bottom 0
ul ul
:list-style-type none :list-style-type none
:margin 0 :margin 0
@ -581,7 +589,7 @@ ul.comments
:top 1em :top 1em
> li > li
:margin :margin
:bottom 1em :bottom 2em
.stream, #profile, .stream, #profile,
@ -633,11 +641,12 @@ li.message .from .right
:margin-right 1em :margin-right 1em
#show_photo #show_photo
:display inline-block
:background :background
:color #fff :color #fff
:padding 10px :padding 10px
:bottom 20px :bottom 30px
:-webkit-box-shadow 0 2px 4px #333 :-webkit-box-shadow 0 2px 4px #333
:-moz-box-shadow 0 2px 4px #333 :-moz-box-shadow 0 2px 4px #333
@ -660,7 +669,7 @@ li.message .from .right
:size 16px :size 16px
:font :font
:family 'marker felt', 'comic sans ms', 'comic sans', sans-serif :family 'marker felt', 'comic sans ms', 'comic sans', sans-serif
:color #555 :color #333
#debug_info #debug_info
:margin-top 20px :margin-top 20px
@ -1813,3 +1822,18 @@ h3,h4
h4 h4
:margin :margin
:bottom 0 :bottom 0
#new_request_pane
:background
:color red
:border-radius 4px
:-webkit-box-shadow 0 1px 2px #666
:-moz-box-shadow 0 1px 2px #666
h1
a
:color #fff
:font
:weight bold