OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
improve the display of project member invitation email
bsatarnejad8e42259ac9ed
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rbindex aabd7062d2d..e7d1701110b 100644--- a/app/mailers/user_mailer.rb+++ b/app/mailers/user_mailer.rb@@ -159,7 +159,8 @@ class UserMailer < BaseMailerdef user_signed_up(token)return unless token.user-++ @user = token.user@token = token@activation_url = url_for(controller: '/account',action: :activate,diff --git a/app/views/layouts/user_mailer.html.erb b/app/views/layouts/user_mailer.html.erbindex d2d7cb7bb60..5512867d093 100644--- a/app/views/layouts/user_mailer.html.erb+++ b/app/views/layouts/user_mailer.html.erb@@ -46,6 +46,7 @@ See docs/COPYRIGHT.rdoc for more details.h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }h1 { font-size: 1.2em; }h2, h3 { font-size: 1.1em; }+ h2.emailTitle { color: #1a67a3; font-size: 2em; }a, a:link, a:visited { color: #2A5685;}a:hover, a:active { color: #c61a1a; }a.wiki-anchor { display: none; }diff --git a/app/views/user_mailer/user_signed_up.html.erb b/app/views/user_mailer/user_signed_up.html.erbindex a500e821415..ec4815a7a6d 100644--- a/app/views/user_mailer/user_signed_up.html.erb+++ b/app/views/user_mailer/user_signed_up.html.erb@@ -26,5 +26,31 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>-<p><%= l(:mail_body_register) %><br />+<h2 class="emailTitle"><%= l(:mail_body_register_header_title) %> </h2>+<br />++<p><%= l(:mail_body_register_user, userName: @user) %><br /> <br />+<%= l(:mail_body_register) %><br /><%= link_to @activation_url, @activation_url %></p>++<br />+<p><%= l(:mail_body_register_youtube_channel) %>+ <%= link_to OpenProject::Configuration.youtube_channel, OpenProject::Configuration.youtube_channel %>+ <%= l(:mail_body_register_webinar) %>+ <%= link_to OpenProject::Static::Links.links[:webinar_videos][:href], OpenProject::Static::Links.links[:webinar_videos][:href] %>+ <%= l(:mail_body_register_get_started) %>+ <%= link_to OpenProject::Static::Links.links[:get_started_videos][:href], OpenProject::Static::Links.links[:get_started_videos][:href] %>+ <%= l(:mail_body_register_first_step) %>+ <br />+ <%= l(:mail_body_register_documentation) %>+ <%= link_to OpenProject::Static::Links.links[:openproject_docs][:href], OpenProject::Static::Links.links[:openproject_docs][:href] %>+ <%= l(:mail_body_register_contact) %>+ <%= link_to OpenProject::Static::Links.links[:contact_us][:href], OpenProject::Static::Links.links[:contact_us][:href] %>+ ).+</p>+<br />+<p>+<%= l(:mail_body_register_ending) %>+ <br />+ <%= l(:mail_body_register_closing) %>+</p>\ No newline at end of filediff --git a/app/views/user_mailer/user_signed_up.text.erb b/app/views/user_mailer/user_signed_up.text.erbindex c10a01f67cc..c11d7feb65e 100644--- a/app/views/user_mailer/user_signed_up.text.erb+++ b/app/views/user_mailer/user_signed_up.text.erb@@ -26,6 +26,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See docs/COPYRIGHT.rdoc for more details.++#%>+<%= l(:mail_body_register_user, userName: @user) %><%= t(:mail_body_register) %><%= @activation_url %>++<%= l(:mail_body_register_ending) %>+<%= l(:mail_body_register_closing) %>\ No newline at end of filediff --git a/config/locales/en.yml b/config/locales/en.ymlindex a795e223685..c7568b5584e 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1814,7 +1814,17 @@ en:mail_body_account_information: "Your account information"mail_body_account_information_external: "You can use your %{value} account to log in."mail_body_lost_password: "To change your password, click on the following link:"- mail_body_register: "To activate your account, click on the following link:"+ mail_body_register: "Welcome to OpenProject. Please activate your account by clicking on this link:"+ mail_body_register_header_title: "Project member invitation email"+ mail_body_register_user: "Dear %{userName}, "+ mail_body_register_youtube_channel: "Please feel free to browse our youtube channel ( "+ mail_body_register_webinar: ") where we provide a webinar ("+ mail_body_register_get_started: ") and “Get started” videos ("+ mail_body_register_first_step: ") to make your first steps in OpenProject as easy as possible."+ mail_body_register_documentation: "If you have any further questions, consult our documentation ("+ mail_body_register_contact: ") or contact us ("+ mail_body_register_ending: "Stay connected! Kind regards,"+ mail_body_register_closing: "Your OpenProject team"mail_body_reminder: "%{count} work package(s) that are assigned to you are due in the next %{days} days:"mail_body_group_reminder: "%{count} work package(s) that are assigned to group \"%{group}\" are due in the next %{days} days:"mail_body_wiki_content_added: "The '%{id}' wiki page has been added by %{author}."diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rbindex 7c3d4085536..af3ee43d2e4 100644--- a/lib/open_project/static/links.rb+++ b/lib/open_project/static/links.rb@@ -189,6 +189,18 @@ module OpenProject},chargebee: {href: 'https://js.chargebee.com/v2/chargebee.js',+ },+ webinar_videos: {+ href: 'https://www.youtube.com/watch?v=ebc3lcSmncA&t=8s',+ },+ get_started_videos: {+ href: 'https://www.youtube.com/playlist?list=PLGzJ4gG7hPb8WWOWmeXqlfMfhdXReu-RJ',+ },+ openproject_docs: {+ href: 'https://docs.openproject.org',+ },+ contact_us: {+ href: 'https://www.openproject.org/contact-us',}}end