MS DG comments now work on photo show page; full size photos now available
This commit is contained in:
parent
6410b68ea4
commit
0f407b11ed
3 changed files with 24 additions and 14 deletions
|
|
@ -34,7 +34,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def link_to_person(person)
|
||||
link_to person.real_name, person_url(person)
|
||||
link_to person.real_name, person_path(person)
|
||||
end
|
||||
|
||||
def owner_image_tag
|
||||
|
|
|
|||
|
|
@ -1,17 +1,26 @@
|
|||
|
||||
%h3= "viewing photos from album #{@album.name}"
|
||||
%h3
|
||||
viewing photos from album
|
||||
=link_to @album.name, album_path(@album)
|
||||
|
||||
#show_photo
|
||||
%div{:id => @photo.id}
|
||||
|
||||
= link_to "full size", @photo.image.url
|
||||
%br
|
||||
|
||||
#show_photo
|
||||
= link_to (image_tag @photo.image.url), photo_path(@album.next_photo(@photo))
|
||||
|
||||
#photo_pagination
|
||||
#photo_pagination
|
||||
= link_to "<< previous", photo_path(@album.prev_photo(@photo))
|
||||
= link_to "next >>", photo_path(@album.next_photo(@photo))
|
||||
|
||||
%h4= "comments (#{@photo.comments.count})"
|
||||
= render "comments/comments", :post => @photo
|
||||
|
||||
%p
|
||||
%p
|
||||
= link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete
|
||||
|
|
||||
= link_to "<< back to album", album_path(@album)
|
||||
|
||||
%h4{:class => "show_post_comments"}
|
||||
= "comments (#{@photo.comments.count})"
|
||||
= render "comments/comments", :post => @photo
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
%li{ :class => "status_message" }= link_to "status message", "#"
|
||||
%li{ :class => "bookmark" }= link_to "bookmark", "#"
|
||||
%li{ :class => "blog" }= link_to "blog", "#"
|
||||
%li= link_to "photos", albums_path
|
||||
|
||||
#publisher_form
|
||||
= form_for StatusMessage.new, :remote => true do |f|
|
||||
|
|
|
|||
Loading…
Reference in a new issue