Allow changing the visibitly (public/privat) of messages (fixes #625)
This commit is contained in:
parent
c955a6ee40
commit
226192f7cb
6 changed files with 38 additions and 0 deletions
|
|
@ -23,6 +23,15 @@
|
|||
%tr
|
||||
%td= t '.sent_on'
|
||||
%td= format_time(@message.created_at)
|
||||
%tr
|
||||
%td= t '.visibility'
|
||||
%td
|
||||
- if @message.private
|
||||
= t '.visibility_private'
|
||||
- else
|
||||
= t '.visibility_public'
|
||||
- if @message.can_toggle_private?(current_user)
|
||||
= link_to t('.change_visibility'), toggle_private_message_path(@message), method: :post, class: 'btn btn-mini'
|
||||
%hr/
|
||||
%p= simple_format(h(@message.body))
|
||||
%hr/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue