Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Merge requests
!211
Hin 1244 added users emails
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hin 1244 added users emails
HIN-1244-added-users-emails
into
develop
Overview
0
Commits
2
Pipelines
0
Changes
6
Merged
Alexandru Munteanu
requested to merge
HIN-1244-added-users-emails
into
develop
6 years ago
Overview
0
Commits
2
Pipelines
0
Changes
6
Expand
2
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
ac9238f6
2 commits,
6 years ago
6 files
+
24
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
packages/component-user/server/notifications/emailCopy.js
+
13
−
13
Options
const
config
=
require
(
'
config
'
)
const
journalName
=
config
.
get
(
'
journal.name
'
)
const
getEmailCopy
=
({
emailType
,
role
})
=>
{
const
getEmailCopy
ForUsersAddedByAdmin
=
({
role
})
=>
{
let
paragraph
let
hasIntro
=
true
let
hasSignature
=
true
switch
(
emailType
)
{
case
'
user-signup
'
:
paragraph
=
`Thank you for creating an account on Hindawi’s review system.
To submit a manuscript and access your dashboard, please confirm your account by clicking on the link below.`
break
case
'
user-added-by-admin
'
:
const
hasSignature
=
true
switch
(
role
)
{
case
'
admin
'
:
hasIntro
=
false
hasSignature
=
false
paragraph
=
`You have been invited to join Hindawi as a
${
role
}
.
paragraph
=
`You have been invited to join Hindawi as an Administrator.
Please confirm your account and set your account details by clicking on the link below.`
break
case
'
editorInChief
'
:
paragraph
=
`You have been invited to join Hindawi as an Editor in Chief.
Please confirm your account and set your account details by clicking on the link below.`
break
case
'
h
e-added-by-admin
'
:
case
'
h
andlingEditor
'
:
paragraph
=
`You have been invited to become an Academic Editor for the journal
${
journalName
}
.
To begin performing your editorial duties, you will need to create an account on Hindawi’s review system.<br/><br/>
Please confirm your account details by clicking on the link below.`
break
default
:
throw
new
Error
(
`The
${
emailType
}
email type is not defined.`
)
paragraph
=
`You have been invited to join Hindawi as an Author.
Please confirm your account and set your account details by clicking on the link below.`
}
return
{
paragraph
,
hasLink
:
true
,
hasIntro
,
hasSignature
}
}
module
.
exports
=
{
getEmailCopy
,
getEmailCopy
ForUsersAddedByAdmin
,
}