Sha256: c905b2aec7e8f2d5706502467c4bf5cf7380936eccf3051ccf793828cb7f1701

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

#actions
  - if @conversation.is_trashed?(current_messaging_user)
    = link_to "Untrash", untrash_message_path(@conversation), class: :button, method: :post
  - else
    = link_to "Trash", trash_message_path(@conversation), class: :button, method: :delete
%h2.subject= @conversation.subject
%ul#conversation
  - @conversation.messages.each do |message|
    %li
      .head
        .from= message.sender
        .date #{message.created_at.to_s(:long)} (#{time_ago_in_words(message.created_at)} ago)
      .body= message.body
      - if message.attachment.url
        .attachment
          = link_to message.attachment_identifier, message.attachment.url
#reply
  = simple_form_for @message do |f|
    = f.input :conversation_id, as: :hidden
    = f.label :body, label: 'Reply', required: false
    = f.input_field :body, as: :text, label: 'Reply'
    = f.input :attachment, as: :file
    = f.button :submit, 'Reply to conversation'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
messaging_4-0.0.1 app/views/messaging/messages/show.html.haml