Commit ce76a2e2 authored by Beat Seeliger's avatar Beat Seeliger
Browse files

Merge branch 'changes/app-url-to-email-templates' into 'develop'

changes/provide application link for email templates

See merge request !843
parents 1502d90c 7b2fe263
Pipeline #30736 passed with stage
in 35 minutes and 54 seconds
......@@ -7,7 +7,8 @@ class ReminderMailing < ApplicationRecord
:Einsatz,
:EinsatzStart,
:FeedbackLink,
:EmailAbsender
:EmailAbsender,
:OnlinePlattformUrl
].freeze
belongs_to :creator, -> { with_deleted }, class_name: 'User', inverse_of: 'reminder_mailings'
......
......@@ -121,4 +121,8 @@ class ReminderMailingVolunteer < ApplicationRecord
def feedback_link
"[Halbjahres-Rapport erstellen](#{feedback_url})"
end
def online_plattform_url
"[Online-Plattform Url](#{Rails.application.routes.url_helpers.root_path})"
end
end
......@@ -19,7 +19,8 @@ class SemesterProcessMail < ApplicationRecord
:Einsatz,
:FeedbackLink,
:EmailAbsender,
:Semester
:Semester,
:OnlinePlattformUrl
].freeze
def self.template_varnames
......@@ -87,6 +88,10 @@ class SemesterProcessMail < ApplicationRecord
)
end
def online_plattform_url
"[Online-Plattform Url](#{Rails.application.routes.url_helpers.root_path})"
end
private
def send_email
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment