only show permalink if the post is infact public. also, make destroy delete

This commit is contained in:
maxwell 2010-12-13 18:45:54 -08:00
parent e3e3fd13e5
commit 2bc849fa90
3 changed files with 5 additions and 6 deletions

View file

@ -3,7 +3,7 @@
-# the COPYRIGHT file.
%li.message{:data=>{:guid=>post.id}}
=person_image_link(person, :size => :thumb_small)
= person_image_link(person, :size => :thumb_small)
.content
.from
@ -24,7 +24,7 @@
- elsif person.owner_id == current_user.id
%span.arrow ➔
=aspect_badge(aspects_with_post(aspects, post))
= aspect_badge(aspects_with_post(aspects, post))
= render 'status_messages/status_message', :post => post, :photos => photos
@ -34,4 +34,3 @@
= comment_toggle(comments.length, @commenting_disabled)
= render "comments/comments", :post_id => post.id, :comment_hashes => comments, :condensed => true, :commenting_disabled => defined?(@commenting_disabled)

View file

@ -18,7 +18,7 @@
%hr
= link_to t('.permalink'), post_path(@status_message)
= link_to t('.permalink'), post_path(@status_message) if @status_message.public
%br
- if current_user.owns? @status_message
= link_to t('.destroy'), @status_message, :confirm => t('are_you_sure'), :method => :delete

View file

@ -304,7 +304,7 @@ en:
tell_me_something_good: "tell me something good"
oh_yeah: "oh yeah!"
show:
destroy: "Destroy"
destroy: "Delete"
permalink: "permalink"
helper:
no_message_to_display: "No message to display."
@ -384,7 +384,7 @@ en:
create:
success: "Authentication successful."
destroy:
success: "Successfully destroyed authentication."
success: "Successfully deleted authentication."
failure:
error: "there was an error connecting that service"
notifier: