Sha256: 956ab33513f0808175006aa926bdb41bc27750686dfd4c2119e86de3333b9b80

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

%h3.pb-2#triggered-email-overview Triggered Email Overview

%table.table.table-striped
  %caption
    %ul
      %li.mb-1
        Recipient updates that match a given event will be sent the corresponding email(s) automatically.
        %br
        For example, when a user moves from the "Accepted" to "RSVP Confirmed" state, the user will be sent an email for the "RSVP Confirmed" event.
      %li Hard-coded emails are those managed in the source code repository, and cannot be disabled.
  %thead
    %tr
      %th Trigger Event
      %th Hard-coded Email
      %th Triggered Emails
  %tbody
    - Message::POSSIBLE_TRIGGERS.keys.each do |trigger|
      %tr
        %td= Message::POSSIBLE_TRIGGERS[trigger]
        - messages = Message.where(trigger: trigger).all
        %td
          = ['questionnaire.pending', 'questionnaire.accepted', 'questionnaire.denied', 'questionnaire.rsvp_confirmed'].include?(trigger) ? '<strong class="text-success">Yes</strong>'.html_safe : 'No'
        %td
          - if messages.present?
            %ul.list-unstyled.mb-0
              - messages.each do |message|
                %li= link_to(message.name, manage_message_path(message))
          - else
            None

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hackathon_manager-0.7.1 app/views/application/_triggered_email_summary.html.haml
hackathon_manager-0.7.0 app/views/application/_triggered_email_summary.html.haml