|
| 1 | +sections: |
| 2 | + user: |
| 3 | + description: The email recipient |
| 4 | + buslist: |
| 5 | + description: The bus list specified for the email, or the bus list a recipient is signed up for. |
| 6 | +variables: |
| 7 | + first_name: |
| 8 | + description: The recipient's first name, if it exists |
| 9 | + example: John |
| 10 | + value: user&.first_name |
| 11 | + last_name: |
| 12 | + description: The recipient's last name, if it exists |
| 13 | + example: Smith |
| 14 | + value: user&.last_name |
| 15 | + |
| 16 | + bus_list_exists?: |
| 17 | + description: True/false if bus list information is available. Useful for optionally including bus content in emails. |
| 18 | + example: true |
| 19 | + value: bus_list.present? |
| 20 | + bus_list_name: |
| 21 | + description: The bus list's name. |
| 22 | + example: Toronto & Buffalo Bus |
| 23 | + value: bus_list&.name |
| 24 | + bus_list_notes: |
| 25 | + description: The bus list's bus notes |
| 26 | + example: | |
| 27 | + **Some notes for your bus:** |
| 28 | +
|
| 29 | + Picks up at 8:00am |
| 30 | + value: bus_list&.name |
| 31 | + |
| 32 | + hackathon_name: |
| 33 | + description: Name of the hackathon |
| 34 | + use_value_as_example: true |
| 35 | + value: HackathonConfig['name'] |
| 36 | + |
| 37 | + apply_url: |
| 38 | + description: Full URL of the apply page. Useful for links. |
| 39 | + use_value_as_example: true |
| 40 | + value: Rails.application.routes.url_helpers.root_url(Rails.application.config.action_mailer.default_url_options) |
| 41 | + rsvp_url: |
| 42 | + description: Full URL of RSVP page. Useful for links. |
| 43 | + use_value_as_example: true |
| 44 | + value: Rails.application.routes.url_helpers.rsvp_url(Rails.application.config.action_mailer.default_url_options) |
| 45 | + rsvp_accept_url: |
| 46 | + description: Full URL to the RSVP acceptance page. Useful for a one-click RSVP link. |
| 47 | + use_value_as_example: true |
| 48 | + value: Rails.application.routes.url_helpers.accept_rsvp_url(Rails.application.config.action_mailer.default_url_options) |
| 49 | + rsvp_deny_url: |
| 50 | + description: Full URL to the RSVP denial page. Useful for a one-click RSVP link. |
| 51 | + use_value_as_example: true |
| 52 | + value: Rails.application.routes.url_helpers.deny_rsvp_url(Rails.application.config.action_mailer.default_url_options) |
0 commit comments