Merge branch 'master' of github.com:diaspora/diaspora_rails

This commit is contained in:
maxwell 2010-07-28 16:50:48 -07:00
commit e14e391a22
8 changed files with 54 additions and 16 deletions

View file

@ -1,4 +1,4 @@
%li.album{:id => post.id, :class => ("mine" if mine?(post))} .album{:id => post.id, :class => ("mine" if mine?(post))}
%div.name %div.name
= link_to post.name, object_path(post) = link_to post.name, object_path(post)

View file

@ -13,9 +13,10 @@
%li.selected= friends_albums_link %li.selected= friends_albums_link
%li= your_albums_link %li= your_albums_link
%ul#stream %div
- for album in @albums - for album in @albums
= render "album", :post => album = render "album", :post => album
#pagination #pagination
= will_paginate @albums = will_paginate @albums

View file

@ -18,6 +18,7 @@
%h4= "by #{@album.person.real_name}" %h4= "by #{@album.person.real_name}"
- for photo in @album_photos - for photo in @album_photos
.image_thumb
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo) = link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
#content_bottom #content_bottom

View file

@ -107,4 +107,13 @@ $(document).ready(function(){
$("input[type='submit']").addClass("button"); $("input[type='submit']").addClass("button");
$(".image_thumb img").load( function() {
$(this).fadeIn("slow");
});
$(".image_cycle img").load( function() {
$(this).fadeIn("slow");
});
});//end document ready });//end document ready

View file

@ -333,9 +333,7 @@ ul#publisher_content_pickers li {
position: relative; position: relative;
height: 200px; height: 200px;
width: 300px; width: 300px;
display: inline-block; display: inline-block; }
margin-right: 2em;
margin-bottom: 2em; }
.album .name { .album .name {
position: absolute; position: absolute;
z-index: 600; z-index: 600;
@ -349,9 +347,7 @@ ul#publisher_content_pickers li {
.album .name .time a { .album .name .time a {
font-weight: normal; } font-weight: normal; }
.album div.image_cycle img { .album div.image_cycle img {
border-radius: 3px; display: none; }
-webkit-border-radius: 3px;
-moz-border-radius: 3px; }
.field_with_submit input[type='text'] { .field_with_submit input[type='text'] {
width: 82%; width: 82%;
@ -393,3 +389,17 @@ h1.big_text {
#next_prev_links { #next_prev_links {
text-align: center; } text-align: center; }
.image_thumb {
display: inline-block;
width: 100px;
min-width: 100px;
height: 100px;
min-height: 100px; }
.image_thumb img {
display: none; }
.image_thumb img:hover {
border-bottom: 2px solid #666666; }
.image_cycle img {
display: none; }

View file

@ -405,9 +405,6 @@ ul#publisher_content_pickers li
:height 200px :height 200px
:width 300px :width 300px
:display inline-block :display inline-block
:margin
:right 2em
:bottom 2em
.name .name
:position absolute :position absolute
@ -429,9 +426,7 @@ ul#publisher_content_pickers li
div.image_cycle div.image_cycle
img img
:border-radius 3px :display none
:-webkit-border-radius 3px
:-moz-border-radius 3px
.field_with_submit .field_with_submit
input[type='text'] input[type='text']
@ -486,3 +481,22 @@ h1.big_text
#next_prev_links #next_prev_links
:text-align center :text-align center
.image_thumb
:display inline-block
:width 100px
:min-width 100px
:height 100px
:min-height 100px
img
:display none
&:hover
:border
:bottom 2px solid #666
.image_cycle
img
:display none

View file

@ -14,6 +14,7 @@
:min-height 14px :min-height 14px
:background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#FAFAFA), to(#E0E0E0)) :background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#FAFAFA), to(#E0E0E0))
:background -moz-linear-gradient(top, #FAFAFA, #E0E0E0)
:border 1px solid #ccc :border 1px solid #ccc
:bottom 1px solid #666 :bottom 1px solid #666
@ -75,6 +76,8 @@ ul.button_set
.button .selected, .button_set .selected .button .selected, .button_set .selected
:background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#E0E0E0), to(#FAFAFA)) :background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#E0E0E0), to(#FAFAFA))
:background -moz-linear-gradient(top, #e0e0e0, #fafafa)
:border :border
:top 1px solid #aaa :top 1px solid #aaa

View file

@ -8,6 +8,7 @@
text-shadow: 0 1px 0 white; text-shadow: 0 1px 0 white;
min-height: 14px; min-height: 14px;
background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#fafafa), to(#e0e0e0)); background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#fafafa), to(#e0e0e0));
background: -moz-linear-gradient(top, #fafafa, #e0e0e0);
border: 1px solid #cccccc; border: 1px solid #cccccc;
border-bottom: 1px solid #666666; border-bottom: 1px solid #666666;
border-left: 1px solid #999999; border-left: 1px solid #999999;
@ -51,7 +52,6 @@ ul.button_set {
.button .selected, .button_set .selected { .button .selected, .button_set .selected {
background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#e0e0e0), to(#fafafa)); background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#e0e0e0), to(#fafafa));
background: -moz-linear-gradient(top, #e0e0e0, #fafafa); background: -moz-linear-gradient(top, #e0e0e0, #fafafa);
background-image: -moz-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet);
border-top: 1px solid #aaaaaa; } border-top: 1px solid #aaaaaa; }
.right { .right {