diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e6fadfef38b12b29b8fe46537bdb1b655b030d27..1b52892f33532aae9c5076b6beb1fce77c157632 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -50,7 +50,7 @@ module ApplicationHelper def person_image_tag(person) image_location = person.profile.image_url - image_location ||= "/images/user/default.jpg" + image_location ||= "/images/user/default.png" image_tag image_location, :class => "avatar", :alt => person.real_name, :title => person.real_name end diff --git a/app/views/albums/index.html.haml b/app/views/albums/index.html.haml index b6fd490d640b4ec6ba9c2a36c48f1ca32efe671d..81455b85b93ab919a57db57f9fb03dce1edb37fc 100644 --- a/app/views/albums/index.html.haml +++ b/app/views/albums/index.html.haml @@ -8,20 +8,23 @@ $("#add_album_button").fancybox(); }); -- content_for :left_pane do +.span-4.append-1.last = render "shared/aspect_friends" -%h3 Albums -= link_to t('.new_album'), '#new_album_pane', {:class => "button", :id => "add_album_button"} +.span-15.last + %h3 + = @aspect + Albums + = link_to t('.new_album'), '#new_album_pane', {:class => "button", :id => "add_album_button"} -.fancybox_content - #new_album_pane - = render "albums/new_album", :aspect => params[:aspect] + .fancybox_content + #new_album_pane + = render "albums/new_album", :aspect => params[:aspect] -%div - - for album in @albums - = render "album", :post => album + %div + - for album in @albums + = render "album", :post => album -#pagination - = will_paginate @albums + #pagination + = will_paginate @albums diff --git a/app/views/albums/show.html.haml b/app/views/albums/show.html.haml index f26a514f32c34c67259e0de49226e13575e5dd99..866a266e6591ae301c868152c47731accd87beac 100644 --- a/app/views/albums/show.html.haml +++ b/app/views/albums/show.html.haml @@ -9,29 +9,27 @@ }); }); -= content_for :page_title do - = link_to "◂ #{t('.albums')}", albums_path(:aspect => @aspect) - -- content_for :left_pane do +.span-4.append-1.last = render "shared/aspect_friends" -%h3 - = @album.name -="#{t('.updated')} #{how_long_ago(@album)}" --if current_user.owns? @album - =render 'photos/new_photo' - = link_to t('.edit_album'), edit_album_path(@album), :class => 'button' +.span-19.last + %h3 + = link_to "#{@aspect} Albums", albums_path(:aspect => @aspect) + + = @album.name + ="#{t('.updated')} #{how_long_ago(@album)}" + .right + -if current_user.owns? @album + =render 'photos/new_photo' + = link_to t('.edit_album'), edit_album_path(@album), :class => 'button' -.album_id{:id => @album.id, :style => "display:hidden;"} + .album_id{:id => @album.id, :style => "display:hidden;"} --unless current_user.owns? @album - %h4= "#{t('.by')} #{@album.person.real_name}" + -unless current_user.owns? @album + %h4= "#{t('.by')} #{@album.person.real_name}" -#thumbnails - - for photo in @album_photos - .image_thumb - = link_to (image_tag photo.url(:thumb_medium)), object_path(photo) + #thumbnails + - for photo in @album_photos + .image_thumb + = link_to (image_tag photo.url(:thumb_medium)), object_path(photo) -#content_bottom - .back - = link_to "⇧ #{t('.albums')}", albums_path(:aspect => @aspect) diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 8b651bf9a713f95631f6f5be6264a11dfb3b3eca..e61aa4d42e5da806d2b61a7aeb113e0b10d2812a 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -2,19 +2,16 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. -- content_for :left_pane do +.span-4.append-1.last = render "shared/aspect_friends" -- content_for :publish do - = render "shared/publisher", :aspect_ids => :all, :broadcast => true +.span-15.last + = render 'aspects/empty_messages' + = render "shared/publisher" + %ul#stream + - for post in @posts + = render type_partial(post), :post => post unless post.class == Album -= render 'aspects/empty_messages' - -= render "shared/publisher" -%ul#stream - - for post in @posts - = render type_partial(post), :post => post unless post.class == Album - -#pagination - = will_paginate @posts + #pagination + = will_paginate @posts diff --git a/app/views/aspects/manage.html.haml b/app/views/aspects/manage.html.haml index dba34ad248aded40d0af6b1caedc24d05662f178..6c0e0150c00d2e7c7c49c4b93a78ea26cbbccfe5 100644 --- a/app/views/aspects/manage.html.haml +++ b/app/views/aspects/manage.html.haml @@ -6,7 +6,11 @@ = javascript_include_tag 'jquery-ui-1.8.4.custom.min.js' = javascript_include_tag 'aspect-edit.js' -- content_for :left_pane do +%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')) + +.span-4.append-1.last %h3=t('.requests') .requests @@ -27,36 +31,34 @@ = render 'shared/invitations', :invites => @invites -%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')) - -%ul#aspect_list - - for aspect in @aspects - %li.aspect +.span-19.last + %ul#aspect_list + - for aspect in @aspects + %li.aspect - .aspect_name - %span.edit_name_field - %h3{:contenteditable => true}= aspect.name - %span.tip click to edit + .aspect_name + %span.edit_name_field + %h3{:contenteditable => true}= aspect.name + %span.tip click to edit - %ul.tools - %li= link_to t('.add_a_new_friend'), "#add_request_pane_#{aspect.id}", :class => 'add_request_button' - %li!= remove_link(aspect) + %ul.tools + %li= link_to t('.add_a_new_friend'), "#add_request_pane_#{aspect.id}", :class => 'add_request_button' + %li!= remove_link(aspect) - %ul.dropzone{:id => aspect.id} + %ul.dropzone{:id => aspect.id} - -if aspect.people.size < 1 - %li.grey Drag to add people + -if aspect.people.size < 1 + %li.grey Drag to add people - -else - -for person in aspect.people + -else + -for person in aspect.people - %li.person{:id => person.id, :from_aspect_id => aspect.id} - = person_image_tag(person) - .name - = link_to person.real_name, person + %li.person{:id => person.id, :from_aspect_id => aspect.id} + = person_image_tag(person) + .name + = link_to person.real_name, person - .fancybox_content - %div{:id => "add_request_pane_#{aspect.id}"} - = render "requests/new_request", :aspect => aspect + .fancybox_content + %div{:id => "add_request_pane_#{aspect.id}"} + = render "requests/new_request", :aspect => aspect diff --git a/app/views/aspects/show.html.haml b/app/views/aspects/show.html.haml index ebe66cf418f24a380b2afce9284671cb0714de8b..e61aa4d42e5da806d2b61a7aeb113e0b10d2812a 100644 --- a/app/views/aspects/show.html.haml +++ b/app/views/aspects/show.html.haml @@ -2,16 +2,16 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. -- content_for :left_pane do +.span-4.append-1.last = render "shared/aspect_friends" -= render 'aspects/empty_messages' +.span-15.last + = render 'aspects/empty_messages' + = render "shared/publisher" + %ul#stream + - for post in @posts + = render type_partial(post), :post => post unless post.class == Album -= render "shared/publisher" -%ul#stream - - for post in @posts - = render type_partial(post), :post => post unless post.class == Album - -#pagination - = will_paginate @posts + #pagination + = will_paginate @posts diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 7bf4c106fa654f0a49f53362997b668d6e43c322..0defb3463229645d036a85c9713a00d045e6eb54 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -59,10 +59,7 @@ = render "shared/aspect_nav" .container - .span-4.append-1.last - = yield :left_pane - - .span-15.last + .span-24.last = yield .span-19.prepend-5.last diff --git a/app/views/people/index.html.haml b/app/views/people/index.html.haml index 4ad7a93af1e087f38f872f15a5dcaa61f0d30a00..e2d4e265659b36c5636c8ba6157adcbd434f3fa4 100644 --- a/app/views/people/index.html.haml +++ b/app/views/people/index.html.haml @@ -2,23 +2,13 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. -- content_for :publish do - %h1 - Search +.span-15.prepend-5.last + %h2 + search results for + %u= params[:q] - =form_tag '/people', :method => "get" do - = text_field_tag :q, params[:q] - = submit_tag "search" + %ul#stream + - for person in @people + = render 'people/person', :person => person -- content_for :left_pane do - \. - -%h1 - search results for - %u= params[:q] - -%ul#stream - - for person in @people - = render 'people/person', :person => person - -= will_paginate @people + = will_paginate @people diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index 1038d7d94f9c63699dde9822008e04683e786905..83e7cf50dd0d4e463065a10e03a12070742edfed 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -5,7 +5,8 @@ - content_for :page_title do profile -- content_for :left_pane do +.span-4.append-1.last + %h2= @person.real_name #profile .profile_photo = person_image_link(@person) @@ -26,12 +27,12 @@ - if @person != current_user.person && current_user.friends.include?(@person) = link_to t('.remove_friend'), @person, :confirm => t('.are_you_sure'), :method => :delete, :class => "button" -.span-20.last - .span-19.last - - if @posts - %ul#stream - - for post in @posts - = render type_partial(post), :post => post unless post.class == Album - = will_paginate @posts - - else - %h3=t('no posts to display!') +.span-15.last + - if @posts.count > 0 + %ul#stream + - for post in @posts + = render type_partial(post), :post => post unless post.class == Album + = will_paginate @posts + - else + %h3=t('no posts to display!') + diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index 8d0e664719972f0a7310c3082fc23f48deadd976..8fe22cc9bc0770bc5c45bb75f57958d6bbdd936f 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -54,14 +54,12 @@ });//end document ready -= content_for :page_title do - = link_to "◂ #{@photo.album.name}", @photo.album - -- content_for :left_pane do +.span-4.append-1.last = render "shared/aspect_friends" -- content_for :publish do - %h1 +.span-19.last + %h3 + = link_to @photo.album.name, @photo.album = @photo.image = link_to "<< #{t('.prev')}", url_to_prev(@photo, @album), :rel => 'prefetch' @@ -70,39 +68,42 @@ | = link_to "#{t('.next')} >>", url_to_next(@photo, @album), :rel => 'prefetch' - .right - -if current_user.owns? @album - = link_to t('.edit_photo'), edit_photo_path(@photo), :class => "button" + -if current_user.owns? @album + = link_to t('.edit_photo'), edit_photo_path(@photo), :class => "button" + + %br + %br + + %div{:id => @photo.id} + #show_photo + = linked_scaled_photo @photo, @album + .caption + -if current_user.owns? @photo + -if @photo.caption and @photo.caption != "" + = link_to 'Edit','javascript:void(0)', :id => "edit-desc", :class => "edit-desc" + .description + = @photo.caption -%div{:id => @photo.id} - #show_photo - = linked_scaled_photo @photo, @album - .caption -if current_user.owns? @photo - -if @photo.caption and @photo.caption != "" - = link_to 'Edit','javascript:void(0)', :id => "edit-desc", :class => "edit-desc" - .description - = @photo.caption - - -if current_user.owns? @photo - %div{:class => 'clear'} - -if !@photo.caption or @photo.caption == "" - = link_to 'Add a description','javascript:void(0)', :id => "add-description", :class => "edit-desc" - - = form_for @photo do |p| - = p.text_field :caption, :value => @photo.caption - = p.submit - %div{:class => 'clear'} - - #content_bottom - .back - = link_to "⇧ #{@album.name}", album_path(@album) - - -if current_user.owns? @album - .right - = link_to t('.delete_photo'), @photo, :confirm => t('.are_you_sure'), :method => :delete, :class => 'button' - - %h4{:class => "show_post_comments"} - = "#{t('.comments')} (#{@photo.comments.count})" - = render "comments/comments", :post => @photo + %div{:class => 'clear'} + -if !@photo.caption or @photo.caption == "" + = link_to 'Add a description','javascript:void(0)', :id => "add-description", :class => "edit-desc" + + = form_for @photo do |p| + = p.text_field :caption, :value => @photo.caption + = p.submit + %div{:class => 'clear'} + + %h4{:class => "show_post_comments"} + = "#{t('.comments')} (#{@photo.comments.count})" + = render "comments/comments", :post => @photo + + #content_bottom + .back + = link_to "⇧ #{@album.name}", album_path(@album) + + -if current_user.owns? @album + .right + = link_to t('.delete_photo'), @photo, :confirm => t('.are_you_sure'), :method => :delete, :class => 'button' + diff --git a/app/views/shared/_aspect_friends.haml b/app/views/shared/_aspect_friends.haml index 876da05e79b64aca1e6f6b94f0b5d71f4b938110..61deef919e44f6208ea36d4df9d563dbaa8ea3fd 100644 --- a/app/views/shared/_aspect_friends.haml +++ b/app/views/shared/_aspect_friends.haml @@ -28,7 +28,11 @@ %br %br %ul - %li= link_to 'stream', aspect_path(@aspect) + - if @aspect == :all + %li= link_to 'stream', root_path + - else + %li= link_to 'stream', aspect_path(@aspect) + %li= link_to t('.photos'), albums_path(:aspect => @aspect) %br diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 397035a80b622c164e8441f1d741103d248e5670..984be9a53dbbcb07ba9d8ceb8a50e3f31e93573c 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -3,7 +3,7 @@ -# the COPYRIGHT file. :javascript - $("#settings_nav li > a").click( function() { + $("#settings_nav li > a").live("click", function() { var target = "#"+$(this).attr('class'); if( !$(target).is(":visible") ) { $(".settings_pane").fadeOut(200, function() { @@ -12,22 +12,20 @@ } }); - -- content_for :publish do - %h2="#{t('.editing_profile')}" - -- content_for :left_pane do +%h2 + Settings %ul#settings_nav %li=link_to 'Profile', '#', :class => 'profile' %li=link_to 'Account', '#', :class => 'account' %li=link_to 'Services', '#', :class => 'services' -#profile.settings_pane{:style=>"display:block;"} - = render 'users/profile' +.span-19.prepend-5.last + #profile.settings_pane{:style=>"display:block;"} + = render 'users/profile' -#account.settings_pane - = render 'users/account' + #account.settings_pane + = render 'users/account' -#services.settings_pane - = render 'users/services' + #services.settings_pane + = render 'users/services' diff --git a/public/images/user/default.png b/public/images/user/default.png new file mode 100644 index 0000000000000000000000000000000000000000..cd0b9059f97721141d8e402b35810bc84992e30a Binary files /dev/null and b/public/images/user/default.png differ diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 6f5efa4addf9525463fb6251e681305c5c42a235..8e330790b9f8763e91b2721692658124b9b7dc4f 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -941,22 +941,20 @@ h1.big_text :opacity 0.9 ul#settings_nav + :display inline :list :style none :padding 0 - :marign 0 - :font - :size larger + :size large + :margin + :left 5.68em > li + :display inline + :margin + :right 1em a - :font - :size smaller - :display block - :height 100% - :border - :bottom 1px solid #eee :padding 2px @@ -1036,3 +1034,7 @@ header .edit_photo :display none + +#section_header + :background + :color #aaa