Add {committee_review} to emails and support HTML
This commit is contained in:
parent
9786843eac
commit
f6c7a50bba
4 changed files with 12 additions and 7 deletions
|
|
@ -91,6 +91,8 @@ class EmailSettings < ApplicationRecord
|
|||
h['eventtitle'] = event.title
|
||||
h['proposalslink'] = Rails.application.routes.url_helpers.conference_program_proposals_url(
|
||||
conference.short_title, host: (ENV['OSEM_HOSTNAME'] || 'localhost:3000'))
|
||||
h['committee_review'] = event.committee_review
|
||||
h['committee_review_html'] = ApplicationController.helpers.markdown(event.committee_review)
|
||||
end
|
||||
|
||||
if booth
|
||||
|
|
|
|||
|
|
@ -17,6 +17,12 @@
|
|||
%tr
|
||||
%td {eventtitle}
|
||||
%td The title of an accepted or rejected proposal
|
||||
%tr
|
||||
%td {committee_review}
|
||||
%td The raw text in the committee review for the proposal
|
||||
%tr
|
||||
%td {committee_review_html}
|
||||
%td The committee review markdown rendered as HTML.
|
||||
%tr
|
||||
%td {conference_start_date}
|
||||
%td The start date of the conference
|
||||
|
|
@ -56,9 +62,6 @@
|
|||
%td {conference_splash_link}
|
||||
%td The link to conference splash page
|
||||
- if @conference.booths
|
||||
%tr
|
||||
%td {submitter_name}
|
||||
%td Submitter's name
|
||||
%tr
|
||||
%td {booth_title}
|
||||
%td Booth's title
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
%td
|
||||
= link_to @event.submitter.name, admin_user_path(@event.submitter)
|
||||
- if @event.submitter.email_public
|
||||
= "(#{mail_to(@event.submitter.email)})"
|
||||
(#{mail_to(@event.submitter.email)})
|
||||
%tr
|
||||
%td
|
||||
%b Speakers
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
%div
|
||||
= link_to speaker.name, admin_user_path(speaker)
|
||||
- if speaker.email_public
|
||||
= "(#{mail_to(speaker.email)})"
|
||||
(#{mail_to(speaker.email)})
|
||||
%tr
|
||||
%td
|
||||
%b Volunteers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<%= render partial: "layouts/mailbot_header" %>
|
||||
<div id="content">
|
||||
<span style="white-space: pre-line">
|
||||
<%= @email_body %>
|
||||
<%= @email_body.html_safe %>
|
||||
</span>
|
||||
</div>
|
||||
<%= render partial: "layouts/mailbot_footer" %>
|
||||
<%= render partial: "layouts/mailbot_footer" %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue