Sha256: bac63ae7e3701b1c4fded4fd7c9822da686d76607f288e5c5d244ed892e6bea9

Contents?: true

Size: 1.38 KB

Versions: 21

Compression:

Stored size: 1.38 KB

Contents

%section.section.manage
  %h1.section-title= title "Message"
  %p#notice= notice

  %p
    %b Name:
    = @message.name
  %p
    %b Subject:
    = @message.subject
  %p
    %b Template:
    = @message.template.titleize
  %p
    %b Recipients:
    = @message.recipients_list
  %p
    %b Preview:
    = link_to "Open full preview »".html_safe, preview_manage_message_path

  %iframe.email-preview{src: preview_manage_message_path(@message)}

  %p
    %b
      Status:
      = @message.status.titleize
  %p
    %b Queued At:
    = @message.queued_at || "(n/a)"
  %p
    %b Started At:
    = @message.started_at || "(n/a)"
  %p
    %b Delivered At:
    = @message.delivered_at || "(n/a)"

  %hr

  - unless current_user.admin_limited_access
    - if @message.status == "drafted"
      = btn_link_to 'Deliver', deliver_manage_message_path(@message), method: :patch, data: { confirm: "Are you sure? The message \"#{@message.name}\" will be sent out to all recipients." }
      \|
    - if @message.can_edit?
      = link_to 'Edit', edit_manage_message_path(@message)
      \|
      = link_to 'Delete', manage_message_path(@message), method: :delete, data: { confirm: "Are you sure? The message \"#{@message.name}\" will be permanently erased. This action is irreversible." }
      \|
    = link_to 'Duplicate', duplicate_manage_message_path(@message), method: :patch
    \|
  = link_to 'Back', manage_messages_path

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hackathon_manager-0.5.9 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.8 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.7 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.6 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.5 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.4 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.3 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.2 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.1 app/views/manage/messages/show.html.haml
hackathon_manager-0.5.0 app/views/manage/messages/show.html.haml
hackathon_manager-0.4.4 app/views/manage/messages/show.html.haml
hackathon_manager-0.4.3 app/views/manage/messages/show.html.haml
hackathon_manager-0.4.2 app/views/manage/messages/show.html.haml
hackathon_manager-0.4.1 app/views/manage/messages/show.html.haml
hackathon_manager-0.4.0 app/views/manage/messages/show.html.haml
hackathon_manager-0.3.3 app/views/manage/messages/show.html.haml
hackathon_manager-0.3.2 app/views/manage/messages/show.html.haml
hackathon_manager-0.3.1 app/views/manage/messages/show.html.haml
hackathon_manager-0.3.0 app/views/manage/messages/show.html.haml
hackathon_manager-0.2.0 app/views/manage/messages/show.html.haml