Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
36a5fe6b31
5 changed files with 31 additions and 24 deletions
|
|
@ -16,6 +16,10 @@
|
||||||
- for friend in @friends
|
- for friend in @friends
|
||||||
= person_image_link(friend)
|
= person_image_link(friend)
|
||||||
|
|
||||||
|
%h3
|
||||||
|
= link_to "#{@aspect} Albums", albums_path(:aspect => @aspect)
|
||||||
|
|
||||||
|
|
||||||
.span-19.appends-1.last
|
.span-19.appends-1.last
|
||||||
#thumbnails
|
#thumbnails
|
||||||
- for photo in @album_photos
|
- for photo in @album_photos
|
||||||
|
|
@ -23,10 +27,11 @@
|
||||||
= link_to (image_tag photo.url(:thumb_medium)), object_path(photo)
|
= link_to (image_tag photo.url(:thumb_medium)), object_path(photo)
|
||||||
|
|
||||||
.span-5.last
|
.span-5.last
|
||||||
%h3
|
%h2
|
||||||
= @album.name
|
= @album.name
|
||||||
|
|
||||||
="#{t('.updated')} #{how_long_ago(@album)}"
|
="#{t('.updated')} #{how_long_ago(@album)}"
|
||||||
= link_to "#{@aspect} Albums", albums_path(:aspect => @aspect)
|
|
||||||
-if current_user.owns? @album
|
-if current_user.owns? @album
|
||||||
=render 'photos/new_photo'
|
=render 'photos/new_photo'
|
||||||
= link_to t('.edit_album'), edit_album_path(@album), :class => 'button'
|
= link_to t('.edit_album'), edit_album_path(@album), :class => 'button'
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,9 @@
|
||||||
- for friend in @friends
|
- for friend in @friends
|
||||||
= person_image_link(friend)
|
= person_image_link(friend)
|
||||||
|
|
||||||
|
%h3
|
||||||
|
= link_to @photo.album.name, @photo.album
|
||||||
|
|
||||||
.span-14.append-1.last
|
.span-14.append-1.last
|
||||||
%div{:data=>{:guid=>@photo.id}}
|
%div{:data=>{:guid=>@photo.id}}
|
||||||
#show_photo
|
#show_photo
|
||||||
|
|
@ -81,14 +84,6 @@
|
||||||
.description
|
.description
|
||||||
= @photo.caption
|
= @photo.caption
|
||||||
|
|
||||||
%h3
|
|
||||||
= link_to @photo.album.name, @photo.album
|
|
||||||
= @photo.image
|
|
||||||
|
|
||||||
|
|
||||||
-if current_user.owns? @album
|
|
||||||
= link_to t('.edit_photo'), edit_photo_path(@photo), :class => "button"
|
|
||||||
|
|
||||||
-if current_user.owns? @photo
|
-if current_user.owns? @photo
|
||||||
%div{:class => 'clear'}
|
%div{:class => 'clear'}
|
||||||
-if !@photo.caption or @photo.caption == ""
|
-if !@photo.caption or @photo.caption == ""
|
||||||
|
|
|
||||||
|
|
@ -29,19 +29,6 @@ $(".show_post_comments").live('click', function(event) {
|
||||||
$(this).toggleClass( "visible" );
|
$(this).toggleClass( "visible" );
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".comment_box").toggle(function(evt){
|
|
||||||
var $this = $(this);
|
|
||||||
$this.attr("rows", 2);
|
|
||||||
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeIn(200);
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".comment_box").live('blur', function(evt){
|
|
||||||
var $this = $(this);
|
|
||||||
if( $this.val() == '' ) {
|
|
||||||
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeOut(0);
|
|
||||||
$this.attr("rows", 1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".comment_submit").live('click', function(evt){
|
$(".comment_submit").live('click', function(evt){
|
||||||
$(this).closest("form").children("p .comment_box").attr("rows", 1);
|
$(this).closest("form").children("p .comment_box").attr("rows", 1);
|
||||||
|
|
|
||||||
|
|
@ -121,3 +121,17 @@ $(".make_profile_photo").live("click", function(){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".comment_box").live("focus",function(evt){
|
||||||
|
var $this = $(this);
|
||||||
|
$this.attr("rows", 2);
|
||||||
|
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeIn(200);
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".comment_box").live('blur', function(evt){
|
||||||
|
var $this = $(this);
|
||||||
|
if( $this.val() == '' ) {
|
||||||
|
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeOut(0);
|
||||||
|
$this.attr("rows", 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -548,7 +548,11 @@ li.message .from .right
|
||||||
:max-width 100%
|
:max-width 100%
|
||||||
:-webkit-box-shadow 0 2px 4px #333
|
:-webkit-box-shadow 0 2px 4px #333
|
||||||
:border 10px solid #fff
|
:border 10px solid #fff
|
||||||
:bottom 50px solid #fff
|
:bottom 80px solid #fff
|
||||||
|
|
||||||
|
:-webkit-border-radius 3px
|
||||||
|
:-moz-border-radius 3px
|
||||||
|
:border-radius 3px
|
||||||
|
|
||||||
.caption
|
.caption
|
||||||
:margin
|
:margin
|
||||||
|
|
@ -1013,6 +1017,7 @@ ul#settings_nav
|
||||||
img
|
img
|
||||||
:width 20px
|
:width 20px
|
||||||
:height 20px
|
:height 20px
|
||||||
|
:margin-right -4px
|
||||||
|
|
||||||
#thumbnails
|
#thumbnails
|
||||||
:line-height 14px
|
:line-height 14px
|
||||||
|
|
@ -1131,3 +1136,4 @@ header
|
||||||
&:hover
|
&:hover
|
||||||
.controls
|
.controls
|
||||||
:display inline
|
:display inline
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue