Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
7b2fe263
Commit
7b2fe263
authored
Nov 14, 2018
by
Tugce Nur Tas
Browse files
provide app url variable for email templates
parent
1502d90c
Pipeline
#30727
passed with stage
in 36 minutes and 41 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/models/reminder_mailing.rb
View file @
7b2fe263
...
@@ -7,7 +7,8 @@ class ReminderMailing < ApplicationRecord
...
@@ -7,7 +7,8 @@ class ReminderMailing < ApplicationRecord
:Einsatz
,
:Einsatz
,
:EinsatzStart
,
:EinsatzStart
,
:FeedbackLink
,
:FeedbackLink
,
:EmailAbsender
:EmailAbsender
,
:OnlinePlattformUrl
].
freeze
].
freeze
belongs_to
:creator
,
->
{
with_deleted
},
class_name:
'User'
,
inverse_of:
'reminder_mailings'
belongs_to
:creator
,
->
{
with_deleted
},
class_name:
'User'
,
inverse_of:
'reminder_mailings'
...
...
app/models/reminder_mailing_volunteer.rb
View file @
7b2fe263
...
@@ -121,4 +121,8 @@ class ReminderMailingVolunteer < ApplicationRecord
...
@@ -121,4 +121,8 @@ class ReminderMailingVolunteer < ApplicationRecord
def
feedback_link
def
feedback_link
"[Halbjahres-Rapport erstellen](
#{
feedback_url
}
)"
"[Halbjahres-Rapport erstellen](
#{
feedback_url
}
)"
end
end
def
online_plattform_url
"[Online-Plattform Url](
#{
Rails
.
application
.
routes
.
url_helpers
.
root_path
}
)"
end
end
end
app/models/semester_process_mail.rb
View file @
7b2fe263
...
@@ -19,7 +19,8 @@ class SemesterProcessMail < ApplicationRecord
...
@@ -19,7 +19,8 @@ class SemesterProcessMail < ApplicationRecord
:Einsatz
,
:Einsatz
,
:FeedbackLink
,
:FeedbackLink
,
:EmailAbsender
,
:EmailAbsender
,
:Semester
:Semester
,
:OnlinePlattformUrl
].
freeze
].
freeze
def
self
.
template_varnames
def
self
.
template_varnames
...
@@ -87,6 +88,10 @@ class SemesterProcessMail < ApplicationRecord
...
@@ -87,6 +88,10 @@ class SemesterProcessMail < ApplicationRecord
)
)
end
end
def
online_plattform_url
"[Online-Plattform Url](
#{
Rails
.
application
.
routes
.
url_helpers
.
root_path
}
)"
end
private
private
def
send_email
def
send_email
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment