DG MS; updated text to reflect the fact that hiding posts now
mutes notifications as well
This commit is contained in:
parent
328269e40d
commit
1fa01a811e
3 changed files with 10 additions and 4 deletions
|
|
@ -6,4 +6,5 @@ target.find(".hide_loader").toggleClass("hidden");
|
||||||
var hide_icon = target.find(".stream_element_delete")
|
var hide_icon = target.find(".stream_element_delete")
|
||||||
if (target.find(".undo_text").hasClass("hidden")) {
|
if (target.find(".undo_text").hasClass("hidden")) {
|
||||||
hide_icon.toggleClass("hidden");
|
hide_icon.toggleClass("hidden");
|
||||||
|
target.find(".hide_loader").toggleClass("hidden");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,15 @@
|
||||||
- if current_user && post.author.owner_id == current_user.id
|
- if current_user && post.author.owner_id == current_user.id
|
||||||
= link_to image_tag('deletelabel.png'), post_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete stream_element_delete", :title => t('delete')
|
= link_to image_tag('deletelabel.png'), post_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete stream_element_delete", :title => t('delete')
|
||||||
- else
|
- else
|
||||||
= link_to image_tag('deletelabel.png'), post_visibility_path(:id => "42", :post_id => post.id), :method => :put, :remote => true, :class => "delete stream_element_delete vis_hide", :title => t('hide')
|
= link_to image_tag('deletelabel.png'), post_visibility_path(:id => "42", :post_id => post.id), :method => :put, :remote => true, :class => "delete stream_element_delete vis_hide", :title => t('.hide_and_mute')
|
||||||
= image_tag 'ajax-loader.gif', :class => "hide_loader hidden"
|
= image_tag 'ajax-loader.gif', :class => "hide_loader hidden"
|
||||||
|
|
||||||
.undo_text.hidden
|
.undo_text.hidden
|
||||||
= t('post_visibilites.update.post_hidden', :name => post.author.name)
|
%p
|
||||||
= link_to t('undo'), post_visibility_path(:id => "42", :post_id => post.id), :method => :put, :remote => true, :class => "delete stream_element_hide_undo"
|
= t('post_visibilites.update.post_hidden_and_muted', :name => post.author.name)
|
||||||
|
%p
|
||||||
|
= t('post_visibilites.update.see_it_on_their_profile', :name => post.author.name)
|
||||||
|
= link_to t('undo'), post_visibility_path(:id => "42", :post_id => post.id), :method => :put, :remote => true
|
||||||
|
|
||||||
.sm_body
|
.sm_body
|
||||||
= person_image_link(post.author, :size => :thumb_small)
|
= person_image_link(post.author, :size => :thumb_small)
|
||||||
|
|
|
||||||
|
|
@ -574,7 +574,8 @@ en:
|
||||||
|
|
||||||
post_visibilites:
|
post_visibilites:
|
||||||
update:
|
update:
|
||||||
post_hidden: "%{name}'s post has been hidden."
|
post_hidden_and_muted: "%{name}'s post has been hidden, and notifications have been muted."
|
||||||
|
see_it_on_their_profile: "If you want to see updates on this post, visit %{name}'s profile page."
|
||||||
|
|
||||||
profiles:
|
profiles:
|
||||||
edit:
|
edit:
|
||||||
|
|
@ -736,6 +737,7 @@ en:
|
||||||
stream_element:
|
stream_element:
|
||||||
viewable_to_anyone: "This post is viewable to anyone on the web"
|
viewable_to_anyone: "This post is viewable to anyone on the web"
|
||||||
via: "via %{link}"
|
via: "via %{link}"
|
||||||
|
hide_and_mute: "Hide and Mute"
|
||||||
like: "Like"
|
like: "Like"
|
||||||
unlike: "Unlike"
|
unlike: "Unlike"
|
||||||
dislike: "Dislike"
|
dislike: "Dislike"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue