Skip to content
Extraits de code Groupes Projets
Valider 2bc849fa rédigé par maxwell's avatar maxwell
Parcourir les fichiers

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

parent e3e3fd13
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
%li.message{:data=>{:guid=>post.id}} %li.message{:data=>{:guid=>post.id}}
=person_image_link(person, :size => :thumb_small) = person_image_link(person, :size => :thumb_small)
.content .content
.from .from
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
- elsif person.owner_id == current_user.id - elsif person.owner_id == current_user.id
%span.arrow %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 = render 'status_messages/status_message', :post => post, :photos => photos
...@@ -34,4 +34,3 @@ ...@@ -34,4 +34,3 @@
= comment_toggle(comments.length, @commenting_disabled) = comment_toggle(comments.length, @commenting_disabled)
= render "comments/comments", :post_id => post.id, :comment_hashes => comments, :condensed => true, :commenting_disabled => defined?(@commenting_disabled) = render "comments/comments", :post_id => post.id, :comment_hashes => comments, :condensed => true, :commenting_disabled => defined?(@commenting_disabled)
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
%hr %hr
= link_to t('.permalink'), post_path(@status_message) = link_to t('.permalink'), post_path(@status_message) if @status_message.public
%br %br
- 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
......
...@@ -304,7 +304,7 @@ en: ...@@ -304,7 +304,7 @@ en:
tell_me_something_good: "tell me something good" tell_me_something_good: "tell me something good"
oh_yeah: "oh yeah!" oh_yeah: "oh yeah!"
show: show:
destroy: "Destroy" destroy: "Delete"
permalink: "permalink" permalink: "permalink"
helper: helper:
no_message_to_display: "No message to display." no_message_to_display: "No message to display."
...@@ -384,7 +384,7 @@ en: ...@@ -384,7 +384,7 @@ en:
create: create:
success: "Authentication successful." success: "Authentication successful."
destroy: destroy:
success: "Successfully destroyed authentication." success: "Successfully deleted authentication."
failure: failure:
error: "there was an error connecting that service" error: "there was an error connecting that service"
notifier: notifier:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter