touched up photo show and status message show pages
This commit is contained in:
parent
9922c42f5e
commit
8269e4b300
6 changed files with 67 additions and 56 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
- content_for :head do
|
- content_for :head do
|
||||||
= include_javascripts :photos
|
= include_javascripts :photos
|
||||||
|
|
||||||
.span-15.append-1.last
|
.span-16.append-4.prepend-4.last
|
||||||
#photo_controls
|
#photo_controls
|
||||||
-if @additional_photos && @additional_photos.length > 1
|
-if @additional_photos && @additional_photos.length > 1
|
||||||
.right
|
.right
|
||||||
|
|
@ -13,10 +13,8 @@
|
||||||
\/
|
\/
|
||||||
=link_to "#{t('next')} →", @next_photo, :rel => 'prefetch', :id => 'photo_show_right'
|
=link_to "#{t('next')} →", @next_photo, :rel => 'prefetch', :id => 'photo_show_right'
|
||||||
|
|
||||||
- if @photo.status_message_id
|
#original_post_info
|
||||||
=link_to "← #{t('.view_original_post')}", @photo.status_message
|
= render 'shared/author_info', :person => @photo.person, :post => @photo
|
||||||
- else
|
|
||||||
\.
|
|
||||||
|
|
||||||
#photo_container
|
#photo_container
|
||||||
#show_photo{:data=>{:guid=>@photo.id}}
|
#show_photo{:data=>{:guid=>@photo.id}}
|
||||||
|
|
@ -29,13 +27,30 @@
|
||||||
#caption
|
#caption
|
||||||
= @photo.caption
|
= @photo.caption
|
||||||
|
|
||||||
%hr
|
|
||||||
|
|
||||||
- if @ownership
|
- if @ownership
|
||||||
.photo_options{:data=>{:actor=>"#{@photo.person.owner.id}",:actor_person=>"#{@photo.person.id}",:image_url=>"#{@photo.url(:thumb_large)}"}}
|
.photo_options{:data=>{:actor=>"#{@photo.person.owner.id}",:actor_person=>"#{@photo.person.id}",:image_url=>"#{@photo.url(:thumb_large)}"}}
|
||||||
= link_to t('.make_profile_photo'), {:controller => "photos", :action => "make_profile_photo", :photo_id => @photo.id}, :remote => true, :class => 'make_profile_photo'
|
= link_to t('.make_profile_photo'), {:controller => "photos", :action => "make_profile_photo", :photo_id => @photo.id}, :remote => true, :class => 'make_profile_photo'
|
||||||
|
|
|
|
||||||
= link_to t('.edit'), '#', :id => "edit_photo_toggle"
|
= link_to t('.edit'), '#', :id => "edit_photo_toggle"
|
||||||
|
%br
|
||||||
|
|
||||||
|
%hr
|
||||||
|
|
||||||
|
- if @photo.status_message_id
|
||||||
|
|
||||||
|
.span-8.last
|
||||||
|
%p
|
||||||
|
= markdownify(@photo.status_message.message)
|
||||||
|
%span{:style=>'font-size:smaller'}
|
||||||
|
=link_to t('.collection_permalink'), @photo.status_message
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
|
||||||
|
.span-7.prepend-1
|
||||||
|
.show_photo_attachments
|
||||||
|
- for photo in @additional_photos
|
||||||
|
= link_to (image_tag photo.url(:thumb_small)), object_path(photo)
|
||||||
|
|
||||||
|
|
||||||
#photo_edit_options
|
#photo_edit_options
|
||||||
%h4= t('.edit_delete_photo')
|
%h4= t('.edit_delete_photo')
|
||||||
|
|
@ -46,20 +61,9 @@
|
||||||
%p
|
%p
|
||||||
= button_to t('.delete_photo'), @photo, :confirm => t('are_you_sure'), :method => :delete
|
= button_to t('.delete_photo'), @photo, :confirm => t('are_you_sure'), :method => :delete
|
||||||
|
|
||||||
.span-8.last
|
.span-16.prepend-4.append-4.last
|
||||||
|
%h5
|
||||||
#original_post_info
|
= t('_comments')
|
||||||
= render 'shared/author_info', :person => @photo.person, :post => @photo
|
|
||||||
|
|
||||||
- if @photo.status_message_id
|
|
||||||
%p
|
|
||||||
= markdownify(@photo.status_message.message)
|
|
||||||
|
|
||||||
%p
|
|
||||||
- for photo in @additional_photos
|
|
||||||
= link_to (image_tag photo.url(:thumb_small)), object_path(photo)
|
|
||||||
|
|
||||||
%h4= t('_comments')
|
|
||||||
|
|
||||||
#photo_stream.stream.show
|
#photo_stream.stream.show
|
||||||
%div{:data=>{:guid=>@parent.id}}
|
%div{:data=>{:guid=>@parent.id}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#author_info.show
|
#author_info.show
|
||||||
= person_image_link(person)
|
= person_image_link(person)
|
||||||
.from
|
.from
|
||||||
%h4
|
%h5
|
||||||
= person.name
|
= person.name
|
||||||
|
|
||||||
#person_nav_links
|
#person_nav_links
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
|
|
||||||
.span-15.append-1.last
|
.span-16.append-4.prepend-4.last
|
||||||
|
#original_post_info
|
||||||
|
= render 'shared/author_info', :person => @status_message.person, :post => @status_message
|
||||||
|
|
||||||
#show_text
|
#show_text
|
||||||
%p
|
%p
|
||||||
= markdownify(@status_message.message, :youtube_maps => @status_message[:youtube_titles])
|
= markdownify(@status_message.message, :youtube_maps => @status_message[:youtube_titles])
|
||||||
|
|
@ -21,12 +24,9 @@
|
||||||
- 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
|
= link_to t('.destroy'), @status_message, :confirm => t('are_you_sure'), :method => :delete
|
||||||
|
|
||||||
.span-8.last
|
|
||||||
#original_post_info
|
|
||||||
= render 'shared/author_info', :person => @status_message.person, :post => @status_message
|
|
||||||
|
|
||||||
%h4= t('_comments')
|
|
||||||
|
|
||||||
|
%h5
|
||||||
|
= t('_comments')
|
||||||
#status_message_stream.stream.show
|
#status_message_stream.stream.show
|
||||||
%div{:data=>{:guid=>@status_message.id}}
|
%div{:data=>{:guid=>@status_message.id}}
|
||||||
= render "comments/comments", :post_id => @status_message.id, :comments => @status_message.comments, :always_expanded => true
|
= render "comments/comments", :post_id => @status_message.id, :comments => @status_message.comments, :always_expanded => true
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ en:
|
||||||
edit: "edit"
|
edit: "edit"
|
||||||
edit_delete_photo: "Edit photo description / delete photo"
|
edit_delete_photo: "Edit photo description / delete photo"
|
||||||
permalink: "permalink"
|
permalink: "permalink"
|
||||||
view_original_post: "view original post"
|
collection_permalink: "collection permalink"
|
||||||
edit:
|
edit:
|
||||||
editing: "Editing"
|
editing: "Editing"
|
||||||
photo:
|
photo:
|
||||||
|
|
|
||||||
|
|
@ -55,12 +55,15 @@ $(document).ready(function() {
|
||||||
$(document).keyup(function(e){
|
$(document).keyup(function(e){
|
||||||
//left
|
//left
|
||||||
if(e.keyCode == 37) {
|
if(e.keyCode == 37) {
|
||||||
|
if( $("#photo_show_left").length > 0 ){
|
||||||
document.location = $("#photo_show_left").attr('href');
|
document.location = $("#photo_show_left").attr('href');
|
||||||
|
}
|
||||||
|
|
||||||
//right
|
//right
|
||||||
} else if(e.keyCode == 39) {
|
} else if(e.keyCode == 39) {
|
||||||
|
if( $("#photo_show_right").length > 0 ){
|
||||||
document.location = $("#photo_show_right").attr('href');
|
document.location = $("#photo_show_right").attr('href');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -273,6 +273,19 @@ header
|
||||||
:font
|
:font
|
||||||
:weight lighter
|
:weight lighter
|
||||||
|
|
||||||
|
.show_photo_attachments
|
||||||
|
:border
|
||||||
|
:bottom 1px solid #eee
|
||||||
|
:padding
|
||||||
|
:top 6px
|
||||||
|
:bottom 16px
|
||||||
|
:margin
|
||||||
|
:bottom 2em
|
||||||
|
img
|
||||||
|
:margin
|
||||||
|
:right 1px
|
||||||
|
:bottom -1px
|
||||||
|
|
||||||
#author_info
|
#author_info
|
||||||
:position relative
|
:position relative
|
||||||
|
|
||||||
|
|
@ -283,28 +296,26 @@ header
|
||||||
:height 30px
|
:height 30px
|
||||||
:width 30px
|
:width 30px
|
||||||
|
|
||||||
.avatar
|
|
||||||
:-webkit-box-shadow none
|
|
||||||
:box-shadow none
|
|
||||||
|
|
||||||
.from
|
.from
|
||||||
:display inline-block
|
:display inline-block
|
||||||
:padding 10px
|
|
||||||
:top 0
|
|
||||||
|
|
||||||
&.profile
|
&.profile
|
||||||
.from
|
.from
|
||||||
:padding 0
|
:padding 0
|
||||||
|
|
||||||
h3,
|
h3,
|
||||||
h4
|
h4,
|
||||||
|
h5
|
||||||
:display inline-block
|
:display inline-block
|
||||||
|
|
||||||
&.show
|
&.show
|
||||||
a
|
a
|
||||||
:margin
|
:margin
|
||||||
:right 1em
|
:right 1em
|
||||||
h4
|
:font
|
||||||
|
:weight normal
|
||||||
|
h4,
|
||||||
|
h5
|
||||||
:margin 0
|
:margin 0
|
||||||
:padding 0
|
:padding 0
|
||||||
|
|
||||||
|
|
@ -517,6 +528,7 @@ header
|
||||||
> li
|
> li
|
||||||
:border none
|
:border none
|
||||||
:padding 0
|
:padding 0
|
||||||
|
:word-wrap break-word
|
||||||
&:hover
|
&:hover
|
||||||
> li
|
> li
|
||||||
:background none
|
:background none
|
||||||
|
|
@ -524,7 +536,8 @@ header
|
||||||
|
|
||||||
ul.comments
|
ul.comments
|
||||||
textarea
|
textarea
|
||||||
:width 275px
|
:width 425px
|
||||||
|
:max-width 97%
|
||||||
|
|
||||||
.stream ul.comments
|
.stream ul.comments
|
||||||
.avatar
|
.avatar
|
||||||
|
|
@ -687,7 +700,6 @@ a.paginate, #infscr-loading
|
||||||
|
|
||||||
img
|
img
|
||||||
:max-width 100%
|
:max-width 100%
|
||||||
:-webkit-box-shadow 0 2px 5px #666
|
|
||||||
|
|
||||||
#photo_spinner
|
#photo_spinner
|
||||||
:z-index 1
|
:z-index 1
|
||||||
|
|
@ -1423,15 +1435,6 @@ input[type="search"]
|
||||||
:size 18px
|
:size 18px
|
||||||
:weight bold
|
:weight bold
|
||||||
|
|
||||||
img
|
|
||||||
:-webkit-box-shadow 0 1px 2px #666
|
|
||||||
:-moz-box-shadow 0 1px 2px #666
|
|
||||||
:box-shadow 0 1px 2px #666
|
|
||||||
|
|
||||||
:-webkit-border-radius 5px
|
|
||||||
:-moz-border-radius 5px
|
|
||||||
:border-radius 5px
|
|
||||||
|
|
||||||
.photo_options
|
.photo_options
|
||||||
:color #ddd
|
:color #ddd
|
||||||
:text
|
:text
|
||||||
|
|
@ -2043,6 +2046,8 @@ h3,h4
|
||||||
#original_post_info
|
#original_post_info
|
||||||
p
|
p
|
||||||
:color #999
|
:color #999
|
||||||
|
:margin
|
||||||
|
:bottom 2em
|
||||||
|
|
||||||
.what_is_this
|
.what_is_this
|
||||||
:position relative
|
:position relative
|
||||||
|
|
@ -2206,8 +2211,7 @@ h3,h4
|
||||||
#photo_controls
|
#photo_controls
|
||||||
:color #ddd
|
:color #ddd
|
||||||
:position relative
|
:position relative
|
||||||
:margin
|
:z-index 10
|
||||||
:bottom 1em
|
|
||||||
|
|
||||||
ul.show_comments
|
ul.show_comments
|
||||||
:margin
|
:margin
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue