Skip to content

Commit

Permalink
IP-78: As a platform admin/content manager, when a new solution is su…
Browse files Browse the repository at this point in the history
…bmitted I receive an email notification with the submission details
  • Loading branch information
PavlosIsaris committed Dec 16, 2024
1 parent 0c77a77 commit cad429e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Notifications/SolutionSubmittedForReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function via(object $notifiable): array {
*/
public function toMail(object $notifiable): MailMessage {
return (new MailMessage)
->subject('Crowdsourcing Platform | ' . __('notifications.solution_submitted') . ': ' . $this->solution->defaultTranslation->title)
->subject('Crowdsourcing Platform | ' . __('notifications.solution_submitted_for_review') . ': ' . $this->solution->defaultTranslation->title)
->line(__('notifications.new_solution_submitted'))
->line('<div style="text-align:center; height: 200px; margin-bottom: 20px;"><img class="badgeImg" style="height: 200px; margin-bottom: 0;" src=' . asset('images/active_participation.webp') . '></div>')
->greeting(__('notifications.hello') . ' ' . $notifiable->nickname . '!')
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'agree_privacy_policy' => 'I agree to the <a href="https://crowdsourcing.ecas.org/en/terms-and-privacy" target="_blank"> privacy policy.',
'ok' => 'OK',
'solution_submitted' => 'Solution Submitted',
'solution_submitted_for_review' => 'Solution submitted for review',
'thanks_for_proposing_solution' => 'Thank you for proposing a solution! It will soon be reviewed by our team, and you will be notified when it is approved. Once approved, other users will be able to vote on it!',
'new_solution_submitted' => 'A new solution has been submitted.',
'a_user_has_proposed_solution' => 'A user has proposed a solution.',
Expand Down

0 comments on commit cad429e

Please sign in to comment.