status message show is now a real show page. photo partial in stream shouldn't display a slideshow of album.
This commit is contained in:
parent
f8400389de
commit
d2945c83dc
4 changed files with 37 additions and 13 deletions
|
|
@ -62,5 +62,5 @@
|
||||||
.span-24.last
|
.span-24.last
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
.span-19.prepend-5.last
|
.span-24.last
|
||||||
= render "posts/debug"
|
= render "posts/debug"
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@
|
||||||
|
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
= render "albums/album", :post => post.album, :current_user => current_user
|
= link_to (image_tag post.url(:thumb_large)), object_path(post)
|
||||||
= link_to (image_tag post.url(:thumb_medium)), object_path(post)
|
|
||||||
|
|
||||||
.info
|
.info
|
||||||
%span.time= link_to(how_long_ago(post), photo_path(post))
|
%span.time= link_to(how_long_ago(post), photo_path(post))
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,22 @@
|
||||||
-# 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.
|
||||||
|
|
||||||
%h1
|
.span-14.append-1.last
|
||||||
= link_to @status_message.person.real_name, @status_message.person
|
#stream
|
||||||
= @status_message.message
|
%h1.show_text
|
||||||
|
= person_image_link(@status_message.person)
|
||||||
|
= link_to @status_message.person.real_name, @status_message.person
|
||||||
|
= make_links(@status_message.message)
|
||||||
|
|
||||||
%h4= "#{t('.comments')} (#{@status_message.comments.count})"
|
= "Posted #{how_long_ago(@status_message)} to"
|
||||||
|
- for aspect in current_user.aspects_with_post( @status_message.id )
|
||||||
|
= link_to aspect.name, aspect
|
||||||
|
|
||||||
= render "comments/comments", :post => @status_message
|
|
||||||
|
|
||||||
%p
|
|
||||||
- if current_user.owns? @status_message
|
- if current_user.owns? @status_message
|
||||||
= link_to t('.destroy'), @status_message, :confirm => t('are_you_sure?'), :method => :delete
|
%p
|
||||||
|
= link_to t('.destroy'), @status_message, :confirm => t('.are_you_sure'), :method => :delete
|
||||||
|
|
||||||
|
.span-9.last
|
||||||
|
#stream.show
|
||||||
|
%li.message{:id => @status_message.id}
|
||||||
|
= render "comments/comments", :post => @status_message
|
||||||
|
|
|
||||||
|
|
@ -179,14 +179,13 @@ header
|
||||||
:margin
|
:margin
|
||||||
:left 425px
|
:left 425px
|
||||||
|
|
||||||
ul#stream
|
#stream
|
||||||
:margin 0
|
:margin 0
|
||||||
:padding 0
|
:padding 0
|
||||||
> li
|
> li
|
||||||
:min-height 50px
|
:min-height 50px
|
||||||
:list-style none
|
:list-style none
|
||||||
:padding 12px 0
|
:padding 12px 0
|
||||||
:right 12px
|
|
||||||
:border
|
:border
|
||||||
:bottom 1px solid #eee
|
:bottom 1px solid #eee
|
||||||
|
|
||||||
|
|
@ -404,6 +403,20 @@ form
|
||||||
:margin
|
:margin
|
||||||
:right 1em
|
:right 1em
|
||||||
|
|
||||||
|
#stream.show
|
||||||
|
div.comments
|
||||||
|
:display block
|
||||||
|
ul.comment_set
|
||||||
|
:margin
|
||||||
|
:top 0
|
||||||
|
> li
|
||||||
|
:border none
|
||||||
|
:padding 0
|
||||||
|
&:hover
|
||||||
|
> li
|
||||||
|
:background none
|
||||||
|
:border none
|
||||||
|
|
||||||
|
|
||||||
#stream div.comments
|
#stream div.comments
|
||||||
:display none
|
:display none
|
||||||
|
|
@ -1066,3 +1079,7 @@ header
|
||||||
:font
|
:font
|
||||||
:size small
|
:size small
|
||||||
|
|
||||||
|
.show_text
|
||||||
|
img
|
||||||
|
:height 27px
|
||||||
|
:width 27px
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue